|
Class Reference for E1039 Core & Analysis Software
|
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/generators/phhepmc/Fun4AllHepMCOutputManager.h>
Inheritance diagram for Fun4AllHepMCOutputManager:
Collaboration diagram for Fun4AllHepMCOutputManager:Public Member Functions | |
| Fun4AllHepMCOutputManager (const std::string &myname="HEPMCOUT", const std::string &filename="hepmcout.txt") | |
| virtual | ~Fun4AllHepMCOutputManager () |
| int | outfileopen (const std::string &) |
| opens output file More... | |
| void | Print (const std::string &what="ALL") const |
| print method (dump event selector) More... | |
| int | Write (PHCompositeNode *startNode) |
| write starting from given node More... | |
| int | AddComment (const std::string &text) |
| int | get_embedding_id () const |
| void | set_embedding_id (int id) |
Public Member Functions inherited from Fun4AllOutputManager | |
| virtual | ~Fun4AllOutputManager () |
| destructor More... | |
| virtual int | AddNode (const std::string &) |
| add a node in outputmanager More... | |
| virtual int | StripNode (const std::string &) |
| not write a node in outputmanager More... | |
| virtual int | AddEventSelector (const std::string &recomodule) |
| add an event selector to the outputmanager. event will get written only if all event selectors process_event method return EVENT_OK More... | |
| virtual int | RemoveNode (const std::string &) |
| removes a node from outputmanager More... | |
| int | WriteGeneric (PHCompositeNode *startNode) |
| Common method, called before calling virtual Write. More... | |
| virtual int | WriteNode (PHCompositeNode *) |
| write specified node More... | |
| virtual std::vector< std::string > * | EventSelector () |
| retrieves pointer to vector of event selector module names More... | |
| virtual std::vector< unsigned > * | RecoModuleIndex () |
| retrieves pointer to vector of event selector module ids More... | |
| virtual int | DoNotWriteEvent (std::vector< int > *retcodes) const |
| decides if event is to be written or not More... | |
| virtual size_t | EventsWritten () const |
| get number of Events More... | |
| virtual std::string | OutFileName () const |
| get output file name More... | |
Public Member Functions inherited from Fun4AllBase | |
| virtual | ~Fun4AllBase () |
| virtual const std::string | Name () const |
| Returns the name of this module. More... | |
| virtual void | Name (const std::string &name) |
| Sets the name of this module. More... | |
| virtual void | Verbosity (const int ival) |
| Sets the verbosity of this module (0 by default=quiet). More... | |
| virtual void | Verbosity (enu_Verbosity ival) |
| Sets the verbosity of this module (0 by default=quiet). More... | |
| virtual int | Verbosity () const |
| Gets the verbosity of this module. More... | |
Protected Attributes | |
| std::string | outfilename |
| HepMC::IO_GenEvent * | ascii_out |
| std::string | comment |
| int | comment_written |
| std::ofstream * | filestream |
| std::ostream * | zipstream |
| int | _embedding_id |
Protected Attributes inherited from Fun4AllOutputManager | |
| size_t | nEvents |
| Number of Events. More... | |
| std::vector< std::string > | EventSelectors |
| vector of event selectors modules More... | |
| std::vector< unsigned > | recomoduleindex |
| vector of associated module indexes More... | |
| std::string | outfilename |
| output file name More... | |
Protected Attributes inherited from Fun4AllBase | |
| std::string | ThisName |
| int | verbosity |
| The verbosity level. 0 means not verbose at all. More... | |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
| enum | enu_Verbosity { VERBOSITY_QUIET = 0 , VERBOSITY_SOME = 1 , VERBOSITY_MORE = 2 , VERBOSITY_EVEN_MORE = 3 , VERBOSITY_A_LOT = 4 , VERBOSITY_MAX = INT_MAX - 10 } |
Protected Member Functions inherited from Fun4AllOutputManager | |
| Fun4AllOutputManager (const std::string &myname) | |
Protected Member Functions inherited from Fun4AllBase | |
| Fun4AllBase (const std::string &name="NONAME") | |
Definition at line 18 of file Fun4AllHepMCOutputManager.h.
| Fun4AllHepMCOutputManager::Fun4AllHepMCOutputManager | ( | const std::string & | myname = "HEPMCOUT", |
| const std::string & | filename = "hepmcout.txt" |
||
| ) |
Definition at line 32 of file Fun4AllHepMCOutputManager.cc.
References ascii_out, filestream, outfilename, zipstream, and zoutbuffer.
|
virtual |
Definition at line 74 of file Fun4AllHepMCOutputManager.cc.
References ascii_out, comment, comment_written, filestream, zipstream, and zoutbuffer.
| int Fun4AllHepMCOutputManager::AddComment | ( | const std::string & | text | ) |
Definition at line 155 of file Fun4AllHepMCOutputManager.cc.
References comment, and comment_written.
|
inline |
embedding ID for the sub-event to be output positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 39 of file Fun4AllHepMCOutputManager.h.
References _embedding_id.
|
inlinevirtual |
opens output file
Reimplemented from Fun4AllOutputManager.
Definition at line 27 of file Fun4AllHepMCOutputManager.h.
|
virtual |
print method (dump event selector)
Reimplemented from Fun4AllOutputManager.
Definition at line 100 of file Fun4AllHepMCOutputManager.cc.
References comment, outfilename, Fun4AllOutputManager::Print(), and Fun4AllBase::ThisName.
Here is the call graph for this function:
|
inline |
embedding ID for the sub-event to be output positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 45 of file Fun4AllHepMCOutputManager.h.
References _embedding_id.
|
virtual |
write starting from given node
Reimplemented from Fun4AllOutputManager.
Definition at line 113 of file Fun4AllHepMCOutputManager.cc.
References _embedding_id, Fun4AllReturnCodes::ABORTRUN, ascii_out, comment, comment_written, Fun4AllReturnCodes::DISCARDEVENT, Fun4AllReturnCodes::EVENT_OK, PHHepMCGenEventMap::get(), PHHepMCGenEvent::getEvent(), Fun4AllOutputManager::nEvents, and PHWHERE.
Here is the call graph for this function:
|
protected |
positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 60 of file Fun4AllHepMCOutputManager.h.
Referenced by get_embedding_id(), set_embedding_id(), and Write().
|
protected |
Definition at line 49 of file Fun4AllHepMCOutputManager.h.
Referenced by Fun4AllHepMCOutputManager(), Write(), and ~Fun4AllHepMCOutputManager().
|
protected |
Definition at line 50 of file Fun4AllHepMCOutputManager.h.
Referenced by AddComment(), Print(), Write(), and ~Fun4AllHepMCOutputManager().
|
protected |
Definition at line 51 of file Fun4AllHepMCOutputManager.h.
Referenced by AddComment(), Write(), and ~Fun4AllHepMCOutputManager().
|
protected |
Definition at line 54 of file Fun4AllHepMCOutputManager.h.
Referenced by Fun4AllHepMCOutputManager(), and ~Fun4AllHepMCOutputManager().
|
protected |
Definition at line 48 of file Fun4AllHepMCOutputManager.h.
Referenced by Fun4AllHepMCOutputManager(), and Print().
|
protected |
Definition at line 55 of file Fun4AllHepMCOutputManager.h.
Referenced by Fun4AllHepMCOutputManager(), and ~Fun4AllHepMCOutputManager().