Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllSyncManager Class Reference

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

+ Inheritance diagram for Fun4AllSyncManager:
+ Collaboration diagram for Fun4AllSyncManager:

Public Member Functions

 Fun4AllSyncManager (const std::string &name="SYNCMANAGERNONAME")
 
 ~Fun4AllSyncManager () override
 
int registerInputManager (Fun4AllInputManager *InManager)
 
Fun4AllInputManagergetInputManager (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
 
SyncObjectm_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")
 

Detailed Description

Definition at line 18 of file Fun4AllSyncManager.h.

View newest version in sPHENIX GitHub at line 18 of file Fun4AllSyncManager.h

Constructor & Destructor Documentation

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

Fun4AllSyncManager::~Fun4AllSyncManager ( )
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().

+ Here is the call graph for this function:

Member Function Documentation

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.

int Fun4AllSyncManager::CheckSync ( unsigned  i)
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().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Fun4AllSyncManager::CurrentRun ( )
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().

+ Here is the caller graph for this function:

void Fun4AllSyncManager::CurrentRun ( const int  ival)
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().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

const std::vector<Fun4AllInputManager *> Fun4AllSyncManager::GetInputManagers ( ) const
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().

+ Here is the caller graph for this function:

bool Fun4AllSyncManager::MixRunsOk ( ) const
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().

+ Here is the caller graph for this function:

void Fun4AllSyncManager::MixRunsOk ( bool  b)
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.

void Fun4AllSyncManager::PrdfEvents ( const int  i)
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().

+ Here is the caller graph for this function:

int Fun4AllSyncManager::PrdfEvents ( ) const
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.

void Fun4AllSyncManager::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.

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Fun4AllSyncManager::PrintSyncProblem ( ) const
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().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 52 of file Fun4AllSyncManager.h.

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

References i, and m_Repeat.

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().

+ Here is the call graph for this function:

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().

+ Here is the call graph for this function:

void Fun4AllSyncManager::SegmentNumber ( const int  iseg)
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().

+ Here is the caller graph for this function:

int Fun4AllSyncManager::SegmentNumber ( ) const
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().

+ Here is the call graph for this function:

void Fun4AllSyncManager::TotalEvents ( const int  i)
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().

+ Here is the caller graph for this function:

int Fun4AllSyncManager::TotalEvents ( ) const
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.

Member Data Documentation

int Fun4AllSyncManager::m_CurrentEvent = 0
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().

int Fun4AllSyncManager::m_CurrentRun = 0
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().

int Fun4AllSyncManager::m_EventsTotal = 0
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().

std::vector<int> Fun4AllSyncManager::m_iretInManager
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().

SyncObject* Fun4AllSyncManager::m_MasterSync = nullptr
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().

bool Fun4AllSyncManager::m_MixRunsOkFlag = false
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().

int Fun4AllSyncManager::m_PrdfEvents = 0
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().

int Fun4AllSyncManager::m_PrdfSegment = 0
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().

int Fun4AllSyncManager::m_Repeat = 0
private

Definition at line 67 of file Fun4AllSyncManager.h.

View newest version in sPHENIX GitHub at line 67 of file Fun4AllSyncManager.h

Referenced by Repeat(), and run().


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