1 #ifndef FUN4ALLSERVER_H
2 #define FUN4ALLSERVER_H
30 virtual bool registerHisto(
const char *hname, TNamed *h1d,
const int replace = 0);
31 virtual bool registerHisto(TNamed *h1d,
const int replace = 0);
46 TNamed *
getHisto(
const std::string &hname)
const;
47 TNamed *
getHisto(
const unsigned int ihisto)
const;
48 const char *
getHistoName(
const unsigned int ihisto)
const;
49 virtual void Print(
const std::string &what =
"ALL")
const;
53 int dumpHistos(
const std::string &filename =
"",
const std::string &openmode =
"RECREATE");
56 virtual int BeginRun(
const int runno);
57 virtual int EndRun(
const int runno = 0);
68 int AddComplaint(
const std::string &complaint,
const std::string &remedy);
77 int run(
const int nevnts = 0,
const bool require_nevents =
false);
83 int skip(
const int nevnts = 0);
85 int fileopen(
const char *managername =
"NONE",
const char *filename =
"NONE");
86 int fileclose(
const std::string &managername =
"");
89 int BranchSelect(
const char *managername,
const char *branch,
int iflag);
94 virtual void identify(std::ostream &out = std::cout)
const;
95 unsigned GetTopNodes(std::vector<std::string> &names)
const;
106 void PrintTimer(
const std::string &name =
"");
111 int setRun(
const int runno);
129 std::vector<std::pair<SubsysReco *, PHCompositeNode *> >
Subsystems;
void GetModuleList(std::vector< std::string > &names) const
int registerSubsystem(SubsysReco *subsystem, const std::string &topnodename="TOP")
int retcodestats(const int iret)
Fun4AllInputManager * getInputManager(const char *name)
int run(const int nevnts=0, const bool require_nevents=false)
run n events (0 means up to end of file)
virtual int DisconnectDB()
std::vector< std::string > ComplaintList
virtual int isHistoRegistered(const std::string &name) const
void GetOutputManagerList(std::vector< std::string > &names) const
void ReadSpillTimer(double &time_subsys, double &time_output)
int InitNodeTree(PHCompositeNode *topNode)
Fun4AllSyncManager * defaultSyncManager
int CountOutNodesRecursive(PHCompositeNode *startNode, const int icount)
int registerHistoManager(Fun4AllHistoManager *manager)
int unregisterSubsystemsNow()
static Fun4AllServer * instance()
std::vector< std::pair< SubsysReco *, PHCompositeNode * > > Subsystems
const char * getHistoName(const unsigned int ihisto) const
int AddComplaint(const std::string &complaint, const std::string &remedy)
virtual bool registerHisto(const char *hname, TNamed *h1d, const int replace=0)
virtual int EndRun(const int runno=0)
int UpdateEventSelector(Fun4AllOutputManager *manager)
std::vector< int > RetCodes
int dumpHistos(const std::string &filename="", const std::string &openmode="RECREATE")
std::vector< Fun4AllOutputManager * > OutputManager
std::vector< Fun4AllSyncManager * > SyncManagers
virtual int process_event()
PHCompositeNode * topNode() const
int CountOutNodes(PHCompositeNode *startNode)
PHTimer2 * timer_sp_output
Measure the time used by OutputManager in process_event().
int AddTopNode(const std::string &name)
int BranchSelect(const char *managername, const char *branch, int iflag)
int fileopen(const char *managername="NONE", const char *filename="NONE")
Fun4AllSyncManager * getSyncManager(const std::string &name="DefaultSyncManager")
int registerSyncManager(Fun4AllSyncManager *newmaster)
std::vector< Fun4AllHistoManager * > HistoManager
PHTimer2 * timer_sp_subsys
Measure the time used by SubsysReco in process_event().
Fun4AllServer(const std::string &name="Fun4AllServer")
int MakeNodesTransient(PHCompositeNode *startNode)
PHCompositeNode * TopNode
int registerOutputManager(Fun4AllOutputManager *manager)
void NodeIdentify(const std::string &name)
TNamed * getHisto(const std::string &hname) const
int unregisterSubsystem(SubsysReco *subsystem)
virtual void identify(std::ostream &out=std::cout) const
int skip(const int nevnts=0)
skip n events (0 means up to the end of file). Skip means read, don't process.
int registerInputManager(Fun4AllInputManager *InManager)
std::vector< std::pair< SubsysReco *, PHCompositeNode * > > DeleteSubsystems
std::string default_Tdirectory
std::map< const std::string, PHTimer2 > timer_map
Fun4AllOutputManager * getOutputManager(const std::string &name)
PHCompositeNode * getNode(const char *name, const char *topnodename="TOP")
unsigned GetTopNodes(std::vector< std::string > &names) const
std::map< int, int > retcodesmap
void GetInputFullFileList(std::vector< std::string > &fnames) const
void EventNumber(const int evtno)
SubsysReco * getSubsysReco(const std::string &name)
int MakeNodesPersistent(PHCompositeNode *startNode)
int setRun(const int runno)
PHTimeStamp * beginruntimestamp
Fun4AllHistoManager * ServerHistoManager
void KeepDBConnection(const int i=1)
std::vector< TDirectory * > TDirCollection
virtual void Print(const std::string &what="ALL") const
void PrintTimer(const std::string &name="")
std::map< std::string, PHCompositeNode * > topnodemap
Fun4AllHistoManager * getHistoManager(const std::string &name)
int fileclose(const std::string &managername="")
static Fun4AllServer * __instance
virtual int BeginRun(const int runno)
int BeginRunTimeStamp(PHTimeStamp &TimeStp)
Class to measure the time spent by a code block.