LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 
16 namespace sim {
17 
40 
41  public:
42 
43  //--- BEGIN Generated particle index ---------------------------------------
46 
49 
53 
59  { return fGeneratedParticleIndex; }
60 
64 
66  //--- END Generated particle index -----------------------------------------
67 
68 
69  //--- BEGIN Constructors ---------------------------------------------------
71  GeneratedParticleInfo() = default;
72 
79  {}
80  //--- END Constructors ---------------------------------------------------
81 
82 
83  private:
84 
87 
88  }; // class GeneratedParticleInfo
89 
90 
91 
92 } // namespace sim
93 
94 #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