ATLAS Offline Software
ParticleDecayFilter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef XAODPARTICLEDECAYFILTER_H
6 #define XAODPARTICLEDECAYFILTER_H
7 
10 
21 
22 public:
23 
24  ParticleDecayFilter(const std::string& name, ISvcLocator* pSvcLocator);
28 
29 private:
30 
32 SG::ReadHandleKey<xAOD::TruthEventContainer> m_truthEventsKey{this, "TruthEventsKey", "TruthEvents", "ReadHandleKey for the TruthEvents"};
33 
35 Gaudi::Property<unsigned int> m_pdgIdParent{this,"ParentPdgId",0,"Particle ID of parent particle"};
36 
38 Gaudi::Property<std::vector<int> > m_pdgIdChildren{this,"ChildrenPdgIds",std::vector<int>(),"Particle IDs of children of parent particle"};
39 
41 Gaudi::Property<bool> m_checkCharge{this,"CheckCharge",true,"Toggle whether we check the charge of children particles"};
42 
43 };
44 #endif
ParticleDecayFilter::m_checkCharge
Gaudi::Property< bool > m_checkCharge
Toggle whether we check the charge of children particles.
Definition: ParticleDecayFilter.h:41
GenFilter.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
GenFilter
Base class for event generator filtering modules.
Definition: GenFilter.h:30
ParticleDecayFilter::filterEvent
StatusCode filterEvent()
Definition: ParticleDecayFilter.cxx:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ParticleDecayFilter::ParticleDecayFilter
ParticleDecayFilter(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ParticleDecayFilter.cxx:7
ParticleDecayFilter::m_truthEventsKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventsKey
ReadHandle for the TruthEvents.
Definition: ParticleDecayFilter.h:32
ParticleDecayFilter
Class to filter events based on the decay of a parent particle into a set of children particles.
Definition: ParticleDecayFilter.h:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ParticleDecayFilter::m_pdgIdChildren
Gaudi::Property< std::vector< int > > m_pdgIdChildren
Particle IDs of children of parent particle.
Definition: ParticleDecayFilter.h:38
TruthEventContainer.h
ParticleDecayFilter::m_pdgIdParent
Gaudi::Property< unsigned int > m_pdgIdParent
Particle ID of parent particle.
Definition: ParticleDecayFilter.h:35
ParticleDecayFilter::filterFinalize
StatusCode filterFinalize()
Definition: ParticleDecayFilter.cxx:23
ParticleDecayFilter::filterInitialize
StatusCode filterInitialize()
Definition: ParticleDecayFilter.cxx:13