Skip to content

Commit 09ec1be

Browse files
Fill with dummy values
- fill with dummy values - Switch h1dFT0M to h1dFT0A and h1dFT0C when requiring to fill h1dFT0A and h1dFT0C histograms
1 parent 6985a74 commit 09ec1be

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

PWGLF/TableProducer/Common/mcCentrality.cxx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,19 @@ struct McCentrality {
159159
const float nFT0M = nFT0A + nFT0C;
160160
// const float nFV0A = mCounter.countFV0A(mcParticles);
161161

162-
const float valueCentFT0M = h1dFT0M->GetBinContent(h1dFT0M->FindBin(nFT0M));
162+
float valueCentFT0M = 105.0f;
163+
if (h1dFT0M)
164+
valueCentFT0M = h1dFT0M->GetBinContent(h1dFT0M->FindBin(nFT0M));
163165
if (fillFt0A) {
164-
const float valueCentFT0A = h1dFT0M->GetBinContent(h1dFT0M->FindBin(nFT0A));
166+
float valueCentFT0A = 105.0f;
167+
if (h1dFT0A)
168+
valueCentFT0A = h1dFT0A->GetBinContent(h1dFT0A->FindBin(nFT0A));
165169
centFT0A(valueCentFT0A);
166170
}
167171
if (fillFt0C) {
168-
const float valueCentFT0C = h1dFT0M->GetBinContent(h1dFT0M->FindBin(nFT0C));
172+
float valueCentFT0C = 105.0f;
173+
if (h1dFT0C)
174+
valueCentFT0C = h1dFT0C->GetBinContent(h1dFT0C->FindBin(nFT0C));
169175
centFT0C(valueCentFT0C);
170176
}
171177
// const float valueCentFV0A = h1dFT0M->GetBinContent(h1dFT0M->FindBin(nFV0A));

0 commit comments

Comments
 (0)