@@ -381,7 +381,7 @@ struct phianalysisrun3_PbPb {
381381 using TrackCandidates = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection, aod::pidTPCFullKa, aod::pidTOFFullKa>>;
382382
383383 // using EventCandidatesMC = soa::Join<aod::Collisions, aod::EvSels, aod::FT0Mults, aod::MultZeqs, aod::McCollisionLabels>;
384- using EventCandidatesMC = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Cs, aod::CentFV0As>;
384+ using EventCandidatesMC = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Ms, aod::CentFT0As, aod:: CentFT0Cs, aod::CentFV0As>;
385385 using TrackCandidatesMC = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection,
386386 aod::pidTPCFullKa, aod::pidTOFFullKa,
387387 aod::McTrackLabels>>;
@@ -1462,7 +1462,6 @@ struct phianalysisrun3_PbPb {
14621462 std::vector<int64_t > selectedEvents (collisions.size ());
14631463 int nevts = 0 ;
14641464 auto multiplicity = -1.0 ;
1465- histos.fill (HIST (" Centgen1" ), multiplicity);
14661465 histos.fill (HIST (" hMC1" ), 2.5 );
14671466 for (const auto & collision : collisions) {
14681467 if (!collision.sel8 () || std::abs (collision.mcCollision ().posZ ()) > cfgCutVertex) {
@@ -1498,7 +1497,21 @@ struct phianalysisrun3_PbPb {
14981497 continue ;
14991498 }
15001499 histos.fill (HIST (" hMC1" ), 10.5 );
1501- multiplicity = collision.centFT0C ();
1500+ const int kCentFT0C = 0 ;
1501+ const int kCentFT0A = 1 ;
1502+ const int kCentFT0M = 2 ;
1503+ const int kCentFV0A = 3 ;
1504+
1505+ if (centestimator == kCentFT0C ) {
1506+ multiplicity = collision.centFT0C ();
1507+ } else if (centestimator == kCentFT0A ) {
1508+ multiplicity = collision.centFT0A ();
1509+ } else if (centestimator == kCentFT0M ) {
1510+ multiplicity = collision.centFT0M ();
1511+ } else if (centestimator == kCentFV0A ) {
1512+ multiplicity = collision.centFV0A ();
1513+ }
1514+ histos.fill (HIST (" Centgen1" ), multiplicity);
15021515 selectedEvents[nevts++] = collision.mcCollision_as <aod::McCollisions>().globalIndex ();
15031516 }
15041517 selectedEvents.resize (nevts);
@@ -1578,7 +1591,20 @@ struct phianalysisrun3_PbPb {
15781591 if (fillOccupancy && (occupancy > cfgCutOccupancy)) {
15791592 return ;
15801593 }
1581- auto multiplicity = collision.centFT0C ();
1594+ const int kCentFT0C = 0 ;
1595+ const int kCentFT0A = 1 ;
1596+ const int kCentFT0M = 2 ;
1597+ const int kCentFV0A = 3 ;
1598+ auto multiplicity = -1.0 ;
1599+ if (centestimator == kCentFT0C ) {
1600+ multiplicity = collision.centFT0C ();
1601+ } else if (centestimator == kCentFT0A ) {
1602+ multiplicity = collision.centFT0A ();
1603+ } else if (centestimator == kCentFT0M ) {
1604+ multiplicity = collision.centFT0M ();
1605+ } else if (centestimator == kCentFV0A ) {
1606+ multiplicity = collision.centFV0A ();
1607+ }
15821608 histos.fill (HIST (" Centrec1" ), multiplicity);
15831609 histos.fill (HIST (" hMC1" ), 13.5 );
15841610 auto oldindex = -999 ;
0 commit comments