ATLAS Offline Software
TruthParticleBuilder.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // TruthParticleBuilder.h
8 // Header file for class TruthParticleBuilder
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef MCPARTICLEALGS_TRUTHPARTICLEBUILDER_H
12 #define MCPARTICLEALGS_TRUTHPARTICLEBUILDER_H
13 
14 // STL includes
15 #include <string>
16 
17 // FrameWork includes
19 #include "GaudiKernel/ToolHandle.h"
20 
21 // Forward declaration
24 
26 {
27 
29  // Public methods:
31  public:
32 
33  // Copy constructor:
34 
36  TruthParticleBuilder( const std::string& name, ISvcLocator* pSvcLocator );
37 
39  virtual ~TruthParticleBuilder();
40 
41  // Assignment operator:
42  //TruthParticleBuilder &operator=(const TruthParticleBuilder &alg);
43 
44  // Athena algorithm's Hooks
45  virtual StatusCode initialize();
46  virtual StatusCode execute();
47  virtual StatusCode finalize();
48 
50  // Protected methods:
52  protected:
53 
56 
60  void setupFilterTool( Gaudi::Details::PropertyBase& doFiltering );
61 
65  void setupCnvTool( Gaudi::Details::PropertyBase& doTruthParticles );
66 
68  // Protected data:
70  protected:
71 
72  typedef ToolHandle<ITruthParticleFilterTool> FilterTool_t;
77 
78  typedef ToolHandle<ITruthParticleCnvTool> CnvTool_t;
83 
86  BooleanProperty m_doFiltering;
87 
91  BooleanProperty m_doTruthParticles;
92 };
93 
94 #endif //> MCPARTICLEALGS_TRUTHPARTICLEBUILDER_H
TruthParticleBuilder::m_doTruthParticles
BooleanProperty m_doTruthParticles
Switch to build or not the TruthParticleContainer from the filtered GenEvent.
Definition: TruthParticleBuilder.h:91
TruthParticleBuilder
Definition: TruthParticleBuilder.h:26
TruthParticleBuilder::m_doFiltering
BooleanProperty m_doFiltering
Switch to build or not a filtered McEventCollection.
Definition: TruthParticleBuilder.h:86
TruthParticleBuilder::m_filterTool
FilterTool_t m_filterTool
Pointer to the filter algtool (which will create the filtered McEventCollection)
Definition: TruthParticleBuilder.h:76
TruthParticleBuilder::~TruthParticleBuilder
virtual ~TruthParticleBuilder()
Destructor:
Definition: TruthParticleBuilder.cxx:82
TruthParticleBuilder::execute
virtual StatusCode execute()
Definition: TruthParticleBuilder.cxx:106
ITruthParticleFilterTool
Definition: ITruthParticleFilterTool.h:26
AthAlgorithm.h
TruthParticleBuilder::setupFilterTool
void setupFilterTool(Gaudi::Details::PropertyBase &doFiltering)
Call-back method to configure the filter tool if needed (this is defined by the state of the "DoFilte...
Definition: TruthParticleBuilder.cxx:136
TruthParticleBuilder::finalize
virtual StatusCode finalize()
Definition: TruthParticleBuilder.cxx:100
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TruthParticleBuilder::CnvTool_t
ToolHandle< ITruthParticleCnvTool > CnvTool_t
Definition: TruthParticleBuilder.h:78
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ITruthParticleCnvTool
Definition: ITruthParticleCnvTool.h:39
TruthParticleBuilder::m_cnvTool
CnvTool_t m_cnvTool
Pointer to the converter algtool which will create a TruthParticleContainer from the filtered McEvent...
Definition: TruthParticleBuilder.h:82
TruthParticleBuilder::FilterTool_t
ToolHandle< ITruthParticleFilterTool > FilterTool_t
Definition: TruthParticleBuilder.h:72
TruthParticleBuilder::setupCnvTool
void setupCnvTool(Gaudi::Details::PropertyBase &doTruthParticles)
Call-back method to configure the converter tool if needed (this is defined by the state of the "DoTr...
Definition: TruthParticleBuilder.cxx:174
TruthParticleBuilder::initialize
virtual StatusCode initialize()
Athena Algorithm's Hooks.
Definition: TruthParticleBuilder.cxx:87
TruthParticleBuilder::TruthParticleBuilder
TruthParticleBuilder()
Default constructor: