Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions PWGLF/Utils/mcCentralityModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ struct BuilderModule {
std::vector<std::shared_ptr<TProfile>> hCalibPVMC;

int nEnabledTables = 0;
int mRunNumber;
int mRunNumber = 0;

// TAxis
int nCentBins;
int nCentBins = 0;
std::vector<double> centralityBins;

// Registers the on-the-fly-calibration QA histograms for one estimator (no-op unless recalibrateCentrality
Expand Down Expand Up @@ -445,7 +445,7 @@ struct BuilderModule {
double meanMult_MC = -1;
double diffMultDataVsMC = 1e+09;
int endBinMc = startBinMc;
for (int j = startBinMc; j >= 1; j--) {
for (int j = startBinMc - 1; j >= 1; j--) {
// Loop over MC bins
TH1D* projMC = h2dMultRecoVsMultGen_MC->ProjectionY("", j, startBinMc);
int nEntries = projMC->Integral();
Expand Down Expand Up @@ -518,9 +518,9 @@ struct BuilderModule {
double meanMult_MC = -1;
double diffMultDataVsMC = 1e+09;
int endBinMc = h1dCalib->GetNbinsX();
for (int j = startBinMc; j <= h1dCalib->GetNbinsX(); j++) {
for (int j = startBinMc + 1; j <= h1dCalib->GetNbinsX(); j++) {
// Loop over MC bins
TH1D* projMC = h2dMultRecoVsMultGen_MC->ProjectionY("", startBinMc, endBinMc);
TH1D* projMC = h2dMultRecoVsMultGen_MC->ProjectionY("", startBinMc, j);
int nEntries = projMC->Integral();
double meanMC = projMC->GetMean();
double ldiff = std::abs(meanMC - meanMult_Data);
Expand Down Expand Up @@ -733,4 +733,4 @@ struct BuilderModule {
} // namespace pwglf
} // namespace o2

#endif // PWGLF_UTILS_MCCENTRALITYMODULE_
#endif // PWGLF_UTILS_MCCENTRALITYMODULE_H_
Loading