Skip to content

Commit 2cb2ff9

Browse files
committed
Fixes from O2 linter
1 parent d7b5bf4 commit 2cb2ff9

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

Common/Tools/Multiplicity/macros/runCalibration.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111
//
12+
/// \file saveCorrelation.C
13+
/// \brief
14+
/// \author ALICE
1215

1316
#include <iostream>
1417

Common/Tools/Multiplicity/macros/runGlauberFit.C

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111
//
12+
/// \file saveCorrelation.C
13+
/// \brief
14+
/// \author ALICE
1215

1316
#include "multCalibrator.h"
1417
#include "multGlauberNBDFitter.h"
@@ -134,16 +137,22 @@ int runGlauberFit(TString lInputFileName = "AnalysisResultsLHC24ar.root", TStrin
134137

135138
// minimum fit range estimate (guess region that may be unfittable)
136139
// may need adjusting
137-
Double_t lFitRange = 0.012 * GetBoundaryForPercentile(hV0Mfine, 0.01);
138-
if (lFitRangeMax < 10000)
139-
lFitRange = 0.02 * GetBoundaryForPercentile(hV0Mfine, 0.01);
140+
Double_t maxPercent = 0.01;
141+
Double_t fractionOfMax = 0.012;
142+
Double_t lFitRange = fractionOfMax * GetBoundaryForPercentile(hV0Mfine, maxPercent);
143+
144+
// adjust if low mult (Ntracks, typically)
145+
Double_t maxRangeForTracks= 10000;
146+
Double_t fractionOfMaxBroader = 0.02;
147+
if (lFitRangeMax < maxRangeForTracks)
148+
lFitRange = fractionOfMaxBroader * GetBoundaryForPercentile(hV0Mfine, maxPercent);
140149

141150
cout << "Fit range min estimated from histogram: " << lFitRange << endl;
142151

143152
//____________________________________________
144153
// rebinning matters
145154
int rebinFactor = 20;
146-
if (lFitRangeMax < 10000)
155+
if (lFitRangeMax < maxRangeForTracks)
147156
rebinFactor = 1;
148157

149158
cout << "Creating rebinned histogram with rebin factor: " << rebinFactor << endl;

Common/Tools/Multiplicity/macros/saveCorrelation.C

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
// In applying this license CERN does not waive the privileges and immunities
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
11-
//
12-
// This file provides a simple macro to convert TGlauberMC output tuples
13-
// into the 2D correlation histogram necessary for the ALICE machinery
14-
// that performs Glauber + NBD fits.
11+
//
12+
/// \file saveCorrelation.C
13+
/// \brief This file provides a simple macro to convert TGlauberMC output tuples
14+
/// into the 2D correlation histogram necessary for the ALICE machinery
15+
/// that performs Glauber + NBD fits.
16+
/// \author ALICE
1517

1618
#include <iostream>
1719

0 commit comments

Comments
 (0)