Class Reference for E1039 Core & Analysis Software
Fun4AllSpillDstOutputManager.h
Go to the documentation of this file.
1 #ifndef __FUN4ALL_SPILL_DST_OUTPUT_MANAGER_H__
2 #define __FUN4ALL_SPILL_DST_OUTPUT_MANAGER_H__
4 class DbSvc;
5 
7 
20  std::string m_dir_base;
21  int m_sp_step;
22  int m_run_id;
23  int m_sp_id_f;
24 
25  DbSvc* m_db;
26  std::string m_name_table;
27 
28  public:
29  Fun4AllSpillDstOutputManager(const std::string &dir_base, const std::string &myname = "SPILLDSTOUT");
31 
32  void SetSpillStep(const int step) { m_sp_step = step; }
33  int Write(PHCompositeNode *startNode);
34  void EnableDB(const bool refresh_db=false, const std::string name_table="spill_dst_status");
35 
36  protected:
37  void DstStarted (const int run, const int spill_f, const int spill_l, const std::string file_name, int utime=0);
38  void DstFinished(const int run, const int spill_f, const int spill_l, int utime=0);
39 };
40 
41 #endif /* __FUN4ALL_SPILL_DST_OUTPUT_MANAGER_H__ */
Standard interface with SQL database.
Definition: DbSvc.h:15
A Fun4All output manger that creates one DST file per spill group.
void EnableDB(const bool refresh_db=false, const std::string name_table="spill_dst_status")
void DstStarted(const int run, const int spill_f, const int spill_l, const std::string file_name, int utime=0)
void DstFinished(const int run, const int spill_f, const int spill_l, int utime=0)
Fun4AllSpillDstOutputManager(const std::string &dir_base, const std::string &myname="SPILLDSTOUT")
int Write(PHCompositeNode *startNode)
write starting from given node