Skip to content

Commit 190ba0c

Browse files
authored
Merge pull request #10 from alibuild/alibot-cleanup-16028
Formatting changes to #16028
2 parents 8811f8c + 49629c5 commit 190ba0c

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

Common/Tasks/zdcExtraTableReader.cxx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,10 @@ struct ZdcExtraTableReader {
294294
TH1* hMeanQyVyZNA{nullptr};
295295
TH1* hMeanQxVyZNC{nullptr};
296296
TH1* hMeanQyVyZNC{nullptr};
297-
297+
298298
// Destructor to handle cleanup automatically
299-
~CalibStepData() {
299+
~CalibStepData()
300+
{
300301
delete hMeanQxZNA;
301302
delete hMeanQyZNA;
302303
delete hMeanQxZNC;
@@ -337,7 +338,7 @@ struct ZdcExtraTableReader {
337338

338339
HistogramRegistry histos{"histos"};
339340

340-
enum EvSelBits { // same bits as in zdcExtraTableProducer.cxx
341+
enum EvSelBits { // same bits as in zdcExtraTableProducer.cxx
341342
ZVtxCut,
342343
Sel8,
343344
OccupancyCut,
@@ -372,16 +373,16 @@ struct ZdcExtraTableReader {
372373
{
373374
delete hMeanVx;
374375
hMeanVx = nullptr;
375-
376+
376377
delete hMeanVy;
377378
hMeanVy = nullptr;
378379

379380
delete mShiftProfileZNA;
380381
mShiftProfileZNA = nullptr;
381-
382+
382383
delete mShiftProfileZNC;
383384
mShiftProfileZNC = nullptr;
384-
385+
385386
mCalibCache.clear();
386387
}
387388

@@ -607,28 +608,27 @@ struct ZdcExtraTableReader {
607608

608609
if (!lst) {
609610
LOGF(error, " >> CCDB TList is NULL for path: %s. Check object type (TList vs TFile).", folder.c_str());
610-
return;
611+
return;
611612
}
612613

613-
// Important: Object names must match exactly what was saved
614-
mShiftProfileZNA = safeClone<TProfile3D>(lst->FindObject("ShiftProfileZNA"));
615-
mShiftProfileZNC = safeClone<TProfile3D>(lst->FindObject("ShiftProfileZNC"));
614+
// Important: Object names must match exactly what was saved
615+
mShiftProfileZNA = safeClone<TProfile3D>(lst->FindObject("ShiftProfileZNA"));
616+
mShiftProfileZNC = safeClone<TProfile3D>(lst->FindObject("ShiftProfileZNC"));
616617

617-
if (mShiftProfileZNA) {
618-
mShiftProfileZNA->SetDirectory(nullptr); // Detach from file
618+
if (mShiftProfileZNA) {
619+
mShiftProfileZNA->SetDirectory(nullptr); // Detach from file
619620
// LOGF(info, " >> ShiftProfileZNA found! Entries: %.0f, Mean: %f", mShiftProfileZNA->GetEntries(), mShiftProfileZNA->GetMean());
620-
} else {
621-
LOGF(error, " >> ShiftProfileZNA NOT found in TList! Content follows:");
622-
lst->Print();
623-
}
624-
625-
if (mShiftProfileZNC) {
626-
mShiftProfileZNC->SetDirectory(nullptr);
627-
// LOGF(info, " >> ShiftProfileZNC found! Entries: %.0f", mShiftProfileZNC->GetEntries());
628-
} else {
629-
LOGF(error, " >> ShiftProfileZNC NOT found in TList!");
630-
}
621+
} else {
622+
LOGF(error, " >> ShiftProfileZNA NOT found in TList! Content follows:");
623+
lst->Print();
624+
}
631625

626+
if (mShiftProfileZNC) {
627+
mShiftProfileZNC->SetDirectory(nullptr);
628+
// LOGF(info, " >> ShiftProfileZNC found! Entries: %.0f", mShiftProfileZNC->GetEntries());
629+
} else {
630+
LOGF(error, " >> ShiftProfileZNC NOT found in TList!");
631+
}
632632
}
633633
} // end of loadCalibrations()
634634

0 commit comments

Comments
 (0)