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

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

+ Inheritance diagram for Fun4AllPrdfInputManager:
+ Collaboration diagram for Fun4AllPrdfInputManager:

Public Member Functions

 Fun4AllPrdfInputManager (const std::string &name="DUMMY", const std::string &prdfnodename="PRDF", const std::string &topnodename="TOP")
 
virtual ~Fun4AllPrdfInputManager ()
 
int fileopen (const std::string &filenam)
 
int fileclose ()
 
int run (const int nevents=0)
 
void Print (const std::string &what="ALL") const
 
int ResetEvent ()
 
int PushBackEvents (const int i)
 
int GetSyncObject (SyncObject **mastersync)
 
int SyncIt (const SyncObject *mastersync)
 
int HasSyncObject () const
 
- Public Member Functions inherited from Fun4AllInputManager
 ~Fun4AllInputManager () override
 
virtual int ReadInRunNode (PHCompositeNode *)
 
std::string FileName () const
 
void FileName (const std::string &fn)
 
virtual int BranchSelect (const std::string &, const int)
 
virtual int setBranches ()
 
virtual int skip (const int nevt)
 
virtual int NoSyncPushBackEvents (const int)
 
int AddFile (const std::string &filename)
 
int AddListFile (const std::string &filename, const int do_it=0)
 
int registerSubsystem (SubsysReco *subsystem)
 
virtual int RejectEvent ()
 
void Repeat (const int i=-1)
 
virtual void setSyncManager (Fun4AllSyncManager *master)
 
virtual int ResetFileList ()
 
virtual void SetRunNumber (const int runno)
 
virtual int RunNumber () const
 
void AddToFileOpened (const std::string &filename)
 
std::pair< std::list
< std::string >
::const_iterator, std::list
< std::string >
::const_iterator > 
FileOpenListBeginEnd ()
 
std::string InputNode ()
 
void InputNode (const std::string &innode)
 
std::string TopNodeName () const
 
bool FileListEmpty () const
 
virtual int IsOpen () const
 
virtual int SkipForThisManager (const int)
 
- 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 Attributes

int m_Segment
 
int m_EventsTotal
 
int m_EventsThisFile
 
PHCompositeNodem_topNode
 
Eventm_Event
 
Eventm_SaveEvent
 
Eventiteratorm_EventIterator
 
SyncObjectm_SyncObject
 
std::string m_PrdfNodeName
 

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 Fun4AllInputManager
 Fun4AllInputManager (const std::string &name="DUMMY", const std::string &nodename="DST", const std::string &topnodename="TOP")
 
void UpdateFileList ()
 
int OpenNextFile ()
 
void IsOpen (const int i)
 
Fun4AllSyncManagerMySyncManager ()
 

Detailed Description

Definition at line 15 of file Fun4AllPrdfInputManager.h.

View newest version in sPHENIX GitHub at line 15 of file Fun4AllPrdfInputManager.h

Constructor & Destructor Documentation

Fun4AllPrdfInputManager::Fun4AllPrdfInputManager ( const std::string &  name = "DUMMY",
const std::string &  prdfnodename = "PRDF",
const std::string &  topnodename = "TOP" 
)

Definition at line 32 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 32 of file Fun4AllPrdfInputManager.cc

References PHCompositeNode::addNode(), PHNodeIterator::findFirst(), Fun4AllServer::instance(), m_Event, m_PrdfNodeName, m_topNode, Fun4AllServer::topNode(), and Fun4AllInputManager::TopNodeName().

+ Here is the call graph for this function:

Fun4AllPrdfInputManager::~Fun4AllPrdfInputManager ( )
virtual

Definition at line 55 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 55 of file Fun4AllPrdfInputManager.cc

References fileclose(), Fun4AllInputManager::IsOpen(), and m_SyncObject.

+ Here is the call graph for this function:

Member Function Documentation

int Fun4AllPrdfInputManager::fileclose ( )
virtual

Reimplemented from Fun4AllInputManager.

Definition at line 167 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 167 of file Fun4AllPrdfInputManager.cc

References Fun4AllInputManager::IsOpen(), m_EventIterator, Fun4AllBase::Name(), and Fun4AllInputManager::UpdateFileList().

Referenced by fileopen(), PushBackEvents(), run(), and ~Fun4AllPrdfInputManager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Fun4AllPrdfInputManager::fileopen ( const std::string &  filenam)
virtual

Reimplemented from Fun4AllInputManager.

Definition at line 64 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 64 of file Fun4AllPrdfInputManager.cc

References Fun4AllInputManager::AddToFileOpened(), fileclose(), Fun4AllInputManager::FileName(), test::fname, Fun4AllUtils::GetRunSegment(), Fun4AllInputManager::IsOpen(), FROG::location(), m_EventIterator, m_EventsThisFile, m_Segment, Fun4AllBase::Name(), PHWHERE, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int Fun4AllPrdfInputManager::GetSyncObject ( SyncObject **  mastersync)
virtual

Reimplemented from Fun4AllInputManager.

Definition at line 254 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 254 of file Fun4AllPrdfInputManager.cc

References SyncObject::CloneMe(), m_SyncObject, and Fun4AllReturnCodes::SYNC_OK.

+ Here is the call graph for this function:

int Fun4AllPrdfInputManager::HasSyncObject ( ) const
inlinevirtual

Reimplemented from Fun4AllInputManager.

Definition at line 29 of file Fun4AllPrdfInputManager.h.

View newest version in sPHENIX GitHub at line 29 of file Fun4AllPrdfInputManager.h

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

Print out some info about this module.

Parameters
whatcan be used to specify what to print exactly.

Reimplemented from Fun4AllInputManager.

Definition at line 183 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 183 of file Fun4AllPrdfInputManager.cc

References Fun4AllInputManager::Print().

+ Here is the call graph for this function:

int Fun4AllPrdfInputManager::PushBackEvents ( const int  i)
virtual

Reimplemented from Fun4AllInputManager.

Definition at line 200 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 200 of file Fun4AllPrdfInputManager.cc

References fileclose(), Event::getEvtSequence(), Eventiterator::getNextEvent(), m_Event, m_EventIterator, m_SaveEvent, Fun4AllBase::Name(), PHWHERE, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int Fun4AllPrdfInputManager::ResetEvent ( )
virtual

Reimplemented from Fun4AllInputManager.

Definition at line 189 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 189 of file Fun4AllPrdfInputManager.cc

References PHNodeIterator::findFirst(), m_Event, m_PrdfNodeName, m_SyncObject, m_topNode, SyncObject::Reset(), and PHDataNode< T >::setData().

Referenced by run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Fun4AllPrdfInputManager::SyncIt ( const SyncObject mastersync)
virtual

Reimplemented from Fun4AllInputManager.

Definition at line 275 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 275 of file Fun4AllPrdfInputManager.cc

References SyncObject::Different(), g4zmq::exit(), m_SyncObject, Fun4AllBase::Name(), PHWHERE, Fun4AllReturnCodes::SYNC_FAIL, and Fun4AllReturnCodes::SYNC_OK.

+ Here is the call graph for this function:

Member Data Documentation

Event* Fun4AllPrdfInputManager::m_Event
private

Definition at line 36 of file Fun4AllPrdfInputManager.h.

View newest version in sPHENIX GitHub at line 36 of file Fun4AllPrdfInputManager.h

Referenced by Fun4AllPrdfInputManager(), PushBackEvents(), ResetEvent(), and run().

Eventiterator* Fun4AllPrdfInputManager::m_EventIterator
private

Definition at line 38 of file Fun4AllPrdfInputManager.h.

View newest version in sPHENIX GitHub at line 38 of file Fun4AllPrdfInputManager.h

Referenced by fileclose(), fileopen(), PushBackEvents(), and run().

int Fun4AllPrdfInputManager::m_EventsThisFile
private

Definition at line 34 of file Fun4AllPrdfInputManager.h.

View newest version in sPHENIX GitHub at line 34 of file Fun4AllPrdfInputManager.h

Referenced by fileopen(), and run().

int Fun4AllPrdfInputManager::m_EventsTotal
private

Definition at line 33 of file Fun4AllPrdfInputManager.h.

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

Referenced by run().

std::string Fun4AllPrdfInputManager::m_PrdfNodeName
private

Definition at line 40 of file Fun4AllPrdfInputManager.h.

View newest version in sPHENIX GitHub at line 40 of file Fun4AllPrdfInputManager.h

Referenced by Fun4AllPrdfInputManager(), ResetEvent(), and run().

Event* Fun4AllPrdfInputManager::m_SaveEvent
private

Definition at line 37 of file Fun4AllPrdfInputManager.h.

View newest version in sPHENIX GitHub at line 37 of file Fun4AllPrdfInputManager.h

Referenced by PushBackEvents(), and run().

int Fun4AllPrdfInputManager::m_Segment
private

Definition at line 32 of file Fun4AllPrdfInputManager.h.

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

Referenced by fileopen(), and run().

SyncObject* Fun4AllPrdfInputManager::m_SyncObject
private

Definition at line 39 of file Fun4AllPrdfInputManager.h.

View newest version in sPHENIX GitHub at line 39 of file Fun4AllPrdfInputManager.h

Referenced by GetSyncObject(), ResetEvent(), run(), SyncIt(), and ~Fun4AllPrdfInputManager().

PHCompositeNode* Fun4AllPrdfInputManager::m_topNode
private

Definition at line 35 of file Fun4AllPrdfInputManager.h.

View newest version in sPHENIX GitHub at line 35 of file Fun4AllPrdfInputManager.h

Referenced by Fun4AllPrdfInputManager(), ResetEvent(), and run().


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