LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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
template
<Level L>
12
struct
FragmentSemantic
{};
13
14
template
<Level>
15
struct
RangedFragmentSemantic
{
16
explicit
RangedFragmentSemantic
(
RangeSet
const
&
r
) : rs{r} {}
17
RangeSet
rs{
RangeSet::invalid
()};
18
};
19
20
// constexpr implies inline
21
constexpr
auto
22
fullRun
()
23
{
24
return
FullSemantic<Level::Run>
{};
25
}
26
constexpr
auto
27
fullSubRun
()
28
{
29
return
FullSemantic<Level::SubRun>
{};
30
}
31
32
constexpr
auto
33
runFragment
()
34
{
35
return
FragmentSemantic<Level::Run>
{};
36
}
37
constexpr
auto
38
subRunFragment
()
39
{
40
return
FragmentSemantic<Level::SubRun>
{};
41
}
42
43
inline
auto
44
runFragment
(
RangeSet
const
& rs)
45
{
46
return
RangedFragmentSemantic<Level::Run>
{rs};
47
}
48
inline
auto
49
subRunFragment
(
RangeSet
const
& rs)
50
{
51
return
RangedFragmentSemantic<Level::SubRun>
{rs};
52
}
53
54
}
// namespace art
55
56
#endif
/* art_Utilities_ProductSemantics_h */
57
58
// Local variables:
59
// mode: c++
60
// End:
r
TRandom r
Definition:
spectrum.C:23
art::RangeSet
Definition:
RangeSet.h:25
art::fullRun
constexpr auto fullRun()
Definition:
ProductSemantics.h:22
art::runFragment
constexpr auto runFragment()
Definition:
ProductSemantics.h:33
art::FullSemantic
Definition:
ProductSemantics.h:9
art::RangedFragmentSemantic::RangedFragmentSemantic
RangedFragmentSemantic(RangeSet const &r)
Definition:
ProductSemantics.h:16
RangeSet.h
art::subRunFragment
constexpr auto subRunFragment()
Definition:
ProductSemantics.h:38
art::RangeSet::invalid
static RangeSet invalid()
Definition:
RangeSet.cc:45
art
Definition:
MVAAlg.h:12
art::FragmentSemantic
Definition:
ProductSemantics.h:12
art::fullSubRun
constexpr auto fullSubRun()
Definition:
ProductSemantics.h:27
art::RangedFragmentSemantic
Definition:
ProductSemantics.h:15
art
Utilities
ProductSemantics.h
Generated on Thu May 2 2024 20:59:30 for LArSoft by
1.8.11