Analysis Software
Documentation for sPHENIX simulation 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")
 
 ~Fun4AllPrdfInputManager () override
 
int fileopen (const std::string &filenam) override
 
int fileclose () override
 
int run (const int nevents=0) override
 
void Print (const std::string &what="ALL") const override
 
int ResetEvent () override
 
int PushBackEvents (const int i) override
 
int GetSyncObject (SyncObject **mastersync) override
 
int SyncIt (const SyncObject *mastersync) override
 
int HasSyncObject () const override
 
std::string GetString (const std::string &what) const override
 
- 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)
 
const std::list< std::string > GetFileList () const
 
const std::list< std::string > GetFileOpenedList () 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 Attributes

int m_Segment = -999
 
int m_EventsTotal = 0
 
int m_EventsThisFile = 0
 
PHCompositeNodem_topNode = nullptr
 
Eventm_Event = nullptr
 
Eventm_SaveEvent = nullptr
 
Eventiteratorm_EventIterator = nullptr
 
SyncObjectm_SyncObject = nullptr
 
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 = std::numeric_limits<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 ( )
override

Definition at line 49 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 49 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 ( )
overridevirtual

Reimplemented from Fun4AllInputManager.

Definition at line 161 of file Fun4AllPrdfInputManager.cc.

View newest version in sPHENIX GitHub at line 161 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)
overridevirtual

Reimplemented from Fun4AllInputManager.

Definition at line 58 of file Fun4AllPrdfInputManager.cc.

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

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

Referenced by Fun4All_TPC_UnpackPRDF_Batch().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string Fun4AllPrdfInputManager::GetString ( const std::string &  what) const
overridevirtual

Reimplemented from Fun4AllInputManager.

Definition at line 290 of file Fun4AllPrdfInputManager.cc.

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

References m_PrdfNodeName.

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

Reimplemented from Fun4AllInputManager.

Definition at line 248 of file Fun4AllPrdfInputManager.cc.

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

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

+ Here is the call graph for this function:

int Fun4AllPrdfInputManager::HasSyncObject ( ) const
inlineoverridevirtual

Reimplemented from Fun4AllInputManager.

Definition at line 31 of file Fun4AllPrdfInputManager.h.

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

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

Print out some info about this module.

Parameters
whatcan be used to specify what to print exactly.

Reimplemented from Fun4AllInputManager.

Definition at line 177 of file Fun4AllPrdfInputManager.cc.

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

References Fun4AllInputManager::Print().

+ Here is the call graph for this function:

int Fun4AllPrdfInputManager::PushBackEvents ( const int  i)
overridevirtual

Reimplemented from Fun4AllInputManager.

Definition at line 194 of file Fun4AllPrdfInputManager.cc.

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

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

+ Here is the call graph for this function:

int Fun4AllPrdfInputManager::ResetEvent ( )
overridevirtual

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 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)
overridevirtual

Reimplemented from Fun4AllInputManager.

Definition at line 269 of file Fun4AllPrdfInputManager.cc.

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

References SyncObject::Different(), 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 = nullptr
private

Definition at line 39 of file Fun4AllPrdfInputManager.h.

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

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

Eventiterator* Fun4AllPrdfInputManager::m_EventIterator = nullptr
private

Definition at line 41 of file Fun4AllPrdfInputManager.h.

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

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

int Fun4AllPrdfInputManager::m_EventsThisFile = 0
private

Definition at line 37 of file Fun4AllPrdfInputManager.h.

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

Referenced by fileopen(), and run().

int Fun4AllPrdfInputManager::m_EventsTotal = 0
private

Definition at line 36 of file Fun4AllPrdfInputManager.h.

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

Referenced by run().

std::string Fun4AllPrdfInputManager::m_PrdfNodeName
private

Definition at line 43 of file Fun4AllPrdfInputManager.h.

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

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

Event* Fun4AllPrdfInputManager::m_SaveEvent = nullptr
private

Definition at line 40 of file Fun4AllPrdfInputManager.h.

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

Referenced by PushBackEvents(), and run().

int Fun4AllPrdfInputManager::m_Segment = -999
private

Definition at line 35 of file Fun4AllPrdfInputManager.h.

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

Referenced by fileopen(), and run().

SyncObject* Fun4AllPrdfInputManager::m_SyncObject = nullptr
private

Definition at line 42 of file Fun4AllPrdfInputManager.h.

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

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

PHCompositeNode* Fun4AllPrdfInputManager::m_topNode = nullptr
private

Definition at line 38 of file Fun4AllPrdfInputManager.h.

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

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


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