|
ATLAS Offline Software
|
#include <McAodTupleWriterTool.h>
|
| McAodTupleWriterTool (const std::string &type, const std::string &name, const IInterface *parent) |
| Constructor with parameters: More...
|
|
virtual | ~McAodTupleWriterTool () |
| Destructor: More...
|
|
StatusCode | initialize () |
| Athena Algorithm's Hooks. More...
|
|
StatusCode | execute () |
|
StatusCode | finalize () |
|
StatusCode | write (const TruthParticleContainer *mcAod) |
| Process the TruthParticleContainer through the I/O backend. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 31 of file McAodTupleWriterTool.h.
◆ StoreGateSvc_t
◆ McAodTupleWriterTool() [1/2]
McAodTupleWriterTool::McAodTupleWriterTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
Constructor with parameters:
Public methods:
Constructors
Definition at line 35 of file McAodTupleWriterTool.cxx.
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);
◆ ~McAodTupleWriterTool()
McAodTupleWriterTool::~McAodTupleWriterTool |
( |
| ) |
|
|
virtual |
◆ McAodTupleWriterTool() [2/2]
McAodTupleWriterTool::McAodTupleWriterTool |
( |
| ) |
|
|
protected |
◆ bookTuple()
void McAodTupleWriterTool::bookTuple |
( |
| ) |
|
|
protected |
book the tuple
Definition at line 212 of file McAodTupleWriterTool.cxx.
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 );
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode McAodTupleWriterTool::execute |
( |
| ) |
|
|
virtual |
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
StatusCode McAodTupleWriterTool::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode McAodTupleWriterTool::initialize |
( |
| ) |
|
|
virtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
const InterfaceID & IIOMcAodTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Inline methods:
Definition at line 59 of file IIOMcAodTool.h.
61 return IID_IIOMcAodTool;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ setupBackend()
void McAodTupleWriterTool::setupBackend |
( |
Gaudi::Details::PropertyBase & |
outputFileName | ) |
|
|
protected |
Method to configure the back-end to write out the HepMC::GenEvent
.
Protected methods:
Const methods: Non-const methods:
Definition at line 179 of file McAodTupleWriterTool.cxx.
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 );
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ write()
◆ m_detStore
◆ m_evtStore
◆ m_outputFileName
StringProperty McAodTupleWriterTool::m_outputFileName |
|
protected |
◆ m_outputStreamName
StringProperty McAodTupleWriterTool::m_outputStreamName |
|
protected |
◆ m_particles
◆ m_truthParticlesName
StringProperty McAodTupleWriterTool::m_truthParticlesName |
|
protected |
◆ m_tuple
TTree* McAodTupleWriterTool::m_tuple |
|
protected |
◆ m_tupleSvc
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ s_nMax
const int McAodTupleWriterTool::s_nMax = 2000 |
|
staticprotected |
The documentation for this class was generated from the following files:
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
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
@ etcone
Calorimeter isolation.
std::array< double, s_nMax > m_etcone70
std::array< int, s_nMax > m_barcode
virtual void setOwner(IDataHandleHolder *o)=0
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.
std::array< double, s_nMax > m_etcone10
std::array< double, s_nMax > m_m
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::array< double, s_nMax > m_etcone40
unsigned int m_nParticles
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::array< double, s_nMax > m_px
std::array< double, s_nMax > m_etcone30
std::array< double, s_nMax > m_etcone45
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>