LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "PrimaryParticleInformation.h"
Public Types | |
using | GeneratedParticleIndex_t = simb::GeneratedParticleIndex_t |
Type of the stored index of particle within the truth record. More... | |
Public Member Functions | |
void * | operator new (size_t) |
void | operator delete (void *) |
const simb::MCTruth * | GetMCTruth () const |
size_t const & | MCTruthIndex () const |
GeneratedParticleIndex_t | MCParticleIndex () const |
Returns the index of the corresponding particle in truth record. More... | |
simb::MCParticle const * | GetMCParticle () const |
bool | IsInMCTruth () const |
void | SetMCTruth (const simb::MCTruth *m, size_t idx=0, GeneratedParticleIndex_t indexInTruth=simb::NoGeneratedParticleIndex) |
virtual void | Print () const override |
Private Attributes | |
const simb::MCTruth * | fMCTruth = nullptr |
size_t | fMCTIndex = 0 |
GeneratedParticleIndex_t | fMCParticleIndex = simb::NoGeneratedParticleIndex |
Index within the truth record. More... | |
Definition at line 57 of file PrimaryParticleInformation.h.
Type of the stored index of particle within the truth record.
Definition at line 62 of file PrimaryParticleInformation.h.
simb::MCParticle const * g4b::PrimaryParticleInformation::GetMCParticle | ( | ) | const |
Returns the original particle in the truth record.
nullptr
if not available Definition at line 16 of file PrimaryParticleInformation.cxx.
References GetMCTruth(), IsInMCTruth(), and MCParticleIndex().
|
inline |
Definition at line 68 of file PrimaryParticleInformation.h.
Referenced by GetMCParticle().
|
inline |
Returns whether this particle has a corresponding truth record item.
Definition at line 123 of file PrimaryParticleInformation.h.
References simb::NoGeneratedParticleIndex.
Referenced by GetMCParticle().
|
inline |
Returns the index of the corresponding particle in truth record.
NotInMCTruth
otherwise This method returns the index in the truth record pointed by GetMCTruth()
of the particle (simb::MCParticle
) corresponding to this object. If this information is not set, or if there is no such a particle at all, the special value NotInMCTruth
is returned. This can be checked with the IsInMCTruth()
method. T
Definition at line 82 of file PrimaryParticleInformation.h.
References simb::NoGeneratedParticleIndex, and pyG4Element::Print().
Referenced by GetMCParticle(), and larg4::ParticleListAction::PreTrackingAction().
|
inline |
Definition at line 69 of file PrimaryParticleInformation.h.
|
inline |
Definition at line 145 of file PrimaryParticleInformation.h.
|
inline |
Definition at line 138 of file PrimaryParticleInformation.h.
|
overridevirtual |
Definition at line 28 of file PrimaryParticleInformation.cxx.
References fMCTruth.
|
inline |
Definition at line 127 of file PrimaryParticleInformation.h.
Referenced by g4b::ConvertMCTruthToG4::GeneratePrimaries().
|
private |
Index within the truth record.
Definition at line 114 of file PrimaryParticleInformation.h.
|
private |
Definition at line 112 of file PrimaryParticleInformation.h.
|
private |
Definition at line 111 of file PrimaryParticleInformation.h.
Referenced by Print().