LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
simb.h
Go to the documentation of this file.
1 
8 #ifndef NUSIMDATA_SIMULATIONBASE_SIMB_H
9 #define NUSIMDATA_SIMULATIONBASE_SIMB_H
10 
11 // C++ standard library
12 #include <limits> // std::numeric_limits<>
13 
14 
16 namespace simb {
17 
18  //--- BEGIN Generator index --------------------------------------------------
20 
29  using GeneratedParticleIndex_t = std::size_t;
31 
34  = std::numeric_limits<GeneratedParticleIndex_t>::max();
35 
38  { return index != NoGeneratedParticleIndex; }
39 
41  //--- END Generator index ----------------------------------------------------
42 
43 
44 } // namespace simb
45 
46 
47 
48 #endif // NUSIMDATA_SIMULATIONBASE_SIMB_H
constexpr GeneratedParticleIndex_t NoGeneratedParticleIndex
Constant representing the absence of generator truth information.
Definition: simb.h:34
bool isGeneratedParticleIndex(GeneratedParticleIndex_t index)
Returns whether the specified one is an acceptable generator index.
Definition: simb.h:37
ART objects.
std::size_t GeneratedParticleIndex_t
Type of particle index in the generator truth record (simb::MCTruth).
Definition: simb.h:30