|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "Gaudi/Property.h"
35 ISvcLocator* pSvcLocator ) :
44 "Switch to build or not the filtered GenEvent" );
46 std::string
descr =
"";
47 descr +=
"Switch to build or not the TruthParticleContainer ";
48 descr +=
"from the filtered GenEvent";
53 descr =
"Tool to filter an McEventCollection according to some DecayPattern";
59 descr =
"Tool to convert a GenEvent into a TruthParticleContainer";
79 ATH_MSG_ERROR (
"Creation of algTool McVtxFilterTool FAILED !");
80 return StatusCode::FAILURE;
85 ATH_MSG_ERROR (
"Creation of algTool TruthParticleCnvTool FAILED !");
86 return StatusCode::FAILURE;
89 return StatusCode::SUCCESS;
96 return StatusCode::SUCCESS;
107 if ( !
sc.isSuccess() ) {
114 if (
sc.isSuccess() ) {
116 if ( !
sc.isSuccess() ) {
118 (
"Could not convert McEventCollection ==> TruthParticles !!");
122 (
"Could not convert McEventCollection ==> TruthParticles because"\
123 " McEventCollection filtering failed");
127 return StatusCode::SUCCESS;
ToolHandle< ITruthParticleCnvTool > CnvTool_t
McAodFilter()
Default constructor:
IMcVtxFilterTool_t m_mcVtxFilterTool
Tool to filter an McEventCollection according to some DecayPattern.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode initialize()
Athena Algorithm's Hooks.
BooleanProperty m_doTruthParticles
Switch to build or not the TruthParticleContainer from the filtered GenEvent.
virtual StatusCode finalize()
CnvTool_t m_truthParticleCnvTool
Tool to convert a GenEvent into a TruthParticleContainer.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual ~McAodFilter()
Destructor.
ToolHandle< IMcVtxFilterTool > IMcVtxFilterTool_t
#define ATH_MSG_WARNING(x)
BooleanProperty m_doGenAod
Switch to build or not the filtered GenEvent.
virtual StatusCode execute()