Skip to content

Commit 083a8ca

Browse files
author
Pei-Ying Kuan
committed
fix error
1 parent 8edb9aa commit 083a8ca

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

PWGCF/MultiparticleCorrelations/Tasks/multiparticleCumulants.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <Framework/InitContext.h>
2828
#include <Framework/OutputObjHeader.h>
2929
#include <Framework/runDataProcessing.h>
30+
#include <Framework/O2DatabasePDG.h>
3031

3132
#include <TCollection.h>
3233
#include <TFile.h>
@@ -312,7 +313,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
312313
// *) For mc event only
313314
if constexpr (rm == eMc) {
314315
// TDatabasePDG *db= TDatabasePDG::Instance();
315-
TParticlePDG* particle = db->GetParticle(track.pdgCode());
316+
TParticlePDG* particle = pdg->GetParticle(track.pdgCode());
316317

317318
if (!particle) {
318319
// LOGF(warning, "PDG code %d not found", track.pdgCode());
@@ -962,9 +963,9 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
962963
wt.fWeightHistogramsList->SetOwner(kTRUE);
963964
fBaseList->Add(wt.fWeightHistogramsList);
964965

965-
std::vector<Configurable<std::vector<float>>> lPcBins = {cfPtBins, cfPhiBins};
966-
std::vector<Configurable<std::vector<float>>> lEvBins = {cfCentBins, cfMultBins, cfVerXBins, cfVerYBins, cfVerZBins, cfNumContribBins};
967-
std::vector<Configurable<std::vector<float>>> lQABins = {cfCentBins, cfMultBins, cfNumContribBins};
966+
std::vector<Configurable<std::vector<float>>> lPcBins = {tc.PtBins, tc.PhiBins};
967+
std::vector<Configurable<std::vector<float>>> lEvBins = {tc.CentBins, tc.MultBins, tc.VerXBins, tc.VerYBins, tc.VerZBins, tc.NumContribBins};
968+
std::vector<Configurable<std::vector<float>>> lQABins = {tc.CentBins, tc.MultBins, tc.NumContribBins};
968969

969970
BookParticleHistograms<ePt>(lPcBins, pc);
970971
BookParticleHistograms<ePhi>(lPcBins, pc);

0 commit comments

Comments
 (0)