ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/framework/fun4all/Fun4AllSyncManager.h>
Public Member Functions | |
Fun4AllSyncManager (const std::string &name="SYNCMANAGERNONAME") | |
~Fun4AllSyncManager () override | |
int | registerInputManager (Fun4AllInputManager *InManager) |
Fun4AllInputManager * | getInputManager (const std::string &name) |
int | run (const int nevnts=0) |
run n events (0 means up to end of file | |
int | skip (const int nevnts=0) |
skip n events (0 means up to the end of file). Skip means read, don't process. | |
int | fileopen (const std::string &managername, const std::string &filename) |
int | fileclose (const std::string &managername="NONE") |
int | CurrentRun () |
void | CurrentRun (const int ival) |
void | CurrentEvent (const int evt) |
void | Print (const std::string &what="ALL") const override |
void | SegmentNumber (const int iseg) |
int | SegmentNumber () const |
int | BranchSelect (const std::string &managername, const std::string &branch, int iflag) |
int | BranchSelect (const std::string &branch, const int iflag) |
int | setBranches (const std::string &managername) |
int | setBranches () |
void | TotalEvents (const int i) |
int | TotalEvents () const |
void | PrdfEvents (const int i) |
int | PrdfEvents () const |
void | GetInputFullFileList (std::vector< std::string > &fnames) const |
void | Repeat (const int i=-1) |
void | PushBackInputMgrsEvents (const int i) |
int | ResetEvent () |
const std::vector < Fun4AllInputManager * > | GetInputManagers () 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 | |
void | PrintSyncProblem () const |
int | CheckSync (unsigned i) |
Private Attributes | |
int | m_PrdfSegment = 0 |
int | m_PrdfEvents = 0 |
int | m_EventsTotal = 0 |
int | m_CurrentRun = 0 |
int | m_CurrentEvent = 0 |
int | m_Repeat = 0 |
SyncObject * | m_MasterSync = nullptr |
std::vector < Fun4AllInputManager * > | m_InManager |
std::vector< int > | m_iretInManager |
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 Fun4AllBase | |
Fun4AllBase (const std::string &name="NONAME") | |
Definition at line 18 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 18 of file Fun4AllSyncManager.h
Fun4AllSyncManager::Fun4AllSyncManager | ( | const std::string & | name = "SYNCMANAGERNONAME" | ) |
Definition at line 22 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 22 of file Fun4AllSyncManager.cc
|
override |
Definition at line 28 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 28 of file Fun4AllSyncManager.cc
References m_InManager, m_MasterSync, and Fun4AllBase::Verbosity().
int Fun4AllSyncManager::BranchSelect | ( | const std::string & | managername, |
const std::string & | branch, | ||
int | iflag | ||
) |
Definition at line 327 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 327 of file Fun4AllSyncManager.cc
References m_InManager.
Definition at line 341 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 341 of file Fun4AllSyncManager.cc
References m_InManager.
|
private |
Definition at line 413 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 413 of file Fun4AllSyncManager.cc
References m_InManager, and m_MasterSync.
Referenced by run().
Definition at line 456 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 456 of file Fun4AllSyncManager.cc
References Fun4AllServer::EventNumber(), Fun4AllServer::instance(), and m_CurrentEvent.
Referenced by Fun4AllPrdfInputManager::run(), Fun4AllDummyInputManager::run(), and Fun4AllHepMCInputManager::run().
|
inline |
Definition at line 37 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 37 of file Fun4AllSyncManager.h
References m_CurrentRun.
Referenced by Fun4AllOscarInputManager::fileopen(), Fun4AllHepMCInputManager::fileopen(), and Fun4AllDummyInputManager::setSyncManager().
Definition at line 38 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 38 of file Fun4AllSyncManager.h
References m_CurrentRun.
int Fun4AllSyncManager::fileclose | ( | const std::string & | managername = "NONE" | ) |
Definition at line 375 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 375 of file Fun4AllSyncManager.cc
References m_InManager.
int Fun4AllSyncManager::fileopen | ( | const std::string & | managername, |
const std::string & | filename | ||
) |
Definition at line 313 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 313 of file Fun4AllSyncManager.cc
References m_InManager.
void Fun4AllSyncManager::GetInputFullFileList | ( | std::vector< std::string > & | fnames | ) | const |
Definition at line 420 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 420 of file Fun4AllSyncManager.cc
References m_InManager.
Referenced by Fun4AllServer::GetInputFullFileList().
Fun4AllInputManager * Fun4AllSyncManager::getInputManager | ( | const std::string & | name | ) |
Definition at line 65 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 65 of file Fun4AllSyncManager.cc
References m_InManager, and Fun4AllBase::Name().
|
inline |
Definition at line 55 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 55 of file Fun4AllSyncManager.h
References m_InManager.
Definition at line 49 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 49 of file Fun4AllSyncManager.h
References m_PrdfEvents.
Referenced by Fun4AllServer::PrdfEvents(), and Fun4AllPrdfInputManager::run().
|
inline |
Definition at line 50 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 50 of file Fun4AllSyncManager.h
References m_PrdfEvents.
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from Fun4AllBase.
Definition at line 394 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 394 of file Fun4AllSyncManager.cc
References m_InManager, and Fun4AllBase::Name().
Referenced by skip().
|
private |
Definition at line 464 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 464 of file Fun4AllSyncManager.cc
References m_InManager.
Referenced by run().
Definition at line 433 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 433 of file Fun4AllSyncManager.cc
References m_InManager.
int Fun4AllSyncManager::registerInputManager | ( | Fun4AllInputManager * | InManager | ) |
Definition at line 43 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 43 of file Fun4AllSyncManager.cc
References m_InManager, m_iretInManager, Fun4AllBase::Name(), Fun4AllInputManager::setSyncManager(), and Fun4AllBase::Verbosity().
Referenced by Fun4AllServer::registerInputManager().
Definition at line 52 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 52 of file Fun4AllSyncManager.h
References m_Repeat.
int Fun4AllSyncManager::ResetEvent | ( | ) |
Definition at line 442 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 442 of file Fun4AllSyncManager.cc
References m_InManager, and Fun4AllBase::Verbosity().
run n events (0 means up to end of file
Definition at line 79 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 79 of file Fun4AllSyncManager.cc
References CheckSync(), Fun4AllReturnCodes::EVENT_OK, g4zmq::exit(), m_CurrentRun, m_EventsTotal, m_InManager, m_iretInManager, m_MasterSync, m_Repeat, Fun4AllBase::Name(), PrintSyncProblem(), Fun4AllReturnCodes::RESET_NODE_TREE, and Fun4AllBase::Verbosity().
Definition at line 41 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 41 of file Fun4AllSyncManager.h
References m_PrdfSegment.
Referenced by Fun4AllPrdfInputManager::run(), and Fun4AllServer::SegmentNumber().
|
inline |
Definition at line 42 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 42 of file Fun4AllSyncManager.h
References m_PrdfSegment.
int Fun4AllSyncManager::setBranches | ( | const std::string & | managername | ) |
Definition at line 351 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 351 of file Fun4AllSyncManager.cc
References m_InManager.
int Fun4AllSyncManager::setBranches | ( | ) |
Definition at line 365 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 365 of file Fun4AllSyncManager.cc
References m_InManager.
skip n events (0 means up to the end of file). Skip means read, don't process.
Definition at line 280 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 280 of file Fun4AllSyncManager.cc
References m_InManager, PHWHERE, and Print().
Definition at line 47 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 47 of file Fun4AllSyncManager.h
References m_EventsTotal.
Referenced by Fun4AllServer::DstEvents().
|
inline |
Definition at line 48 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 48 of file Fun4AllSyncManager.h
References m_EventsTotal.
|
private |
Definition at line 64 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 64 of file Fun4AllSyncManager.h
Referenced by CurrentEvent().
|
private |
Definition at line 63 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 63 of file Fun4AllSyncManager.h
Referenced by CurrentRun(), and run().
|
private |
Definition at line 62 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 62 of file Fun4AllSyncManager.h
Referenced by run(), and TotalEvents().
|
private |
Definition at line 67 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 67 of file Fun4AllSyncManager.h
Referenced by BranchSelect(), CheckSync(), fileclose(), fileopen(), GetInputFullFileList(), getInputManager(), GetInputManagers(), Print(), PrintSyncProblem(), PushBackInputMgrsEvents(), registerInputManager(), ResetEvent(), run(), setBranches(), skip(), and ~Fun4AllSyncManager().
|
private |
Definition at line 68 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 68 of file Fun4AllSyncManager.h
Referenced by registerInputManager(), and run().
|
private |
Definition at line 66 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 66 of file Fun4AllSyncManager.h
Referenced by CheckSync(), run(), and ~Fun4AllSyncManager().
|
private |
Definition at line 61 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 61 of file Fun4AllSyncManager.h
Referenced by PrdfEvents().
|
private |
Definition at line 60 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 60 of file Fun4AllSyncManager.h
Referenced by SegmentNumber().
|
private |
Definition at line 65 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 65 of file Fun4AllSyncManager.h