7 std::string UtilOnline::m_dir_end =
"/seaquest/e906daq/coda/data/END";
8 std::string UtilOnline::m_dir_coda =
"/localdata/codadata";
9 std::string UtilOnline::m_dir_dst =
"/data2/e1039/dst";
10 std::string UtilOnline::m_dir_eddst =
"/data2/e1039/onlmon/evt_disp";
11 std::string UtilOnline::m_dir_onlmon =
"/data2/e1039/onlmon/plots";
12 std::string UtilOnline::m_sch_maindaq =
"user_e1039_maindaq";
16 m_dir_dst =
"/data2/e1039/dst-devel";
17 m_dir_onlmon =
"/data2/e1039/onlmon/plots-devel";
18 m_sch_maindaq =
"user_e1039_maindaq_devel";
27 int length = name.length();
28 if (length < 19)
return 0;
29 return atoi(name.substr(length-15, 6).c_str());
36 oss << setfill(
'0') <<
"run_" << setw(6) << run <<
"_spin.dat";
52 oss << setfill(
'0') <<
"run_" << setw(6) << run <<
"_spin.root";
60 oss << setfill(
'0') <<
"run_" << setw(6) << run <<
"_evt_disp.root";
66 return GetCodaFileDir() +
"/" + RunNum2CodaFile(run);
71 return GetEndFileDir() +
"/" + RunNum2EndFile(run);
76 return GetDstFileDir() +
"/" + RunNum2DstFile(run);
81 return GetEDDstFileDir() +
"/" + RunNum2EDDstFile(run);
static std::string RunNum2CodaFile(const int run)
Convert a run number to the corresponding name of Coda file.
static std::string GetCodaFilePath(const int run)
static std::string RunNum2EndFile(const int run)
Convert a run number to the corresponding name of END file.
int run(const int nEvents=1)
static std::string GetDstFilePath(const int run)
static std::string GetEDDstFilePath(const int run)
static void UseOutputLocationForDevel()
static std::string GetEndFilePath(const int run)
static std::string RunNum2DstFile(const int run)
Convert a run number to the corresponding name of DST file.
static std::string RunNum2EDDstFile(const int run)
Convert a run number to the corresponding name of edDST file.
static int CodaFile2RunNum(const std::string name)
Convert the name of a Coda file to its run number.