Class Reference for E1039 Core & Analysis Software
UtilOnline.h
Go to the documentation of this file.
1 #ifndef _UTIL_ONLINE__H_
2 #define _UTIL_ONLINE__H_
3 #include <string>
4 #include <vector>
5 
6 class UtilOnline {
7  static std::string m_dir_end;
8  static std::string m_dir_coda;
9  static std::string m_dir_dst;
10  static std::string m_dir_eddst;
11  static std::string m_dir_onlmon;
12  static std::string m_sch_maindaq;
13 
14  public:
15  static void UseOutputLocationForDevel();
16 
17  static void SetEndFileDir (const std::string dir);
18  static void SetCodaFileDir (const std::string dir);
19  static void SetDstFileDir (const std::string dir);
20  static void SetEDDstFileDir (const std::string dir);
21  static void SetOnlMonDir (const std::string dir);
22  static void SetSchemaMainDaq(const std::string sch);
23 
24  static std::string GetEndFileDir () { return m_dir_end ; }
25  static std::string GetCodaFileDir () { return m_dir_coda ; }
26  static std::string GetDstFileDir () { return m_dir_dst ; }
27  static std::string GetEDDstFileDir () { return m_dir_eddst ; }
28  static std::string GetOnlMonDir () { return m_dir_onlmon ; }
29  static std::string GetSchemaMainDaq() { return m_sch_maindaq; }
30 
31  static int CodaFile2RunNum(const std::string name);
32  static std::string RunNum2CodaFile(const int run);
33  static std::string RunNum2EndFile(const int run);
34  static std::string RunNum2DstFile(const int run);
35  static std::string RunNum2EDDstFile(const int run);
36 
37  static std::string GetSpillDstDir (const int run);
38  static std::string GetSpillDstFile(const int run, const int spill);
39  static std::string GetSpillDstPath(const int run, const int spill);
40  static std::vector<std::string> GetListOfSpillDSTs(const int run, const std::string dir_dst="");
41 
42  static std::string GetCodaFilePath(const int run);
43  static std::string GetEndFilePath(const int run);
44  static std::string GetDstFilePath(const int run);
45  static std::string GetEDDstFilePath(const int run);
46 
47  static std::string Run6(const int run, const int digit=6);
48  static std::string Spill9(const int spill, const int digit=9);
49 };
50 
51 #endif /* _UTIL_ONLINE__H_ */
static std::string GetSchemaMainDaq()
Definition: UtilOnline.h:29
static std::string GetSpillDstFile(const int run, const int spill)
Convert a run+spill number to the corresponding name of DST file.
Definition: UtilOnline.cc:104
static std::string Spill9(const int spill, const int digit=9)
Definition: UtilOnline.cc:170
static std::string GetDstFilePath(const int run)
Definition: UtilOnline.cc:153
static void SetSchemaMainDaq(const std::string sch)
Definition: UtilOnline.cc:47
static void SetEDDstFileDir(const std::string dir)
Definition: UtilOnline.cc:37
static void UseOutputLocationForDevel()
Definition: UtilOnline.cc:15
static std::string RunNum2EndFile(const int run)
Convert a run number to the corresponding name of END file.
Definition: UtilOnline.cc:72
static std::string GetOnlMonDir()
Definition: UtilOnline.h:28
static int CodaFile2RunNum(const std::string name)
Convert the name of a Coda file to its run number.
Definition: UtilOnline.cc:56
static void SetCodaFileDir(const std::string dir)
Definition: UtilOnline.cc:27
static std::string RunNum2CodaFile(const int run)
Convert a run number to the corresponding name of Coda file.
Definition: UtilOnline.cc:64
static std::string GetCodaFileDir()
Definition: UtilOnline.h:25
static std::string GetCodaFilePath(const int run)
Definition: UtilOnline.cc:143
static void SetOnlMonDir(const std::string dir)
Definition: UtilOnline.cc:42
static std::string GetEndFileDir()
Definition: UtilOnline.h:24
static std::string GetSpillDstPath(const int run, const int spill)
Definition: UtilOnline.cc:111
static std::string Run6(const int run, const int digit=6)
Definition: UtilOnline.cc:163
static std::string RunNum2DstFile(const int run)
Convert a run number to the corresponding name of DST file.
Definition: UtilOnline.cc:80
static std::string GetEDDstFilePath(const int run)
Definition: UtilOnline.cc:158
static std::vector< std::string > GetListOfSpillDSTs(const int run, const std::string dir_dst="")
Definition: UtilOnline.cc:116
static std::string GetDstFileDir()
Definition: UtilOnline.h:26
static std::string GetEndFilePath(const int run)
Definition: UtilOnline.cc:148
static void SetEndFileDir(const std::string dir)
Definition: UtilOnline.cc:22
static std::string RunNum2EDDstFile(const int run)
Convert a run number to the corresponding name of edDST file.
Definition: UtilOnline.cc:88
static std::string GetEDDstFileDir()
Definition: UtilOnline.h:27
static std::string GetSpillDstDir(const int run)
Get a directory of spill-level DST files.
Definition: UtilOnline.cc:96
static void SetDstFileDir(const std::string dir)
Definition: UtilOnline.cc:32