EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/offline/framework/fun4allraw/Fun4AllPrdfOutputManager.h>
Public Member Functions | |
Fun4AllPrdfOutputManager (const std::string &myname="PRDFOUT", const std::string &filename="data_out.prdf") | |
constructor | |
virtual | ~Fun4AllPrdfOutputManager () |
destructor | |
int | InitPrdfNode (PHCompositeNode *top_node, const std::string &nodeName="SIMPRDF") |
PRDF node initialization [class specific method]. | |
int | outfileopen (const std::string &fname) |
reinitialize raw output manager to write to new filename. Close old one if any | |
int | Write (PHCompositeNode *startNode) |
event write method (startNode argument is ignored. prdfNode is always used) | |
Public Member Functions inherited from Fun4AllOutputManager | |
~Fun4AllOutputManager () override | |
destructor | |
void | Print (const std::string &what="ALL") const override |
print method (dump event selector) | |
virtual int | AddNode (const std::string &) |
add a node in outputmanager | |
virtual int | AddRunNode (const std::string &) |
add a runwise node in outputmanager | |
virtual int | StripNode (const std::string &) |
not write a node in outputmanager | |
virtual int | StripRunNode (const std::string &) |
not write a runwise node in outputmanager | |
virtual void | SaveRunNode (const int) |
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 | |
int | WriteGeneric (PHCompositeNode *startNode) |
Common method, called before calling virtual Write. | |
virtual int | WriteNode (PHCompositeNode *) |
write specified node | |
virtual std::vector < std::string > * | EventSelector () |
retrieves pointer to vector of event selector module names | |
virtual std::vector< unsigned > * | RecoModuleIndex () |
retrieves pointer to vector of event selector module ids | |
virtual int | DoNotWriteEvent (std::vector< int > *retcodes) const |
decides if event is to be written or not | |
virtual size_t | EventsWritten () const |
get number of Events | |
virtual void | IncrementEvents (const unsigned int i) |
increment number of events | |
virtual std::string | OutFileName () const |
get output file name | |
void | OutFileName (const std::string &name) |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Private Member Functions | |
int | InitPrdfManager () |
Private Attributes | |
PHCompositeNode * | m_PrdfNode |
prdf node | |
PHRawOManager * | m_PrdfOutManager |
output manager | |
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) | |
Fun4AllOutputManager (const std::string &myname, const std::string &outfname) | |
Definition at line 13 of file Fun4AllPrdfOutputManager.h.
View newest version in sPHENIX GitHub at line 13 of file Fun4AllPrdfOutputManager.h
Fun4AllPrdfOutputManager::Fun4AllPrdfOutputManager | ( | const std::string & | myname = "PRDFOUT" , |
const std::string & | filename = "data_out.prdf" |
||
) |
constructor
Definition at line 17 of file Fun4AllPrdfOutputManager.cc.
View newest version in sPHENIX GitHub at line 17 of file Fun4AllPrdfOutputManager.cc
|
virtual |
destructor
Definition at line 26 of file Fun4AllPrdfOutputManager.cc.
View newest version in sPHENIX GitHub at line 26 of file Fun4AllPrdfOutputManager.cc
References m_PrdfOutManager.
|
private |
initialize prdf output manager every time the output file name is changed including first event
Definition at line 93 of file Fun4AllPrdfOutputManager.cc.
View newest version in sPHENIX GitHub at line 93 of file Fun4AllPrdfOutputManager.cc
References PHFlag::FlagExist(), PHFlag::get_IntFlag(), recoConsts::instance(), m_PrdfOutManager, and Fun4AllOutputManager::OutFileName().
Referenced by Write().
int Fun4AllPrdfOutputManager::InitPrdfNode | ( | PHCompositeNode * | top_node, |
const std::string & | nodeName = "SIMPRDF" |
||
) |
PRDF node initialization [class specific method].
Definition at line 33 of file Fun4AllPrdfOutputManager.cc.
View newest version in sPHENIX GitHub at line 33 of file Fun4AllPrdfOutputManager.cc
References PHCompositeNode::addNode(), PHNodeIterator::findFirst(), and m_PrdfNode.
|
virtual |
reinitialize raw output manager to write to new filename. Close old one if any
Reimplemented from Fun4AllOutputManager.
Definition at line 54 of file Fun4AllPrdfOutputManager.cc.
View newest version in sPHENIX GitHub at line 54 of file Fun4AllPrdfOutputManager.cc
References m_PrdfOutManager, Fun4AllOutputManager::OutFileName(), and Fun4AllBase::Verbosity().
|
virtual |
event write method (startNode argument is ignored. prdfNode is always used)
Reimplemented from Fun4AllOutputManager.
Definition at line 70 of file Fun4AllPrdfOutputManager.cc.
View newest version in sPHENIX GitHub at line 70 of file Fun4AllPrdfOutputManager.cc
References InitPrdfManager(), m_PrdfNode, m_PrdfOutManager, and PHRawOManager::write().
|
private |
prdf node
Definition at line 39 of file Fun4AllPrdfOutputManager.h.
View newest version in sPHENIX GitHub at line 39 of file Fun4AllPrdfOutputManager.h
Referenced by InitPrdfNode(), and Write().
|
private |
output manager
Definition at line 42 of file Fun4AllPrdfOutputManager.h.
View newest version in sPHENIX GitHub at line 42 of file Fun4AllPrdfOutputManager.h
Referenced by InitPrdfManager(), outfileopen(), Write(), and ~Fun4AllPrdfOutputManager().