ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/framework/fun4all/Fun4AllOutputManager.h>
Public Member Functions | |
~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 | |
virtual int | outfileopen (const std::string &) |
opens output file | |
int | WriteGeneric (PHCompositeNode *startNode) |
Common method, called before calling virtual Write. | |
virtual int | Write (PHCompositeNode *) |
write starting from given node | |
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. | |
Protected Member Functions | |
Fun4AllOutputManager (const std::string &myname) | |
Fun4AllOutputManager (const std::string &myname, const std::string &outfname) | |
Protected Member Functions inherited from Fun4AllBase | |
Fun4AllBase (const std::string &name="NONAME") | |
Private Attributes | |
unsigned int | m_NEvents |
Number of Events. | |
std::string | m_OutFileName |
output file name | |
std::vector< std::string > | m_EventSelectorsVector |
vector of event selectors modules | |
std::vector< unsigned > | m_RecoModuleIndexVector |
vector of associated module indexes | |
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 } |
Definition at line 14 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 14 of file Fun4AllOutputManager.h
|
inlineoverride |
destructor
Definition at line 18 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 18 of file Fun4AllOutputManager.h
|
protected |
constructor. is protected since we do not want the class to be created in root macros
Definition at line 9 of file Fun4AllOutputManager.cc.
View newest version in sPHENIX GitHub at line 9 of file Fun4AllOutputManager.cc
|
protected |
Definition at line 15 of file Fun4AllOutputManager.cc.
View newest version in sPHENIX GitHub at line 15 of file Fun4AllOutputManager.cc
|
virtual |
add an event selector to the outputmanager. event will get written only if all event selectors process_event method return EVENT_OK
Definition at line 23 of file Fun4AllOutputManager.cc.
View newest version in sPHENIX GitHub at line 23 of file Fun4AllOutputManager.cc
References m_EventSelectorsVector.
Referenced by MakeTree().
|
inlinevirtual |
add a node in outputmanager
Reimplemented in Fun4AllDstOutputManager.
Definition at line 26 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 26 of file Fun4AllOutputManager.h
Referenced by G4TTree(), MakeTree(), and MyHitTTree().
|
inlinevirtual |
add a runwise node in outputmanager
Reimplemented in Fun4AllDstOutputManager.
Definition at line 32 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 32 of file Fun4AllOutputManager.h
decides if event is to be written or not
Definition at line 68 of file Fun4AllOutputManager.cc.
View newest version in sPHENIX GitHub at line 68 of file Fun4AllOutputManager.cc
References m_RecoModuleIndexVector.
|
inlinevirtual |
retrieves pointer to vector of event selector module names
Definition at line 80 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 80 of file Fun4AllOutputManager.h
References m_EventSelectorsVector.
Referenced by Fun4AllServer::UpdateEventSelector().
|
inlinevirtual |
get number of Events
Definition at line 95 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 95 of file Fun4AllOutputManager.h
References m_NEvents.
Referenced by Print().
increment number of events
Definition at line 97 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 97 of file Fun4AllOutputManager.h
References m_NEvents.
Referenced by Fun4AllHepMCOutputManager::Write().
|
inlinevirtual |
get output file name
Definition at line 99 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 99 of file Fun4AllOutputManager.h
References m_OutFileName.
Referenced by Fun4AllPrdfOutputManager::InitPrdfManager(), Fun4AllPrdfOutputManager::outfileopen(), Fun4AllDstOutputManager::Print(), Fun4AllEventOutputManager::SetOutfileName(), and Fun4AllDstOutputManager::WriteNode().
|
inline |
Definition at line 100 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 100 of file Fun4AllOutputManager.h
References m_OutFileName.
|
inlinevirtual |
opens output file
Reimplemented in Fun4AllPrdfOutputManager, Fun4AllDstOutputManager, Fun4AllHepMCOutputManager, and Fun4AllEventOutputManager.
Definition at line 59 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 59 of file Fun4AllOutputManager.h
|
overridevirtual |
print method (dump event selector)
Reimplemented from Fun4AllBase.
Reimplemented in Fun4AllEventOutputManager.
Definition at line 48 of file Fun4AllOutputManager.cc.
View newest version in sPHENIX GitHub at line 48 of file Fun4AllOutputManager.cc
References EventsWritten(), m_EventSelectorsVector, m_RecoModuleIndexVector, and Fun4AllBase::Name().
Referenced by Fun4AllEventOutputManager::Print(), Fun4AllHepMCOutputManager::Print(), and Fun4AllDstOutputManager::Print().
|
inlinevirtual |
retrieves pointer to vector of event selector module ids
Definition at line 86 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 86 of file Fun4AllOutputManager.h
References m_RecoModuleIndexVector.
Referenced by Fun4AllServer::UpdateEventSelector().
Reimplemented in Fun4AllDstOutputManager.
Definition at line 49 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 49 of file Fun4AllOutputManager.h
|
inlinevirtual |
not write a node in outputmanager
Reimplemented in Fun4AllDstOutputManager.
Definition at line 38 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 38 of file Fun4AllOutputManager.h
|
inlinevirtual |
not write a runwise node in outputmanager
Reimplemented in Fun4AllDstOutputManager.
Definition at line 44 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 44 of file Fun4AllOutputManager.h
|
inlinevirtual |
write starting from given node
Reimplemented in Fun4AllDstOutputManager, Fun4AllPrdfOutputManager, Fun4AllHepMCOutputManager, and Fun4AllEventOutputManager.
Definition at line 68 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 68 of file Fun4AllOutputManager.h
Referenced by WriteGeneric().
int Fun4AllOutputManager::WriteGeneric | ( | PHCompositeNode * | startNode | ) |
Common method, called before calling virtual Write.
Definition at line 40 of file Fun4AllOutputManager.cc.
View newest version in sPHENIX GitHub at line 40 of file Fun4AllOutputManager.cc
References m_NEvents, and Write().
|
inlinevirtual |
write specified node
Reimplemented in Fun4AllDstOutputManager.
Definition at line 74 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 74 of file Fun4AllOutputManager.h
|
private |
vector of event selectors modules
Definition at line 118 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 118 of file Fun4AllOutputManager.h
Referenced by AddEventSelector(), EventSelector(), and Print().
|
private |
Number of Events.
Definition at line 112 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 112 of file Fun4AllOutputManager.h
Referenced by EventsWritten(), IncrementEvents(), and WriteGeneric().
|
private |
output file name
Definition at line 115 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 115 of file Fun4AllOutputManager.h
Referenced by OutFileName().
|
private |
vector of associated module indexes
Definition at line 121 of file Fun4AllOutputManager.h.
View newest version in sPHENIX GitHub at line 121 of file Fun4AllOutputManager.h
Referenced by DoNotWriteEvent(), Print(), and RecoModuleIndex().