LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GeneratedParticleInfo.h
Go to the documentation of this file.
1 
9 #ifndef LARDATAOBJ_SIMULATION_GENERATEDPARTICLEINFO_H
10 #define LARDATAOBJ_SIMULATION_GENERATEDPARTICLEINFO_H
11 
12 // LArSoft libraries
13 #include "nusimdata/SimulationBase/simb.h" // sim::GeneratedParticleIndex_t, ...
14 
15 namespace sim {
16 
39 
40  public:
41  //--- BEGIN Generated particle index ---------------------------------------
44 
47 
51 
57 
60  {
62  }
63 
65  //--- END Generated particle index -----------------------------------------
66 
67  //--- BEGIN Constructors ---------------------------------------------------
69  GeneratedParticleInfo() = default;
70 
76  //--- END Constructors ---------------------------------------------------
77 
78  private:
81 
82  }; // class GeneratedParticleInfo
83 
84 } // namespace sim
85 
86 #endif // LARDATAOBJ_SIMULATION_GENERATEDPARTICLEINFO_H
GeneratedParticleInfo()=default
Default constructor (for ROOT I/O only).
simb::GeneratedParticleIndex_t GeneratedParticleIndex_t
Type of particle index in the generator truth record (simb::MCTruth).
static constexpr GeneratedParticleIndex_t NoGeneratedParticleIndex
Constant representing the absence of generator truth information.
bool hasGeneratedParticleIndex() const
Returns whether the specified one is an acceptable generator index.
GeneratedParticleInfo(GeneratedParticleIndex_t index)
Constructor: assigns all the values.
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
Monte Carlo Simulation.
Contains information about a generated particle.
GeneratedParticleIndex_t generatedParticleIndex() const
Returns the generated particle index.
GeneratedParticleIndex_t fGeneratedParticleIndex
Index of the generated particle in its simb::MCTruth record.
Common type definitions for data products (and a bit beyond).
std::size_t GeneratedParticleIndex_t
Type of particle index in the generator truth record (simb::MCTruth).
Definition: simb.h:30