You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Detectors/EMCAL/calibration/run/runCalibOffline.cxx
+32-2Lines changed: 32 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -44,15 +44,19 @@ int main(int argc, char** argv)
44
44
std::string ccdbServerPath;
45
45
bool doBadChannelCalib;
46
46
std::string nameCalibInputHist; // hCellIdVsTimeAbove300 for time, hCellIdVsEnergy for bad channel
47
+
std::string namePathStoreLocal; // name for path + histogram to store the calibration locally in root TH1 format
47
48
48
49
unsignedint nthreads; // number of threads used by openMP
49
50
50
51
unsignedlong rangestart; //30/10/2021, 01:02:32 for run 505566 -> 1635548552000
51
52
unsignedlong rangeend; // 30/10/2021, 02:31:10 for run 505566 -> 1635553870000
52
53
54
+
double timeRangeLow;
55
+
double timeRangeHigh;
56
+
53
57
try {
54
58
bpo::options_description desc("Allowed options");
55
-
desc.add_options()("help", "Print this help message")("CalibInputPath", bpo::value<std::string>()->required(), "Set root input histogram")("ccdbServerPath", bpo::value<std::string>()->default_value(o2::base::NameConf::getCCDBServer()), "Set path to ccdb server")("mode", bpo::value<std::string>()->required(), "Set if time or bad channel calib")("nameInputHisto", bpo::value<std::string>()->default_value("hCellIdVsTimeAbove300"), "Set name of input histogram")("nthreads", bpo::value<unsignedint>()->default_value(1), "Set number of threads for OpenMP")("timestampStart", bpo::value<unsignedlong>()->default_value(1635548552000), "Set timestamp from start of run")("timestampEnd", bpo::value<unsignedlong>()->default_value(1635553870000), "Set timestamp from end of run");
59
+
desc.add_options()("help", "Print this help message")("CalibInputPath", bpo::value<std::string>()->required(), "Set root input histogram")("ccdbServerPath", bpo::value<std::string>()->default_value(o2::base::NameConf::getCCDBServer()), "Set path to ccdb server")("mode", bpo::value<std::string>()->required(), "Set if time or bad channel calib")("nameInputHisto", bpo::value<std::string>()->default_value("hCellIdVsTimeAbove300"), "Set name of input histogram")("nthreads", bpo::value<unsigned int>()->default_value(1), "Set number of threads for OpenMP")("timestampStart", bpo::value<unsigned long>()->default_value(1635548552000), "Set timestamp from start of run")("timestampEnd", bpo::value<unsigned long>()->default_value(1635553870000), "Set timestamp from end of run")("namePathStoreLocal", bpo::value<std::string>()->default_value(""), "Set path to store histo of time calib locally")("timeRangeLow", bpo::value<double>()->default_value(1), "Set lower boundary of fit interval for time calibration (in ns)")("timeRangeHigh", bpo::value<double>()->default_value(1000), "Set upper boundary of fit interval for time calibration (in ns)");
0 commit comments