ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
ISF::GenParticleFinalStateFilter Class Reference

#include <GenParticleFinalStateFilter.h>

Inheritance diagram for ISF::GenParticleFinalStateFilter:
Collaboration diagram for ISF::GenParticleFinalStateFilter:

Public Member Functions

 GenParticleFinalStateFilter (const std::string &t, const std::string &n, const IInterface *p)
 Constructor. More...
 
 ~GenParticleFinalStateFilter ()
 Destructor. More...
 
StatusCode initialize ()
 Athena algtool's Hooks. More...
 
StatusCode finalize ()
 
bool pass (const HepMC::GenParticle &particle) const
 Returns the Particle Stack, should register truth. More...
 

Public Attributes

bool m_checkGenSimStable
 boolean switch to check on sim stable More...
 
bool m_checkGenInteracting
 boolean switch to check on gen interacting More...
 

Detailed Description

Stable/Interacting particle filter for HepMC particles to be used in the stack filling process.

Author
Andreas.Salzburger -at- cern.ch

Definition at line 32 of file GenParticleFinalStateFilter.h.

Constructor & Destructor Documentation

◆ GenParticleFinalStateFilter()

ISF::GenParticleFinalStateFilter::GenParticleFinalStateFilter ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Constructor.

Definition at line 20 of file GenParticleFinalStateFilter.cxx.

23  : base_class(t,n,p),
24  m_checkGenSimStable(true),
26 {
27  // different options
28  declareProperty("CheckGenSimStable", m_checkGenSimStable);
29  declareProperty("CheckGenInteracting", m_checkGenInteracting);
30 }

◆ ~GenParticleFinalStateFilter()

ISF::GenParticleFinalStateFilter::~GenParticleFinalStateFilter ( )
inline

Destructor.

Definition at line 39 of file GenParticleFinalStateFilter.h.

39 {}

Member Function Documentation

◆ finalize()

StatusCode ISF::GenParticleFinalStateFilter::finalize ( )

Definition at line 65 of file GenParticleFinalStateFilter.cxx.

66 {
67  ATH_MSG_VERBOSE("Finalizing ...");
68  return StatusCode::SUCCESS;
69 }

◆ initialize()

StatusCode ISF::GenParticleFinalStateFilter::initialize ( )

Athena algtool's Hooks.

Definition at line 34 of file GenParticleFinalStateFilter.cxx.

35 {
36  ATH_MSG_VERBOSE("Initializing ...");
37  return StatusCode::SUCCESS;
38 }

◆ pass()

bool ISF::GenParticleFinalStateFilter::pass ( const HepMC::GenParticle particle) const

Returns the Particle Stack, should register truth.

returns true if the the particle is considered stable

Definition at line 53 of file GenParticleFinalStateFilter.cxx.

Member Data Documentation

◆ m_checkGenInteracting

bool ISF::GenParticleFinalStateFilter::m_checkGenInteracting

boolean switch to check on gen interacting

Definition at line 54 of file GenParticleFinalStateFilter.h.

◆ m_checkGenSimStable

bool ISF::GenParticleFinalStateFilter::m_checkGenSimStable

boolean switch to check on sim stable

Definition at line 53 of file GenParticleFinalStateFilter.h.


The documentation for this class was generated from the following files:
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
covarianceTool.passFilter
bool passFilter
Definition: covarianceTool.py:604
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
ISF::GenParticleFinalStateFilter::m_checkGenInteracting
bool m_checkGenInteracting
boolean switch to check on gen interacting
Definition: GenParticleFinalStateFilter.h:54
MC::isFinalState
bool isFinalState(const T &p)
Definition: HepMCHelpers.h:31
beamspotman.n
n
Definition: beamspotman.py:731
ISF::GenParticleFinalStateFilter::m_checkGenSimStable
bool m_checkGenSimStable
boolean switch to check on sim stable
Definition: GenParticleFinalStateFilter.h:53
MC::isSimInteracting
bool isSimInteracting(const T &p)
Identify if the particle could interact with the detector during the simulation, e....
Definition: HepMCHelpers.h:42
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
MC::isSimStable
bool isSimStable(const T &p)
Identify if the particle is considered stable at the post-detector-sim stage.
Definition: HepMCHelpers.h:39