|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/ITHistSvc.h"
17 #include "Gaudi/Property.h"
18 #include "GaudiKernel/GaudiException.h"
36 const std::string&
name,
37 const IInterface*
parent ) :
39 m_tupleSvc (
"THistSvc",
name ),
48 "Name of the output file which will contain the McAod "
49 "tuple. Ex: mcaod.root" );
55 "Name of the stream which will contain the McAod tuple. "
60 "Input location of the TruthParticleContainer to write "
63 declareInterface<IIOMcAodTool>(
this);
82 return StatusCode::FAILURE;
88 return StatusCode::FAILURE;
97 return StatusCode::SUCCESS;
103 return StatusCode::SUCCESS;
112 ATH_MSG_ERROR(
"Could not retrieve a TruthParticleContainer at ["
114 return StatusCode::FAILURE;
120 return StatusCode::FAILURE;
164 return StatusCode::SUCCESS;
183 throw GaudiException(
"Could not retrieve THistSvc",
185 StatusCode::FAILURE );
191 const std::string
propName =
"Output";
195 updatedProp.push_back
203 ATH_MSG_ERROR(
"Could not configure the THistSvc's output filename ["
205 throw GaudiException(
"Could not configure THistSvc output file !!",
207 StatusCode::FAILURE );
216 TTree*
t =
new TTree(
"mcaod",
"McAod validation tuple");
218 ATH_MSG_ERROR(
"Could not register McAod validation tuple !!");
219 delete t;
t =
nullptr;
220 throw GaudiException(
"Could not register McAod validation tuple !!",
222 StatusCode::FAILURE );
def retrieve(aClass, aKey=None)
std::array< int, s_nMax > m_status
std::array< double, s_nMax > m_etcone50
std::array< double, s_nMax > m_etcone20
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::array< double, s_nMax > m_etcone60
std::array< int, s_nMax > m_pdgId
std::array< double, s_nMax > m_py
@ etcone
Calorimeter isolation.
std::array< double, s_nMax > m_etcone70
std::array< int, s_nMax > m_barcode
std::array< double, s_nMax > m_pz
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
std::array< double, s_nMax > m_ene
@ etcone20
Calorimeter isolation.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::array< double, s_nMax > m_etcone10
std::array< double, s_nMax > m_m
std::array< double, s_nMax > m_etcone40
unsigned int m_nParticles
#define ATH_MSG_WARNING(x)
std::array< double, s_nMax > m_px
std::array< double, s_nMax > m_etcone30
std::array< double, s_nMax > m_etcone45