Public Member Functions | Public Attributes | List of all members
gar::garg4::ParticleListAction::ParticleInfo_t Struct Reference

#include <ParticleListAction.h>

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 keepParticle () const
 Rerturns whether there is a particle known to be kept. More...
 

Public Attributes

simb::MCParticleparticle = nullptr
 simple structure representing particle More...
 
bool keep = false
 if there was decision to keep More...
 

Detailed Description

Definition at line 42 of file ParticleListAction.h.

Member Function Documentation

void gar::garg4::ParticleListAction::ParticleInfo_t::clear ( )
inline

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

Definition at line 48 of file ParticleListAction.h.

48 { particle = nullptr; keep = false; }
bool keep
if there was decision to keep
simb::MCParticle * particle
simple structure representing particle
bool gar::garg4::ParticleListAction::ParticleInfo_t::hasParticle ( ) const
inline

Returns whether there is a particle.

Definition at line 51 of file ParticleListAction.h.

51 { return particle; }
simb::MCParticle * particle
simple structure representing particle
bool gar::garg4::ParticleListAction::ParticleInfo_t::keepParticle ( ) const
inline

Rerturns whether there is a particle known to be kept.

Definition at line 54 of file ParticleListAction.h.

54 { return hasParticle() && keep; }
bool keep
if there was decision to keep
bool hasParticle() const
Returns whether there is a particle.

Member Data Documentation

bool gar::garg4::ParticleListAction::ParticleInfo_t::keep = false

if there was decision to keep

Definition at line 45 of file ParticleListAction.h.

simb::MCParticle* gar::garg4::ParticleListAction::ParticleInfo_t::particle = nullptr

simple structure representing particle

Definition at line 44 of file ParticleListAction.h.


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