Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllPrdfOutputManager Class Reference

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

+ Inheritance diagram for Fun4AllPrdfOutputManager:
+ Collaboration diagram for Fun4AllPrdfOutputManager:

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=default
 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 void SaveDstNode (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 unsigned int EventsWritten () const
 get number of Events
 
virtual void IncrementEvents (const unsigned int i)
 increment number of events
 
virtual void SetEventsWritten (const unsigned int i)
 set number of events
 
virtual std::string OutFileName () const
 get output file name
 
void OutFileName (const std::string &name)
 
void SetClosingScript (const std::string &script)
 
void SetClosingScriptArgs (const std::string &args)
 
int RunAfterClosing ()
 
void UseFileRule ()
 
bool ApplyFileRule () const
 
void SetNEvents (const unsigned int nevt)
 
unsigned int GetNEvents () const
 
- 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

PHCompositeNodem_PrdfNode
 prdf node
 
PHRawOManagerm_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 = std::numeric_limits<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 Fun4AllPrdfOutputManager.h.

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

Constructor & Destructor Documentation

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

Fun4AllPrdfOutputManager::~Fun4AllPrdfOutputManager ( )
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.

Member Function Documentation

int Fun4AllPrdfOutputManager::InitPrdfManager ( )
private

initialize prdf output manager every time the output file name is changed including first event

Definition at line 104 of file Fun4AllPrdfOutputManager.cc.

View newest version in sPHENIX GitHub at line 104 of file Fun4AllPrdfOutputManager.cc

References PHFlag::FlagExist(), PHFlag::get_IntFlag(), recoConsts::instance(), m_PrdfOutManager, Fun4AllOutputManager::OutFileName(), and run_number.

Referenced by Write().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

int Fun4AllPrdfOutputManager::outfileopen ( const std::string &  fname)
virtual

reinitialize raw output manager to write to new filename. Close old one if any

Reimplemented from Fun4AllOutputManager.

Definition at line 56 of file Fun4AllPrdfOutputManager.cc.

View newest version in sPHENIX GitHub at line 56 of file Fun4AllPrdfOutputManager.cc

References m_PrdfOutManager, Fun4AllOutputManager::OutFileName(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int Fun4AllPrdfOutputManager::Write ( PHCompositeNode startNode)
virtual

event write method (startNode argument is ignored. prdfNode is always used)

Reimplemented from Fun4AllOutputManager.

Definition at line 78 of file Fun4AllPrdfOutputManager.cc.

View newest version in sPHENIX GitHub at line 78 of file Fun4AllPrdfOutputManager.cc

References InitPrdfManager(), m_PrdfNode, m_PrdfOutManager, and PHRawOManager::write().

+ Here is the call graph for this function:

Member Data Documentation

PHCompositeNode* Fun4AllPrdfOutputManager::m_PrdfNode
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().

PHRawOManager* Fun4AllPrdfOutputManager::m_PrdfOutManager
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().


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