LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Contains information about a generated particle. More...
#include "GeneratedParticleInfo.h"
Public Member Functions | |
GeneratedParticleInfo ()=default | |
Default constructor (for ROOT I/O only). More... | |
GeneratedParticleInfo (GeneratedParticleIndex_t index) | |
Constructor: assigns all the values. More... | |
Private Attributes | |
GeneratedParticleIndex_t | fGeneratedParticleIndex = NoGeneratedParticleIndex |
Index of the generated particle in its simb::MCTruth record. More... | |
Generated particle index | |
using | GeneratedParticleIndex_t = simb::GeneratedParticleIndex_t |
Type of particle index in the generator truth record (simb::MCTruth ). More... | |
static constexpr GeneratedParticleIndex_t | NoGeneratedParticleIndex = simb::NoGeneratedParticleIndex |
Constant representing the absence of generator truth information. More... | |
GeneratedParticleIndex_t | generatedParticleIndex () const |
Returns the generated particle index. More... | |
bool | hasGeneratedParticleIndex () const |
Returns whether the specified one is an acceptable generator index. More... | |
Contains information about a generated particle.
This information is designed to be added as metadata to an association between a simb::MCParticle
produced by the simulation of particle propagation through the detector (e.g. LArG4
) with the generator truth record that particle derives from:
The associated simb::MCParticle
is expected to be the generated particle of the generator truth record, as processed by the simulation. The provided information is currently:
Definition at line 39 of file GeneratedParticleInfo.h.
Type of particle index in the generator truth record (simb::MCTruth
).
Definition at line 48 of file GeneratedParticleInfo.h.
|
default |
Default constructor (for ROOT I/O only).
Referenced by hasGeneratedParticleIndex().
|
inline |
Constructor: assigns all the values.
index | generated particle index (NoGeneratedParticleIndex if none) |
Definition at line 77 of file GeneratedParticleInfo.h.
|
inline |
Returns the generated particle index.
NoGeneratedParticleIndex
if none) Definition at line 58 of file GeneratedParticleInfo.h.
References fGeneratedParticleIndex.
Referenced by sim::DumpMCParticles::DumpMCParticle().
|
inline |
Returns whether the specified one is an acceptable generator index.
Definition at line 62 of file GeneratedParticleInfo.h.
References fGeneratedParticleIndex, GeneratedParticleInfo(), and simb::isGeneratedParticleIndex().
Referenced by sim::DumpMCParticles::DumpMCParticle().
|
private |
Index of the generated particle in its simb::MCTruth
record.
Definition at line 86 of file GeneratedParticleInfo.h.
Referenced by generatedParticleIndex(), and hasGeneratedParticleIndex().
|
static |
Constant representing the absence of generator truth information.
Definition at line 52 of file GeneratedParticleInfo.h.
Referenced by sim::DumpMCParticles::analyze().