ATLAS Offline Software
Loading...
Searching...
No Matches
TruthParticleValidationBaseTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TruthParticleValidationBaseTool.cxx
7// Implementation file for class TruthParticleValidationBaseTool
8// Author: S.Binet<binet@cern.ch>
10
11
12// STL includes
13
14// FrameWork includes
15
17
18// McParticleTools includes
20
24
28 const std::string& name,
29 const IInterface* parent ) :
30 AthAlgTool( type, name, parent ),
32{
33 //
34 // Property declaration
35 //
36
37 declareInterface<ITruthParticleValidationTool>(this);
38}
39
46
50{
51 ATH_MSG_INFO("Initializing " << name() << "...");
52
53 // Give the concrete (derived) tool a chance to initialize itself
54 if ( initializeTool().isFailure() ) {
55 ATH_MSG_ERROR("Could not initialize concrete tool !");
56 return StatusCode::FAILURE;
57 }
58
59 // initializing the event counter
61 return StatusCode::SUCCESS;
62}
63
65{
66 ATH_MSG_INFO("Finalizing " << name() << "...");
67 ATH_MSG_INFO("Analysed [" << m_nAnalysedEvents << "] events.");
68
69 // Give the concrete (derived) tool a chance to finalize itself
70 if ( finalizeTool().isFailure() ) {
71 ATH_MSG_ERROR("Could not finalize concrete tool !");
72 return StatusCode::FAILURE;
73 }
74
75 return StatusCode::SUCCESS;
76}
77
83
87
91
95
99
103
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
TruthParticleValidationBaseTool()
Default constructor:
unsigned int m_nAnalysedEvents
Counter of analysed events.
virtual StatusCode executeTool()=0
Main method to perform the validation.
StatusCode initialize()
Athena Algorithm's Hooks.
virtual StatusCode initializeTool()
I/O operators.