Skip to content

Commit 1f3900e

Browse files
committed
Please consider the following formatting changes
1 parent 30bb32b commit 1f3900e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

Detectors/MUON/MID/Calibration/macros/build_rejectlist.C

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -329,23 +329,23 @@ RejectListStruct load_from_json(const o2::ccdb::CcdbApi& ccdbApi, const char* fi
329329
std::cerr << "Problem parsing " << filename << std::endl;
330330
return {};
331331
}
332-
332+
333333
// manual-validity interval in ms:
334334
int64_t startTSms = 0;
335335
int64_t endTSms = 0;
336336

337337
// check if there are non-zero timestamps in the json
338338
bool hasStartTT = doc.HasMember("startTT") && doc["startTT"].IsInt64() && doc["startTT"].GetInt64() != 0;
339-
bool hasEndTT = doc.HasMember("endTT") && doc["endTT"].IsInt64() && doc["endTT"].GetInt64() != 0;
339+
bool hasEndTT = doc.HasMember("endTT") && doc["endTT"].IsInt64() && doc["endTT"].GetInt64() != 0;
340340
if (hasStartTT && hasEndTT) {
341341
startTSms = doc["startTT"].GetInt64();
342-
endTSms = doc["endTT"].GetInt64();
342+
endTSms = doc["endTT"].GetInt64();
343343

344344
// sanity check against the run boundaries
345-
int startRun = doc["startRun"].GetInt();
346-
int endRun = doc["endRun"].GetInt();
347-
auto runStart = o2::ccdb::BasicCCDBManager::getRunDuration(ccdbApi, startRun).first;
348-
auto runEnd = o2::ccdb::BasicCCDBManager::getRunDuration(ccdbApi, endRun).second;
345+
int startRun = doc["startRun"].GetInt();
346+
int endRun = doc["endRun"].GetInt();
347+
auto runStart = o2::ccdb::BasicCCDBManager::getRunDuration(ccdbApi, startRun).first;
348+
auto runEnd = o2::ccdb::BasicCCDBManager::getRunDuration(ccdbApi, endRun).second;
349349
if (startTSms < runStart || endTSms > runEnd) {
350350
std::cout
351351
<< "\n\nWarning: manual timestamps [" << startTSms << " - " << endTSms
@@ -354,15 +354,14 @@ RejectListStruct load_from_json(const o2::ccdb::CcdbApi& ccdbApi, const char* fi
354354
} else {
355355
// use run start/end if there are no timestamps in the json
356356
int startRun = doc["startRun"].GetInt();
357-
int endRun = doc["endRun"].GetInt();
357+
int endRun = doc["endRun"].GetInt();
358358
startTSms = o2::ccdb::BasicCCDBManager::getRunDuration(ccdbApi, startRun).first;
359-
endTSms = o2::ccdb::BasicCCDBManager::getRunDuration(ccdbApi, endRun).second;
359+
endTSms = o2::ccdb::BasicCCDBManager::getRunDuration(ccdbApi, endRun).second;
360360
}
361361

362-
363362
RejectListStruct rl;
364363
rl.start = startTSms;
365-
rl.end = endTSms;
364+
rl.end = endTSms;
366365
std::cout << "Manual RL validity: " << timeRangeToString(rl.start, rl.end) << std::endl;
367366
auto rlArray = doc["rejectList"].GetArray();
368367
for (auto& ar : rlArray) {

0 commit comments

Comments
 (0)