#include <NearlinePlotMaker.h>
Definition at line 1159 of file NearlinePlotMaker.h.
NearlineProcessingTime::NearlineProcessingTime |
( |
std::string |
file_name, |
|
|
int |
Ndays |
|
) |
| |
Definition at line 1175 of file NearlinePlotMaker.h.
1182 std::ifstream in_file(
file_name.c_str());
1190 while(std::getline(in_file, line)){
1191 if(line.find(
"START_DATE ") != std::string::npos) start = line.substr(
std::string(
"START_DATE ").size());
1192 if(line.find(
"END_NEARLINE_ANA ") != std::string::npos) end_nearline_ana = line.substr(
std::string(
"END_NEARLINE_ANA ").size());
1193 if(line.find(
"END_NEARLINE_MUON ") != std::string::npos) end_nearline_muon = line.substr(
std::string(
"END_NEARLINE_MUON ").size());
1194 if(line.find(
"END_DATE ") != std::string::npos) end = line.substr(
std::string(
"END_DATE ").size());
def line(rflist, normalization=13700 *units.eplus)
static TDatime GetDateTime(std::string date, int Ndays)
static TDatime const InvalidDateTime
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
TDatime fEndNearlineMuonDate
TDatime fEndNearlineAnaDate
NearlineProcessingTime::NearlineProcessingTime |
( |
std::string |
file_name, |
|
|
int |
Ndays |
|
) |
| |
TDatime NearlineProcessingTime::GetDateTime |
( |
std::string |
date, |
|
|
int |
Ndays |
|
) |
| |
|
static |
Definition at line 1207 of file NearlinePlotMaker.h.
1209 std::string command =
"date -d \"" + date +
"\" +\"%Y-%m-%d %T\" > " + temp_file_name;
1210 int retval = system(command.c_str());
1211 std::ifstream temp_file(temp_file_name.c_str());
1213 std::getline(temp_file, new_date);
1215 TDatime date_time(new_date.c_str());
std::string to_string(ModuleType const mt)
static TDatime NearlineProcessingTime::GetDateTime |
( |
std::string |
date, |
|
|
int |
Ndays |
|
) |
| |
|
static |
lbne/data2/users/lbnedaq/nearline/v04_36_01/011/011425/lbne_r011425_sr01_20160217T083237_nearline_hists.root lbne/data2/users/lbnedaq/nearline/v04_36_01/011/011425/lbne_r011425_sr01_20160217T083237.root.DONE
Definition at line 1219 of file NearlinePlotMaker.h.
1225 return file_name_done;
int find(char c, int index=0, bool cs=TRUE) const
lbne/data2/users/lbnedaq/nearline/v04_36_01/011/011425/lbne_r011425_sr01_20160217T083237_nearline_hists.root lbne/data2/users/lbnedaq/nearline_evd/v04_36_01/011/011425_01/lbne_r011425_sr01_20160217T083237.rootEVD.DONE
Definition at line 1229 of file NearlinePlotMaker.h.
1238 std::string file_name_done = prefix_dir +
"/nearline_evd" + suffix_dir +
"_01/" + short_file_name;
1239 file_name_done = file_name_done.substr(0, file_name_done.find(
"_nearline")) +
".rootEVD.DONE";
1241 return file_name_done;
int find(char c, int index=0, bool cs=TRUE) const
TDatime NearlineProcessingTime::fEndDate |
TDatime NearlineProcessingTime::fEndNearlineAnaDate |
TDatime NearlineProcessingTime::fEndNearlineMuonDate |
TDatime NearlineProcessingTime::fStartDate |
const TDatime NearlineProcessingTime::InvalidDateTime = TDatime(1995,00,00,00,00,00) |
|
static |
The documentation for this struct was generated from the following files: