Analysis Software
Documentation for sPHENIX simulation software
|
#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 |
bool | MixRunsOk () const |
void | MixRunsOk (bool b) |
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 |
bool | m_MixRunsOkFlag = false |
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 = std::numeric_limits<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 20 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 20 of file Fun4AllSyncManager.cc
|
override |
Definition at line 26 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 26 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 329 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 329 of file Fun4AllSyncManager.cc
References m_InManager.
int Fun4AllSyncManager::BranchSelect | ( | const std::string & | branch, |
const int | iflag | ||
) |
Definition at line 343 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 343 of file Fun4AllSyncManager.cc
References m_InManager.
|
private |
Definition at line 415 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 415 of file Fun4AllSyncManager.cc
References i, m_InManager, and m_MasterSync.
Referenced by run().
void Fun4AllSyncManager::CurrentEvent | ( | const int | evt | ) |
Definition at line 458 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 458 of file Fun4AllSyncManager.cc
References Fun4AllServer::EventNumber(), Fun4AllServer::instance(), and m_CurrentEvent.
Referenced by Fun4AllDummyInputManager::run(), Fun4AllPrdfInputManager::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().
|
inline |
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 377 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 377 of file Fun4AllSyncManager.cc
References m_InManager.
int Fun4AllSyncManager::fileopen | ( | const std::string & | managername, |
const std::string & | filename | ||
) |
Definition at line 315 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 315 of file Fun4AllSyncManager.cc
References m_InManager.
void Fun4AllSyncManager::GetInputFullFileList | ( | std::vector< std::string > & | fnames | ) | const |
Definition at line 422 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 422 of file Fun4AllSyncManager.cc
References m_InManager.
Referenced by Fun4AllServer::GetInputFullFileList().
Fun4AllInputManager * Fun4AllSyncManager::getInputManager | ( | const std::string & | name | ) |
Definition at line 63 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 63 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.
Referenced by OnCalServer::End(), OnCalServer::FillRunListFromFileList(), and OnCalServer::Print().
|
inline |
Definition at line 56 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 56 of file Fun4AllSyncManager.h
References m_MixRunsOkFlag.
Referenced by Fun4All_JetBkgd_Embed().
|
inline |
Definition at line 57 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 57 of file Fun4AllSyncManager.h
References KFPMath::b, and m_MixRunsOkFlag.
|
inline |
Definition at line 49 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 49 of file Fun4AllSyncManager.h
References i, and 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 396 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 396 of file Fun4AllSyncManager.cc
References m_InManager, and Fun4AllBase::Name().
Referenced by skip().
|
private |
Definition at line 466 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 466 of file Fun4AllSyncManager.cc
References m_InManager.
Referenced by run().
void Fun4AllSyncManager::PushBackInputMgrsEvents | ( | const int | i | ) |
Definition at line 435 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 435 of file Fun4AllSyncManager.cc
References m_InManager.
int Fun4AllSyncManager::registerInputManager | ( | Fun4AllInputManager * | InManager | ) |
Definition at line 41 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 41 of file Fun4AllSyncManager.cc
References m_InManager, m_iretInManager, Fun4AllBase::Name(), Fun4AllInputManager::setSyncManager(), and Fun4AllBase::Verbosity().
Referenced by Fun4AllServer::registerInputManager().
|
inline |
Definition at line 52 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 52 of file Fun4AllSyncManager.h
int Fun4AllSyncManager::ResetEvent | ( | ) |
Definition at line 444 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 444 of file Fun4AllSyncManager.cc
References m_InManager, and Fun4AllBase::Verbosity().
int Fun4AllSyncManager::run | ( | const int | nevnts = 0 | ) |
run n events (0 means up to end of file
Definition at line 77 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 77 of file Fun4AllSyncManager.cc
References CheckSync(), Fun4AllReturnCodes::EVENT_OK, m_CurrentRun, m_EventsTotal, m_InManager, m_iretInManager, m_MasterSync, m_MixRunsOkFlag, m_Repeat, Fun4AllBase::Name(), PHWHERE, PrintSyncProblem(), Fun4AllReturnCodes::RESET_NODE_TREE, and Fun4AllBase::Verbosity().
|
inline |
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 353 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 353 of file Fun4AllSyncManager.cc
References m_InManager.
int Fun4AllSyncManager::setBranches | ( | ) |
Definition at line 367 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 367 of file Fun4AllSyncManager.cc
References m_InManager.
int Fun4AllSyncManager::skip | ( | const int | nevnts = 0 | ) |
skip n events (0 means up to the end of file). Skip means read, don't process.
Definition at line 282 of file Fun4AllSyncManager.cc.
View newest version in sPHENIX GitHub at line 282 of file Fun4AllSyncManager.cc
References i, m_InManager, PHWHERE, and Print().
|
inline |
Definition at line 47 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 47 of file Fun4AllSyncManager.h
References i, and 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 66 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 66 of file Fun4AllSyncManager.h
Referenced by CurrentEvent().
|
private |
Definition at line 65 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 65 of file Fun4AllSyncManager.h
Referenced by CurrentRun(), and run().
|
private |
Definition at line 64 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 64 of file Fun4AllSyncManager.h
Referenced by run(), and TotalEvents().
|
private |
Definition at line 70 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 70 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 71 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 71 of file Fun4AllSyncManager.h
Referenced by registerInputManager(), and run().
|
private |
Definition at line 69 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 69 of file Fun4AllSyncManager.h
Referenced by CheckSync(), run(), 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 MixRunsOk(), and run().
|
private |
Definition at line 63 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 63 of file Fun4AllSyncManager.h
Referenced by PrdfEvents().
|
private |
Definition at line 62 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 62 of file Fun4AllSyncManager.h
Referenced by SegmentNumber().
|
private |
Definition at line 67 of file Fun4AllSyncManager.h.
View newest version in sPHENIX GitHub at line 67 of file Fun4AllSyncManager.h