Skip to content

Commit 02c70fc

Browse files
committed
O2 linter fixes
1 parent dc2dd3d commit 02c70fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Common/Tools/Multiplicity/macros/runGlauberFit.C

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ int runGlauberFit(TString lInputFileName = "AnalysisResultsLHC24ar.root", TStrin
281281
Int_t lFitStatus = 0;
282282
lFitStatus = g->DoFit();
283283
Int_t lAttempts = 1;
284-
while (lAttempts < 10 && lFitStatus == 0) {
284+
Int_t lMaxAttempts = 10;
285+
while (lAttempts < lMaxAttempts && lFitStatus == 0) {
285286
// insist on fitting until it works
286287
cout << "Attempting fit again (" << lAttempts << " attempt)..." << endl;
287288
lFitStatus = g->DoFit();
@@ -303,7 +304,8 @@ int runGlauberFit(TString lInputFileName = "AnalysisResultsLHC24ar.root", TStrin
303304
for (Int_t ii = 1; ii < hGlauber->GetNbinsX() + 1; ii++) {
304305
Double_t lFuncVal = FastIntegrate(fitfunc, hGlauber->GetBinLowEdge(ii), hGlauber->GetBinLowEdge(ii + 1), 4);
305306
hGlauber->SetBinContent(ii, lFuncVal);
306-
if (ii % 500 == 0) {
307+
Int_t printEveryThisManyBins = 500;
308+
if (ii % printEveryThisManyBins == 0) {
307309
cout << "At integration #" << ii << "/" << hGlauber->GetNbinsX() + 1 << "..." << endl;
308310
}
309311
}

0 commit comments

Comments
 (0)