![]() |
ATLAS Offline Software
|
#include <HepMcTupleWriterTool.h>
Classes | |
| struct | HepMcParticles |
| A simple representation of a HepMc particle. More... | |
Public Member Functions | |
| HepMcTupleWriterTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Constructor with parameters: | |
| virtual | ~HepMcTupleWriterTool () |
| Destructor: | |
| StatusCode | initialize () |
| Athena Algorithm's Hooks. | |
| StatusCode | execute () |
| StatusCode | finalize () |
| StatusCode | write (const HepMC::GenEvent *evt) |
Process the HepMC::GenEvent through the I/O backend. | |
Protected Member Functions | |
| HepMcTupleWriterTool () | |
| Default constructor: | |
| void | setupBackend (Gaudi::Details::PropertyBase &outputFileName) |
Method to configure the back-end to write out the HepMC::GenEvent. | |
| void | bookTuple () |
| book the tuple | |
Protected Attributes | |
| HepMcParticles | m_particles {} |
| our cached particles | |
| ServiceHandle< ITHistSvc > | m_tupleSvc |
| Pointer to @ ITHistSvc. | |
| StringProperty | m_mcEventsName |
Location of the McEventCollection to be written out If there is more than 1 HepMC::GenEvent in the McEventCollection we will send warning messages, and just write the first one. | |
| StringProperty | m_outputFileName |
| Name of the output tuple file. | |
| StringProperty | m_outputStreamName |
| Name of the output tuple stream. | |
| TTree * | m_tuple |
| cached pointer to the tuple | |
Static Protected Attributes | |
| static const int | s_nMax = 2000 |
| maximum number of particles per event | |
Definition at line 30 of file HepMcTupleWriterTool.h.
| HepMcTupleWriterTool::HepMcTupleWriterTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Constructor with parameters:
Constructors.
Definition at line 28 of file HepMcTupleWriterTool.cxx.
|
virtual |
|
protected |
Default constructor:
|
protected |
book the tuple
Definition at line 178 of file HepMcTupleWriterTool.cxx.
| StatusCode HepMcTupleWriterTool::execute | ( | ) |
Definition at line 95 of file HepMcTupleWriterTool.cxx.
| StatusCode HepMcTupleWriterTool::finalize | ( | ) |
Definition at line 89 of file HepMcTupleWriterTool.cxx.
| StatusCode HepMcTupleWriterTool::initialize | ( | ) |
Athena Algorithm's Hooks.
Definition at line 64 of file HepMcTupleWriterTool.cxx.
|
protected |
Method to configure the back-end to write out the HepMC::GenEvent.
Non-const methods:
Definition at line 151 of file HepMcTupleWriterTool.cxx.
| StatusCode HepMcTupleWriterTool::write | ( | const HepMC::GenEvent * | evt | ) |
Process the HepMC::GenEvent through the I/O backend.
Non-const methods:
Definition at line 122 of file HepMcTupleWriterTool.cxx.
|
protected |
Location of the McEventCollection to be written out If there is more than 1 HepMC::GenEvent in the McEventCollection we will send warning messages, and just write the first one.
Definition at line 108 of file HepMcTupleWriterTool.h.
|
protected |
Name of the output tuple file.
Definition at line 111 of file HepMcTupleWriterTool.h.
|
protected |
Name of the output tuple stream.
Definition at line 114 of file HepMcTupleWriterTool.h.
|
protected |
|
protected |
cached pointer to the tuple
Definition at line 117 of file HepMcTupleWriterTool.h.
|
protected |
Pointer to @ ITHistSvc.
Definition at line 102 of file HepMcTupleWriterTool.h.
|
staticprotected |
maximum number of particles per event
Definition at line 84 of file HepMcTupleWriterTool.h.