ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllEventOutputManager Class Reference

#include <coresoftware/blob/master/offline/framework/fun4allraw/Fun4AllEventOutputManager.h>

+ Inheritance diagram for Fun4AllEventOutputManager:
+ Collaboration diagram for Fun4AllEventOutputManager:

Public Member Functions

 Fun4AllEventOutputManager (const std::string &myname="EVENTOUT", const std::string &filename="eventout.prdf", const unsigned int sizeInMB=0, const int offset=0, const int increment=1)
 
virtual ~Fun4AllEventOutputManager ()
 
int outfileopen (const std::string &)
 opens output file
 
void Print (const std::string &what="ALL") const
 print method (dump event selector)
 
int Write (PHCompositeNode *startNode)
 write starting from given node
 
int AddPacket (const int ipkt)
 
int DropPacket (const int ipkt)
 
int AddPacketRange (const int ipktmin, const int ipktmax)
 
int DropPacketRange (const int ipktmin, const int ipktmax)
 
void SetOutfileName (const std::string &fname)
 
- Public Member Functions inherited from Fun4AllOutputManager
 ~Fun4AllOutputManager () override
 destructor
 
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.
 

Protected Attributes

std::string m_OutFileRule
 
Fun4AllEventOutStreamm_OutStream
 

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)
 

Detailed Description

Definition at line 13 of file Fun4AllEventOutputManager.h.

View newest version in sPHENIX GitHub at line 13 of file Fun4AllEventOutputManager.h

Constructor & Destructor Documentation

Fun4AllEventOutputManager::Fun4AllEventOutputManager ( const std::string &  myname = "EVENTOUT",
const std::string &  filename = "eventout.prdf",
const unsigned int  sizeInMB = 0,
const int  offset = 0,
const int  increment = 1 
)

Definition at line 19 of file Fun4AllEventOutputManager.cc.

View newest version in sPHENIX GitHub at line 19 of file Fun4AllEventOutputManager.cc

References m_OutStream, and Fun4AllEventOutStream::SetManager().

+ Here is the call graph for this function:

Fun4AllEventOutputManager::~Fun4AllEventOutputManager ( )
virtual

Definition at line 28 of file Fun4AllEventOutputManager.cc.

View newest version in sPHENIX GitHub at line 28 of file Fun4AllEventOutputManager.cc

References m_OutStream.

Member Function Documentation

int Fun4AllEventOutputManager::AddPacket ( const int  ipkt)

Definition at line 57 of file Fun4AllEventOutputManager.cc.

View newest version in sPHENIX GitHub at line 57 of file Fun4AllEventOutputManager.cc

References Fun4AllEventOutStream::AddPacket(), m_OutStream, and PHWHERE.

+ Here is the call graph for this function:

int Fun4AllEventOutputManager::AddPacketRange ( const int  ipktmin,
const int  ipktmax 
)

Definition at line 71 of file Fun4AllEventOutputManager.cc.

View newest version in sPHENIX GitHub at line 71 of file Fun4AllEventOutputManager.cc

References Fun4AllEventOutStream::AddPacketRange(), m_OutStream, and PHWHERE.

+ Here is the call graph for this function:

int Fun4AllEventOutputManager::DropPacket ( const int  ipkt)

Definition at line 85 of file Fun4AllEventOutputManager.cc.

View newest version in sPHENIX GitHub at line 85 of file Fun4AllEventOutputManager.cc

References Fun4AllEventOutStream::DropPacket(), m_OutStream, and PHWHERE.

+ Here is the call graph for this function:

int Fun4AllEventOutputManager::DropPacketRange ( const int  ipktmin,
const int  ipktmax 
)

Definition at line 99 of file Fun4AllEventOutputManager.cc.

View newest version in sPHENIX GitHub at line 99 of file Fun4AllEventOutputManager.cc

References Fun4AllEventOutStream::DropPacketRange(), m_OutStream, and PHWHERE.

+ Here is the call graph for this function:

int Fun4AllEventOutputManager::outfileopen ( const std::string &  )
inlinevirtual

opens output file

Reimplemented from Fun4AllOutputManager.

Definition at line 19 of file Fun4AllEventOutputManager.h.

View newest version in sPHENIX GitHub at line 19 of file Fun4AllEventOutputManager.h

void Fun4AllEventOutputManager::Print ( const std::string &  what = "ALL") const
virtual

print method (dump event selector)

Reimplemented from Fun4AllOutputManager.

Definition at line 34 of file Fun4AllEventOutputManager.cc.

View newest version in sPHENIX GitHub at line 34 of file Fun4AllEventOutputManager.cc

References m_OutFileRule, Fun4AllBase::Name(), and Fun4AllOutputManager::Print().

+ Here is the call graph for this function:

void Fun4AllEventOutputManager::SetOutfileName ( const std::string &  fname)

Definition at line 113 of file Fun4AllEventOutputManager.cc.

View newest version in sPHENIX GitHub at line 113 of file Fun4AllEventOutputManager.cc

References Fun4AllOutputManager::OutFileName().

Referenced by Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Fun4AllEventOutputManager::Write ( PHCompositeNode )
virtual

write starting from given node

Reimplemented from Fun4AllOutputManager.

Definition at line 43 of file Fun4AllEventOutputManager.cc.

View newest version in sPHENIX GitHub at line 43 of file Fun4AllEventOutputManager.cc

References Fun4AllServer::instance(), m_OutStream, PHWHERE, Fun4AllServer::topNode(), and Fun4AllEventOutStream::WriteEvent().

+ Here is the call graph for this function:

Member Data Documentation

std::string Fun4AllEventOutputManager::m_OutFileRule
protected

Definition at line 32 of file Fun4AllEventOutputManager.h.

View newest version in sPHENIX GitHub at line 32 of file Fun4AllEventOutputManager.h

Referenced by Print().

Fun4AllEventOutStream* Fun4AllEventOutputManager::m_OutStream
protected

Definition at line 33 of file Fun4AllEventOutputManager.h.

View newest version in sPHENIX GitHub at line 33 of file Fun4AllEventOutputManager.h

Referenced by AddPacket(), AddPacketRange(), DropPacket(), DropPacketRange(), Fun4AllEventOutputManager(), Write(), and ~Fun4AllEventOutputManager().


The documentation for this class was generated from the following files: