Skip to content

Commit a3da58d

Browse files
authored
fix typos
1 parent f34b8ad commit a3da58d

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

Common/Tasks/centralityStudypp.cxx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,27 +222,26 @@ struct centralityStudypp {
222222
hCentralityMFT = dynamic_cast<TH1*>(hCentralityObjects->FindObject("hCalibZeqMFT"));
223223

224224
// won't capture null pointers -> explicitly check for those when attempting to evaluate
225-
auto reportSuccess = [](TH1* a, TString name) {
225+
auto reportSuccess = [](TH1* a, std::string name) {
226226
if(!a){
227-
LOGF(info, "Calibration missing for %s", name.Data());
227+
LOGF(info, "Calibration missing for %s", name);
228228
}else{
229-
LOGF(info, "Calibration loaded for %s", name.Data());
229+
LOGF(info, "Calibration loaded for %s", name);
230230
}
231231
};
232232

233-
reportSucess(hCentralityFV0A, "FV0A");
234-
reportSucess(hCentralityFT0A, "FT0A");
235-
reportSucess(hCentralityFT0C, "FT0C");
236-
reportSucess(hCentralityFT0M, "FT0M");
237-
reportSucess(hCentralityFDDM, "FDDM");
238-
reportSucess(hCentralityNTPV, "NTPV");
239-
reportSucess(hCentralityNGlo, "NGlobals");
240-
reportSucess(hCentralityMFT, "MFT");
233+
reportSuccess(hCentralityFV0A, "FV0A");
234+
reportSuccess(hCentralityFT0A, "FT0A");
235+
reportSuccess(hCentralityFT0C, "FT0C");
236+
reportSuccess(hCentralityFT0M, "FT0M");
237+
reportSuccess(hCentralityFDDM, "FDDM");
238+
reportSuccess(hCentralityNTPV, "NTPV");
239+
reportSuccess(hCentralityNGlo, "NGlobals");
240+
reportSuccess(hCentralityMFT, "MFT");
241241

242242
LOGF(info, "Centrality calibration loading done.");
243243
}
244244

245-
246245
histPath = std::format("Run_{}/", mRunNumber);
247246

248247
histPointers.insert({histPath + "hCollisionSelection", histos.add((histPath + "hCollisionSelection").c_str(), "hCollisionSelection", {kTH1D, {{20, -0.5f, +19.5f}}})});

0 commit comments

Comments
 (0)