LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 
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
Int_t max
Definition: plot.C:27
bool isGeneratedParticleIndex(GeneratedParticleIndex_t index)
Returns whether the specified one is an acceptable generator index.
Definition: simb.h:37
Framework includes.
std::size_t GeneratedParticleIndex_t
Type of particle index in the generator truth record (simb::MCTruth).
Definition: simb.h:30