LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ProductSemantics.h
Go to the documentation of this file.
1
#ifndef art_Utilities_ProductSemantics_h
2
#define art_Utilities_ProductSemantics_h
3
4
#include "
canvas/Persistency/Provenance/RangeSet.h
"
5
6
namespace
art
{
7
8
template
<Level>
9
struct
FullSemantic
{
10
};
11
12
template
<Level L>
13
struct
FragmentSemantic
{
14
};
15
16
template
<Level>
17
struct
RangedFragmentSemantic
{
18
explicit
RangedFragmentSemantic
(
RangeSet
const
& r) : rs{r} {}
19
RangeSet
rs{
RangeSet::invalid
()};
20
};
21
22
// constexpr implies inline
23
constexpr
auto
24
fullRun
()
25
{
26
return
FullSemantic<Level::Run>
{};
27
}
28
constexpr
auto
29
fullSubRun
()
30
{
31
return
FullSemantic<Level::SubRun>
{};
32
}
33
34
constexpr
auto
35
runFragment
()
36
{
37
return
FragmentSemantic<Level::Run>
{};
38
}
39
constexpr
auto
40
subRunFragment
()
41
{
42
return
FragmentSemantic<Level::SubRun>
{};
43
}
44
45
inline
auto
46
runFragment
(
RangeSet
const
& rs)
47
{
48
return
RangedFragmentSemantic<Level::Run>
{rs};
49
}
50
inline
auto
51
subRunFragment
(
RangeSet
const
& rs)
52
{
53
return
RangedFragmentSemantic<Level::SubRun>
{rs};
54
}
55
}
56
57
#endif
/* art_Utilities_ProductSemantics_h */
58
59
// Local variables:
60
// mode: c++
61
// End:
art::RangeSet
Definition:
RangeSet.h:24
art::fullRun
constexpr auto fullRun()
Definition:
ProductSemantics.h:24
art::runFragment
constexpr auto runFragment()
Definition:
ProductSemantics.h:35
art::FullSemantic
Definition:
ProductSemantics.h:9
art::RangedFragmentSemantic::RangedFragmentSemantic
RangedFragmentSemantic(RangeSet const &r)
Definition:
ProductSemantics.h:18
RangeSet.h
art::subRunFragment
constexpr auto subRunFragment()
Definition:
ProductSemantics.h:40
art::RangeSet::invalid
static RangeSet invalid()
Definition:
RangeSet.cc:46
art
HLT enums.
Definition:
ServiceProviderWrappers.h:36
art::FragmentSemantic
Definition:
ProductSemantics.h:13
art::fullSubRun
constexpr auto fullSubRun()
Definition:
ProductSemantics.h:29
art::RangedFragmentSemantic
Definition:
ProductSemantics.h:17
art
Utilities
ProductSemantics.h
Generated on Thu Jul 26 2018 13:09:43 for LArSoft by
1.8.11