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

#include <coresoftware/blob/master/offline/framework/fun4all/Fun4AllInputManager.h>

+ Inheritance diagram for Fun4AllInputManager:
+ Collaboration diagram for Fun4AllInputManager:

Public Member Functions

 ~Fun4AllInputManager () override
 
virtual int fileopen (const std::string &)
 
virtual int fileclose ()
 
virtual int run (const int)
 
virtual int ReadInRunNode (PHCompositeNode *)
 
std::string FileName () const
 
void FileName (const std::string &fn)
 
virtual int GetSyncObject (SyncObject **)
 
virtual int SyncIt (const SyncObject *)
 
virtual int BranchSelect (const std::string &, const int)
 
virtual int setBranches ()
 
void Print (const std::string &what="ALL") const override
 
virtual int PushBackEvents (const int)
 
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 int ResetEvent ()
 
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)
 
virtual int HasSyncObject () 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.
 

Protected Member Functions

 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 ()
 
- Protected Member Functions inherited from Fun4AllBase
 Fun4AllBase (const std::string &name="NONAME")
 

Private Attributes

Fun4AllSyncManagerm_MySyncManager
 
int m_IsOpen
 
int m_Repeat
 
int m_MyRunNumber
 
int m_InitRun
 
std::vector< SubsysReco * > m_SubsystemsVector
 
std::string m_InputNode
 
std::string m_FileName
 
std::string m_TopNodeName
 
std::list< std::string > m_FileList
 
std::list< std::string > m_FileListCopy
 
std::list< std::string > m_FileListOpened
 

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
}
 

Detailed Description

Definition at line 20 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 20 of file Fun4AllInputManager.h

Constructor & Destructor Documentation

Fun4AllInputManager::~Fun4AllInputManager ( )
override

Definition at line 29 of file Fun4AllInputManager.cc.

View newest version in sPHENIX GitHub at line 29 of file Fun4AllInputManager.cc

References m_SubsystemsVector, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

Fun4AllInputManager::Fun4AllInputManager ( const std::string &  name = "DUMMY",
const std::string &  nodename = "DST",
const std::string &  topnodename = "TOP" 
)
protected

Definition at line 16 of file Fun4AllInputManager.cc.

View newest version in sPHENIX GitHub at line 16 of file Fun4AllInputManager.cc

Member Function Documentation

int Fun4AllInputManager::AddFile ( const std::string &  filename)

Definition at line 42 of file Fun4AllInputManager.cc.

View newest version in sPHENIX GitHub at line 42 of file Fun4AllInputManager.cc

References m_FileList, m_FileListCopy, Fun4AllBase::Name(), and Fun4AllBase::Verbosity().

Referenced by AddListFile(), and InputManagers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Fun4AllInputManager::AddListFile ( const std::string &  filename,
const int  do_it = 0 
)

Definition at line 54 of file Fun4AllInputManager.cc.

View newest version in sPHENIX GitHub at line 54 of file Fun4AllInputManager.cc

References AddFile(), Acts::concept::exists, in, PHWHERE, and Fun4AllBase::Verbosity().

Referenced by dst_eventeval(), Fun4All_G4_Pi0_Tbt(), Fun4All_G4_SlopeCal(), and InputManagers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Fun4AllInputManager::AddToFileOpened ( const std::string &  filename)
inline

Definition at line 50 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 50 of file Fun4AllInputManager.h

References m_FileListOpened.

Referenced by Fun4AllDstInputManager::fileopen(), Fun4AllPrdfInputManager::fileopen(), Fun4AllOscarInputManager::fileopen(), Fun4AllHepMCInputManager::fileopen(), Fun4AllDstPileupInputManager::fileopen(), and Fun4AllSingleDstPileupInputManager::fileopen().

+ Here is the caller graph for this function:

virtual int Fun4AllInputManager::BranchSelect ( const std::string &  ,
const int   
)
inlinevirtual

Reimplemented in Fun4AllDstPileupInputManager, Fun4AllSingleDstPileupInputManager, and Fun4AllDstInputManager.

Definition at line 32 of file Fun4AllInputManager.h.

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

virtual int Fun4AllInputManager::fileclose ( )
inlinevirtual
bool Fun4AllInputManager::FileListEmpty ( ) const
inline

Definition at line 55 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 55 of file Fun4AllInputManager.h

References m_FileList.

Referenced by Fun4AllDstInputManager::run(), Fun4AllPrdfInputManager::run(), Fun4AllHepMCPileupInputManager::run(), Fun4AllOscarInputManager::run(), Fun4AllHepMCInputManager::run(), Fun4AllSingleDstPileupInputManager::run(), and Fun4AllDstPileupInputManager::runOne().

+ Here is the caller graph for this function:

std::string Fun4AllInputManager::FileName ( ) const
inline

Definition at line 28 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 28 of file Fun4AllInputManager.h

References m_FileName.

Referenced by Fun4AllDstInputManager::fileopen(), Fun4AllPrdfInputManager::fileopen(), Fun4AllDstPileupInputManager::fileopen(), Fun4AllSingleDstPileupInputManager::fileopen(), and Fun4AllDummyInputManager::Fun4AllDummyInputManager().

+ Here is the caller graph for this function:

void Fun4AllInputManager::FileName ( const std::string &  fn)
inline

Definition at line 29 of file Fun4AllInputManager.h.

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

References m_FileName.

virtual int Fun4AllInputManager::fileopen ( const std::string &  )
inlinevirtual

Reimplemented in Fun4AllDstPileupInputManager, Fun4AllSingleDstPileupInputManager, Fun4AllHepMCInputManager, Fun4AllOscarInputManager, Fun4AllDstInputManager, Fun4AllDummyInputManager, and Fun4AllPrdfInputManager.

Definition at line 24 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 24 of file Fun4AllInputManager.h

Referenced by Fun4All_CaloAna(), Fun4All_ExportGeom(), Fun4All_G4_Clusters(), Fun4All_JetAna(), G4TTree(), InputManagers(), MyHitTTree(), OpenNextFile(), PHGeom_DSTInspection(), and ReadFieldMap().

+ Here is the caller graph for this function:

std::pair<std::list<std::string>::const_iterator, std::list<std::string>::const_iterator> Fun4AllInputManager::FileOpenListBeginEnd ( )
inline

Definition at line 51 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 51 of file Fun4AllInputManager.h

References m_FileListOpened.

virtual int Fun4AllInputManager::GetSyncObject ( SyncObject **  )
inlinevirtual
virtual int Fun4AllInputManager::HasSyncObject ( ) const
inlinevirtual

Reimplemented in Fun4AllNoSyncDstInputManager, Fun4AllDstInputManager, and Fun4AllPrdfInputManager.

Definition at line 58 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 58 of file Fun4AllInputManager.h

std::string Fun4AllInputManager::InputNode ( )
inline

Definition at line 52 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 52 of file Fun4AllInputManager.h

References m_InputNode.

Referenced by Fun4AllDstInputManager::fileopen(), Fun4AllDstPileupInputManager::fileopen(), Fun4AllSingleDstPileupInputManager::fileopen(), Fun4AllHepMCInputManager::Fun4AllHepMCInputManager(), Fun4AllOscarInputManager::Fun4AllOscarInputManager(), and Fun4AllDstPileupInputManager::run().

+ Here is the caller graph for this function:

void Fun4AllInputManager::InputNode ( const std::string &  innode)
inline

Definition at line 53 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 53 of file Fun4AllInputManager.h

References m_InputNode.

void Fun4AllInputManager::IsOpen ( const int  i)
inlineprotected

Definition at line 64 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 64 of file Fun4AllInputManager.h

References m_IsOpen.

Fun4AllSyncManager* Fun4AllInputManager::MySyncManager ( )
inlineprotected

Definition at line 65 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 65 of file Fun4AllInputManager.h

References m_MySyncManager.

Referenced by Fun4AllOscarInputManager::fileopen(), Fun4AllHepMCInputManager::fileopen(), Fun4AllPrdfInputManager::run(), Fun4AllDummyInputManager::run(), Fun4AllHepMCInputManager::run(), and Fun4AllDummyInputManager::setSyncManager().

+ Here is the caller graph for this function:

virtual int Fun4AllInputManager::NoSyncPushBackEvents ( const int  )
inlinevirtual
int Fun4AllInputManager::OpenNextFile ( )
protected

Definition at line 214 of file Fun4AllInputManager.cc.

View newest version in sPHENIX GitHub at line 214 of file Fun4AllInputManager.cc

References fileopen(), m_FileList, PHWHERE, and Fun4AllBase::Verbosity().

Referenced by Fun4AllDstInputManager::ReadNextEventSyncObject(), Fun4AllDstInputManager::run(), Fun4AllPrdfInputManager::run(), Fun4AllHepMCPileupInputManager::run(), Fun4AllOscarInputManager::run(), Fun4AllHepMCInputManager::run(), Fun4AllSingleDstPileupInputManager::run(), and Fun4AllDstPileupInputManager::runOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Fun4AllInputManager::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 Fun4AllBase.

Reimplemented in Fun4AllDstPileupInputManager, Fun4AllSingleDstPileupInputManager, and Fun4AllPrdfInputManager.

Definition at line 113 of file Fun4AllInputManager.cc.

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

References file, m_FileList, m_SubsystemsVector, and Fun4AllBase::Name().

Referenced by Fun4AllPrdfInputManager::Print(), Fun4AllDstInputManager::Print(), Fun4AllOscarInputManager::Print(), Fun4AllHepMCInputManager::Print(), Fun4AllDstPileupInputManager::Print(), and Fun4AllSingleDstPileupInputManager::Print().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual int Fun4AllInputManager::PushBackEvents ( const int  )
inlinevirtual

Reimplemented in Fun4AllHepMCPileupInputManager, Fun4AllDstPileupInputManager, Fun4AllSingleDstPileupInputManager, Fun4AllHepMCInputManager, Fun4AllOscarInputManager, Fun4AllDstInputManager, Fun4AllDummyInputManager, and Fun4AllPrdfInputManager.

Definition at line 35 of file Fun4AllInputManager.h.

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

Referenced by skip().

+ Here is the caller graph for this function:

virtual int Fun4AllInputManager::ReadInRunNode ( PHCompositeNode )
inlinevirtual

Definition at line 27 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 27 of file Fun4AllInputManager.h

int Fun4AllInputManager::registerSubsystem ( SubsysReco subsystem)

Definition at line 142 of file Fun4AllInputManager.cc.

View newest version in sPHENIX GitHub at line 142 of file Fun4AllInputManager.cc

References SubsysReco::Init(), Fun4AllServer::instance(), m_SubsystemsVector, m_TopNodeName, Fun4AllBase::Name(), PHWHERE, Fun4AllServer::topNode(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int Fun4AllInputManager::RejectEvent ( )
virtual

Definition at line 160 of file Fun4AllInputManager.cc.

View newest version in sPHENIX GitHub at line 160 of file Fun4AllInputManager.cc

References Fun4AllReturnCodes::DISCARDEVENT, Fun4AllReturnCodes::EVENT_OK, Fun4AllServer::instance(), m_InitRun, m_SubsystemsVector, m_TopNodeName, Fun4AllBase::Name(), Fun4AllServer::topNode(), and Fun4AllBase::Verbosity().

Referenced by Fun4AllDstInputManager::run(), Fun4AllPrdfInputManager::run(), Fun4AllHepMCPileupInputManager::run(), Fun4AllOscarInputManager::run(), Fun4AllHepMCInputManager::run(), Fun4AllSingleDstPileupInputManager::run(), and Fun4AllDstPileupInputManager::runOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Fun4AllInputManager::Repeat ( const int  i = -1)
inline

Definition at line 44 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 44 of file Fun4AllInputManager.h

References m_Repeat.

Referenced by Fun4AllHepMCPileupInputManager::Fun4AllHepMCPileupInputManager(), and InputManagers().

+ Here is the caller graph for this function:

virtual int Fun4AllInputManager::ResetEvent ( )
inlinevirtual

Reimplemented in Fun4AllHepMCInputManager, Fun4AllOscarInputManager, Fun4AllHepMCPileupInputManager, and Fun4AllPrdfInputManager.

Definition at line 47 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 47 of file Fun4AllInputManager.h

int Fun4AllInputManager::ResetFileList ( )
virtual

Reimplemented in Fun4AllDummyInputManager.

Definition at line 185 of file Fun4AllInputManager.cc.

View newest version in sPHENIX GitHub at line 185 of file Fun4AllInputManager.cc

References m_FileList, m_FileListCopy, and Fun4AllBase::Name().

+ Here is the call graph for this function:

virtual int Fun4AllInputManager::run ( const int  )
inlinevirtual
virtual int Fun4AllInputManager::RunNumber ( ) const
inlinevirtual

Definition at line 49 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 49 of file Fun4AllInputManager.h

References m_MyRunNumber.

virtual int Fun4AllInputManager::setBranches ( )
inlinevirtual

Reimplemented in Fun4AllDstPileupInputManager, Fun4AllSingleDstPileupInputManager, and Fun4AllDstInputManager.

Definition at line 33 of file Fun4AllInputManager.h.

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

virtual void Fun4AllInputManager::SetRunNumber ( const int  runno)
inlinevirtual

Definition at line 48 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 48 of file Fun4AllInputManager.h

References m_MyRunNumber.

Referenced by Fun4AllDstInputManager::fileopen(), Fun4AllSingleDstPileupInputManager::fileopen(), Fun4AllDstPileupInputManager::fileopen(), and Fun4AllPrdfInputManager::run().

+ Here is the caller graph for this function:

virtual void Fun4AllInputManager::setSyncManager ( Fun4AllSyncManager master)
inlinevirtual

Reimplemented in Fun4AllDummyInputManager.

Definition at line 45 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 45 of file Fun4AllInputManager.h

References m_MySyncManager.

Referenced by Fun4AllSyncManager::registerInputManager(), and Fun4AllDummyInputManager::setSyncManager().

+ Here is the caller graph for this function:

virtual int Fun4AllInputManager::skip ( const int  nevt)
inlinevirtual

Reimplemented in Fun4AllOscarInputManager.

Definition at line 38 of file Fun4AllInputManager.h.

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

References PushBackEvents().

+ Here is the call graph for this function:

virtual int Fun4AllInputManager::SkipForThisManager ( const int  )
inlinevirtual

Reimplemented in Fun4AllHepMCInputManager, Fun4AllHepMCPileupInputManager, and Fun4AllNoSyncDstInputManager.

Definition at line 57 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 57 of file Fun4AllInputManager.h

virtual int Fun4AllInputManager::SyncIt ( const SyncObject )
inlinevirtual
std::string Fun4AllInputManager::TopNodeName ( ) const
inline

Definition at line 54 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 54 of file Fun4AllInputManager.h

References m_TopNodeName.

Referenced by Fun4AllDstInputManager::fileopen(), Fun4AllSingleDstPileupInputManager::fileopen(), Fun4AllDstPileupInputManager::fileopen(), Fun4AllPrdfInputManager::Fun4AllPrdfInputManager(), and Fun4AllDstPileupInputManager::run().

+ Here is the caller graph for this function:

void Fun4AllInputManager::UpdateFileList ( )
protected

Definition at line 197 of file Fun4AllInputManager.cc.

View newest version in sPHENIX GitHub at line 197 of file Fun4AllInputManager.cc

References m_FileList, and m_Repeat.

Referenced by Fun4AllDstInputManager::fileclose(), Fun4AllPrdfInputManager::fileclose(), Fun4AllOscarInputManager::fileclose(), Fun4AllHepMCInputManager::fileclose(), Fun4AllDstPileupInputManager::fileclose(), and Fun4AllSingleDstPileupInputManager::fileclose().

+ Here is the caller graph for this function:

Member Data Documentation

std::list<std::string> Fun4AllInputManager::m_FileList
private

Definition at line 77 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 77 of file Fun4AllInputManager.h

Referenced by AddFile(), FileListEmpty(), OpenNextFile(), Print(), ResetFileList(), and UpdateFileList().

std::list<std::string> Fun4AllInputManager::m_FileListCopy
private

Definition at line 78 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 78 of file Fun4AllInputManager.h

Referenced by AddFile(), and ResetFileList().

std::list<std::string> Fun4AllInputManager::m_FileListOpened
private

Definition at line 79 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 79 of file Fun4AllInputManager.h

Referenced by AddToFileOpened(), and FileOpenListBeginEnd().

std::string Fun4AllInputManager::m_FileName
private

Definition at line 75 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 75 of file Fun4AllInputManager.h

Referenced by FileName().

int Fun4AllInputManager::m_InitRun
private

Definition at line 72 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 72 of file Fun4AllInputManager.h

Referenced by RejectEvent().

std::string Fun4AllInputManager::m_InputNode
private

Definition at line 74 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 74 of file Fun4AllInputManager.h

Referenced by InputNode().

int Fun4AllInputManager::m_IsOpen
private

Definition at line 69 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 69 of file Fun4AllInputManager.h

Referenced by IsOpen().

int Fun4AllInputManager::m_MyRunNumber
private

Definition at line 71 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 71 of file Fun4AllInputManager.h

Referenced by RunNumber(), and SetRunNumber().

Fun4AllSyncManager* Fun4AllInputManager::m_MySyncManager
private

Definition at line 68 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 68 of file Fun4AllInputManager.h

Referenced by MySyncManager(), and setSyncManager().

int Fun4AllInputManager::m_Repeat
private

Definition at line 70 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 70 of file Fun4AllInputManager.h

Referenced by Repeat(), and UpdateFileList().

std::vector<SubsysReco *> Fun4AllInputManager::m_SubsystemsVector
private

Definition at line 73 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 73 of file Fun4AllInputManager.h

Referenced by Print(), registerSubsystem(), RejectEvent(), and ~Fun4AllInputManager().

std::string Fun4AllInputManager::m_TopNodeName
private

Definition at line 76 of file Fun4AllInputManager.h.

View newest version in sPHENIX GitHub at line 76 of file Fun4AllInputManager.h

Referenced by registerSubsystem(), RejectEvent(), and TopNodeName().


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