Public Member Functions | Public Attributes | List of all members
larg4::ParticleListActionService::ParticleInfo_t Struct Reference

Public Member Functions

void clear ()
 Resets the information (does not release memory it does not own) More...
 
bool hasParticle () const
 Returns whether there is a particle. More...
 
bool isPrimary () const
 Returns whether there is a particle. More...
 
simb::GeneratedParticleIndex_t truthInfoIndex () const
 Returns the index of the particle in the generator truth record. More...
 

Public Attributes

simb::MCParticleparticle = nullptr
 simple structure representing particle More...
 
bool keepFullTrajectory = false
 if there was decision to keep More...
 
simb::GeneratedParticleIndex_t truthIndex = simb::NoGeneratedParticleIndex
 Index of the particle in the original generator truth record. More...
 

Detailed Description

Definition at line 97 of file ParticleListAction_service.h.

Member Function Documentation

void larg4::ParticleListActionService::ParticleInfo_t::clear ( )
inline

Resets the information (does not release memory it does not own)

Definition at line 106 of file ParticleListAction_service.h.

107  {
108  particle = nullptr;
109  keepFullTrajectory = false;
111  }
simb::MCParticle * particle
simple structure representing particle
constexpr GeneratedParticleIndex_t NoGeneratedParticleIndex
Constant representing the absence of generator truth information.
Definition: simb.h:34
simb::GeneratedParticleIndex_t truthIndex
Index of the particle in the original generator truth record.
bool larg4::ParticleListActionService::ParticleInfo_t::hasParticle ( ) const
inline

Returns whether there is a particle.

Definition at line 115 of file ParticleListAction_service.h.

116  {
117  return particle;
118  }
simb::MCParticle * particle
simple structure representing particle
bool larg4::ParticleListActionService::ParticleInfo_t::isPrimary ( ) const
inline

Returns whether there is a particle.

Definition at line 122 of file ParticleListAction_service.h.

123  {
125  }
bool isGeneratedParticleIndex(GeneratedParticleIndex_t index)
Returns whether the specified one is an acceptable generator index.
Definition: simb.h:37
simb::GeneratedParticleIndex_t truthIndex
Index of the particle in the original generator truth record.
simb::GeneratedParticleIndex_t larg4::ParticleListActionService::ParticleInfo_t::truthInfoIndex ( ) const
inline

Returns the index of the particle in the generator truth record.

Definition at line 129 of file ParticleListAction_service.h.

130  {
131  return truthIndex;
132  }
simb::GeneratedParticleIndex_t truthIndex
Index of the particle in the original generator truth record.

Member Data Documentation

bool larg4::ParticleListActionService::ParticleInfo_t::keepFullTrajectory = false

if there was decision to keep

Definition at line 99 of file ParticleListAction_service.h.

simb::MCParticle* larg4::ParticleListActionService::ParticleInfo_t::particle = nullptr

simple structure representing particle

Definition at line 98 of file ParticleListAction_service.h.

simb::GeneratedParticleIndex_t larg4::ParticleListActionService::ParticleInfo_t::truthIndex = simb::NoGeneratedParticleIndex

Index of the particle in the original generator truth record.

Definition at line 102 of file ParticleListAction_service.h.


The documentation for this struct was generated from the following file: