ATLAS Offline Software
OldSpclMcFilterTool.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // OldSpclMcFilterTool.h
8 // Header file for class OldSpclMcFilterTool
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef MCPARTICLETOOLS_OLDSPCLMCFILTERTOOL_H
12 #define MCPARTICLETOOLS_OLDSPCLMCFILTERTOOL_H
13 
14 // STL includes
15 #include <set>
16 
17 // McParticleTools includes
19 
20 // Forward declaration
21 
22 namespace TruthHelper{
23  class GenAccessIO;
24 }
25 
27 class IMcVtxFilterTool;
28 
30 {
31 
33  // Public methods:
35  public:
36 
37  // Copy constructor:
38 
40  OldSpclMcFilterTool( const std::string& type,
41  const std::string& name,
42  const IInterface* parent );
43 
45  virtual ~OldSpclMcFilterTool();
46 
48  // Non-const methods:
50 
56 
58  // Protected methods:
60  protected:
61 
65 
71 
77 
84 
88  StatusCode rebuildLinks( const HepMC::GenEvent * mcEvent,
89  HepMC::GenEvent * outEvt,
90  const HepMC::GenParticlePtr& mcPart );
91 
94 
96  // Protected data:
98  protected:
99 
103  std::set<int> m_barcodes;
104 
107  DoubleProperty m_rIsol;
108 
111  DoubleProperty m_ptGamMin;
112 
116  DoubleProperty m_ptMin;
117 
120  DoubleProperty m_etaRange;
121 
124  BooleanProperty m_includeSimul;
125 
128  BooleanProperty m_includePartonShowers;
129 
133 
137  BooleanProperty m_removeDecayToSelf;
138 
139 };
140 
141 
142 #endif //> MCPARTICLETOOLS_OLDSPCLMCFILTERTOOL_H
143 
TruthParticleFilterBaseTool.h
HepMC::GenParticlePtr
GenParticle * GenParticlePtr
Definition: GenParticle.h:37
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
OldSpclMcFilterTool::m_includeSimul
BooleanProperty m_includeSimul
Switch to include or not particles from detector simulation (Geant4)
Definition: OldSpclMcFilterTool.h:124
OldSpclMcFilterTool::m_tesIO
TruthHelper::GenAccessIO * m_tesIO
Pointer to a StoreGateSvc helper (Mc particle retrieval with predicates)
Definition: OldSpclMcFilterTool.h:132
OldSpclMcFilterTool::m_etaRange
DoubleProperty m_etaRange
Eta acceptance cut applied on all stable particles.
Definition: OldSpclMcFilterTool.h:120
OldSpclMcFilterTool::m_removeDecayToSelf
BooleanProperty m_removeDecayToSelf
Switch to remove particles which decay into themselves (t->tg) but only for generated particles,...
Definition: OldSpclMcFilterTool.h:137
OldSpclMcFilterTool::m_barcodes
std::set< int > m_barcodes
List of particles (in fact their unique barcode) which have been labelled as "special".
Definition: OldSpclMcFilterTool.h:103
IMcVtxFilterTool
Definition: IMcVtxFilterTool.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GenEvent_fwd.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
OldSpclMcFilterTool::m_ptGamMin
DoubleProperty m_ptGamMin
Minimum threshold for transverse momentum of photons.
Definition: OldSpclMcFilterTool.h:111
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Definition: McEventCollection.h:33
OldSpclMcFilterTool::m_rIsol
DoubleProperty m_rIsol
deltaR isolation energy cut for electrons, muons, taus and photons
Definition: OldSpclMcFilterTool.h:107
TruthParticleFilterBaseTool
Definition: TruthParticleFilterBaseTool.h:33
OldSpclMcFilterTool::~OldSpclMcFilterTool
virtual ~OldSpclMcFilterTool()
Destructor:
Definition: OldSpclMcFilterTool.cxx:91
OldSpclMcFilterTool::reconnectParticles
StatusCode reconnectParticles(const McEventCollection *inEvt, McEventCollection *out)
Reconnect the particles of the filtered McEventCollection.
Definition: OldSpclMcFilterTool.cxx:429
OldSpclMcFilterTool::m_ptMin
DoubleProperty m_ptMin
Minimum threshold for transverse momentum for all particles.
Definition: OldSpclMcFilterTool.h:116
TruthHelper
Definition: Generators/FlowAfterburner/FlowAfterburner/GenAccessIO.h:22
OldSpclMcFilterTool::initializeTool
StatusCode initializeTool()
to get tesIO
Definition: OldSpclMcFilterTool.cxx:626
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TruthHelper::GenAccessIO
Definition: Generators/FlowAfterburner/FlowAfterburner/GenAccessIO.h:24
OldSpclMcFilterTool
Definition: OldSpclMcFilterTool.h:30
OldSpclMcFilterTool::selectSpclMcBarcodes
StatusCode selectSpclMcBarcodes()
Retrieve the GenParticles from the GenEvent object (located into the McEventCollection container),...
Definition: OldSpclMcFilterTool.cxx:140
OldSpclMcFilterTool::buildMcAod
StatusCode buildMcAod(const McEventCollection *in, McEventCollection *out)
This method will check the validity of the input McEventCollection and build a filtered one from the ...
Definition: OldSpclMcFilterTool.cxx:101
OldSpclMcFilterTool::OldSpclMcFilterTool
OldSpclMcFilterTool()
Default constructor:
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
OldSpclMcFilterTool::m_includePartonShowers
BooleanProperty m_includePartonShowers
Switch to include or not parton showers.
Definition: OldSpclMcFilterTool.h:128
OldSpclMcFilterTool::rebuildLinks
StatusCode rebuildLinks(const HepMC::GenEvent *mcEvent, HepMC::GenEvent *outEvt, const HepMC::GenParticlePtr &mcPart)
Rebuild the links between particles which were connected, eg by a long FSR chain.
Definition: OldSpclMcFilterTool.cxx:485
OldSpclMcFilterTool::shapeGenEvent
StatusCode shapeGenEvent(McEventCollection *outEvt)
Build the out McEventCollection by removing all the GenParticles whose barcode is not in the list of ...
Definition: OldSpclMcFilterTool.cxx:294