![]() |
ATLAS Offline Software
|
#include <HepMcWriterTool.h>
Public Member Functions | |
| HepMcWriterTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Constructor with parameters: | |
| virtual | ~HepMcWriterTool () |
| 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 | |
| HepMcWriterTool () | |
| Default constructor: | |
| void | setupBackend (Gaudi::Details::PropertyBase &ioBackendURL) |
Method to configure the back-end to write out the HepMC::GenEvent. | |
Protected Attributes | |
| StringProperty | m_ioBackendURL |
| URL of the I/O back-end (only "ASCII" for now...) glued with the name of the output file name. | |
| 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. | |
| HepMC::IO_BaseClass * | m_ioBackend |
| Abstract base class for the back-end. | |
Definition at line 29 of file HepMcWriterTool.h.
| HepMcWriterTool::HepMcWriterTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Constructor with parameters:
Constructors.
Definition at line 27 of file HepMcWriterTool.cxx.
|
virtual |
|
protected |
Default constructor:
| StatusCode HepMcWriterTool::execute | ( | ) |
Definition at line 85 of file HepMcWriterTool.cxx.
| StatusCode HepMcWriterTool::finalize | ( | ) |
Definition at line 79 of file HepMcWriterTool.cxx.
| StatusCode HepMcWriterTool::initialize | ( | ) |
Athena Algorithm's Hooks.
Definition at line 61 of file HepMcWriterTool.cxx.
|
protected |
Method to configure the back-end to write out the HepMC::GenEvent.
Definition at line 122 of file HepMcWriterTool.cxx.
| StatusCode HepMcWriterTool::write | ( | const HepMC::GenEvent * | evt | ) |
Process the HepMC::GenEvent through the I/O backend.
Non-const methods:
Definition at line 112 of file HepMcWriterTool.cxx.
|
protected |
Abstract base class for the back-end.
Definition at line 95 of file HepMcWriterTool.h.
|
protected |
URL of the I/O back-end (only "ASCII" for now...) glued with the name of the output file name.
Ex: "ascii:/home/foo/hepmc.txt" If no protocol separator ':' is found, fallback is "ASCII"
Definition at line 82 of file HepMcWriterTool.h.
|
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 88 of file HepMcWriterTool.h.