ATLAS Offline Software
Loading...
Searching...
No Matches
TruthParticleBuilder.h
Go to the documentation of this file.
1
2
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
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
interface for AlgTools which want to convert McEventCollection objects into a TruthParticleContainer ...
BooleanProperty m_doFiltering
Switch to build or not a filtered McEventCollection.
virtual StatusCode finalize()
virtual ~TruthParticleBuilder()
Destructor:
ToolHandle< ITruthParticleCnvTool > CnvTool_t
BooleanProperty m_doTruthParticles
Switch to build or not the TruthParticleContainer from the filtered GenEvent.
CnvTool_t m_cnvTool
Pointer to the converter algtool which will create a TruthParticleContainer from the filtered McEvent...
TruthParticleBuilder()
Default constructor:
FilterTool_t m_filterTool
Pointer to the filter algtool (which will create the filtered McEventCollection)
virtual StatusCode execute()
TruthParticleBuilder(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
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...
ToolHandle< ITruthParticleFilterTool > FilterTool_t
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...
virtual StatusCode initialize()
Athena Algorithm's Hooks.