ATLAS Offline Software
KeepChildrenTruthStrategy.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // KeepChildrenTruthStrategy.h, (c) ATLAS Detector software
8 
9 #ifndef ISF_TOOLS_KEEPCHILDRENTRUTHSTRATEGY_H
10 #define ISF_TOOLS_KEEPCHILDRENTRUTHSTRATEGY_H 1
11 
12 // stl includes
13 #include <set>
14 #include <vector>
15 
16 // Athena includes
18 
19 // ISF includes
21 
22 namespace ISF {
23  typedef std::vector<int> VertexTypesVector;
24  typedef std::set<int> VertexTypesSet;
25  typedef std::vector<int> PDGCodesVector;
26  typedef std::set<int> PDGCodesSet;
27 
35  class KeepChildrenTruthStrategy final : public extends<AthAlgTool, ITruthStrategy> {
36 
37  public:
39  KeepChildrenTruthStrategy( const std::string& t, const std::string& n, const IInterface* p );
40 
43 
44  // Athena algtool's Hooks
45  StatusCode initialize() override;
46 
48  bool pass( ITruthIncident& incident) const override;
49 
51  virtual bool appliesToRegion(unsigned short) const override;
52 
53  private:
54 
63  bool m_bsmParent;
64 
67  };
68 
69 }
70 
71 #endif //> !ISF_TOOLS_KEEPCHILDRENTRUTHSTRATEGY_H
ISF::KeepChildrenTruthStrategy::appliesToRegion
virtual bool appliesToRegion(unsigned short) const override
true if the strategy applies to this region
Definition: KeepChildrenTruthStrategy.cxx:112
ISF::VertexTypesVector
std::vector< int > VertexTypesVector
Definition: GenericTruthStrategy.h:24
ISF::PDGCodesVector
std::vector< int > PDGCodesVector
Definition: GenericTruthStrategy.h:26
ISF::KeepChildrenTruthStrategy::m_doVertexRangeCheck
bool m_doVertexRangeCheck
Definition: KeepChildrenTruthStrategy.h:58
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ISF::KeepChildrenTruthStrategy::initialize
StatusCode initialize() override
Definition: KeepChildrenTruthStrategy.cxx:50
ISF::KeepChildrenTruthStrategy::m_vertexTypeRangeLength
unsigned m_vertexTypeRangeLength
Definition: KeepChildrenTruthStrategy.h:61
ISF::KeepChildrenTruthStrategy::m_passProcessCategory
int m_passProcessCategory
Definition: KeepChildrenTruthStrategy.h:62
ISF::PDGCodesSet
std::set< int > PDGCodesSet
Definition: GenericTruthStrategy.h:27
ISF::KeepChildrenTruthStrategy::m_vertexTypes
VertexTypesSet m_vertexTypes
optimized for search
Definition: KeepChildrenTruthStrategy.h:57
ITruthStrategy.h
ISF::VertexTypesSet
std::set< int > VertexTypesSet
Definition: GenericTruthStrategy.h:25
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ISF::KeepChildrenTruthStrategy
Definition: KeepChildrenTruthStrategy.h:35
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ISF::ITruthIncident
Definition: ITruthIncident.h:45
AthAlgTool.h
ISF::KeepChildrenTruthStrategy::KeepChildrenTruthStrategy
KeepChildrenTruthStrategy(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Definition: KeepChildrenTruthStrategy.cxx:21
ISF::KeepChildrenTruthStrategy::pass
bool pass(ITruthIncident &incident) const override
true if the ITruthStrategy implementation applies to the given ITruthIncident
Definition: KeepChildrenTruthStrategy.cxx:75
ISF::KeepChildrenTruthStrategy::m_parentPdgCodes
PDGCodesSet m_parentPdgCodes
optimized for search
Definition: KeepChildrenTruthStrategy.h:66
ISF::KeepChildrenTruthStrategy::m_bsmParent
bool m_bsmParent
Apply to BSM parents.
Definition: KeepChildrenTruthStrategy.h:63
ISF::KeepChildrenTruthStrategy::~KeepChildrenTruthStrategy
~KeepChildrenTruthStrategy()
Destructor.
Definition: KeepChildrenTruthStrategy.cxx:45
ISF::KeepChildrenTruthStrategy::m_parentPdgCodesVector
PDGCodesVector m_parentPdgCodesVector
PDG code checks.
Definition: KeepChildrenTruthStrategy.h:65
ISF::KeepChildrenTruthStrategy::m_vertexTypeRangeHigh
int m_vertexTypeRangeHigh
Definition: KeepChildrenTruthStrategy.h:60
ISF::KeepChildrenTruthStrategy::m_vertexTypesVector
VertexTypesVector m_vertexTypesVector
vertex type (physics code) checks
Definition: KeepChildrenTruthStrategy.h:56
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
ISF::KeepChildrenTruthStrategy::m_vertexTypeRangeLow
int m_vertexTypeRangeLow
Definition: KeepChildrenTruthStrategy.h:59