@@ -74,7 +74,9 @@ struct Derivedcascadeanalysis {
7474 ConfigurableAxis axisMass{" axisMass" , {200 , 1 .222f , 1 .422f }, " range of invariant mass, in case of omega take 1.572f, 1.772f" };
7575
7676 Configurable<bool > isXi{" isXi" , 1 , " Apply cuts for Xi identification" };
77- Configurable<bool > usePbPbCentrality{" usePbPbCentrality" , 0 , " If true, use centFt0C, else use centFT0M" };
77+ Configurable<bool > useCentralityFT0M{" useCentralityFT0M" , 0 , " If true, use centFT0M" };
78+ Configurable<bool > useCentralityFT0A{" useCentralityFT0A" , 0 , " If true, use centFT0A" };
79+ Configurable<bool > useCentralityFT0Cvar1{" useCentralityFT0Cvar1" , 0 , " If true, use centFT0FT0Cvar1" };
7880 Configurable<int > minOccupancy{" minOccupancy" , -1 , " Minimal occupancy" };
7981 Configurable<int > maxOccupancy{" maxOccupancy" , -1 , " Maximal occupancy" };
8082 Configurable<float > minOccupancyFT0{" minOccupancyFT0" , -1 , " Minimal occupancy" };
@@ -375,6 +377,11 @@ struct Derivedcascadeanalysis {
375377 histos.add (" h2dGenOmegaMinusVsCentOccupancy" , " h2dGenOmegaMinusVsCentOccupancy" , kTH3D , {axisPt, {101 , 0 .0f , 101 .0f }, axisOccupancy});
376378 histos.add (" h2dGenOmegaPlusVsCentOccupancy" , " h2dGenOmegaPlusVsCentOccupancy" , kTH3D , {axisPt, {101 , 0 .0f , 101 .0f }, axisOccupancy});
377379
380+ histos.add (" h2dGenXiMinusVsNchVsOccupancy" , " h2dGenXiMinusVsNchVsOccupancy" , kTH3D , {axisPt, axisNch, axisOccupancy});
381+ histos.add (" h2dGenXiPlusVsNchVsOccupancy" , " h2dGenXiPlusVsNchVsOccupancy" , kTH3D , {axisPt, axisNch, axisOccupancy});
382+ histos.add (" h2dGenOmegaMinusVsNchVsOccupancy" , " h2dGenOmegaMinusVsNchVsOccupancy" , kTH3D , {axisPt, axisNch, axisOccupancy});
383+ histos.add (" h2dGenOmegaPlusVsNchVsOccupancy" , " h2dGenOmegaPlusVsNchVsOccupancy" , kTH3D , {axisPt, axisNch, axisOccupancy});
384+
378385 histos.add (" h2dGenXiMinusVsMultMC" , " h2dGenXiMinusVsMultMC" , kTH2D , {axisNch, axisPt});
379386 histos.add (" h2dGenXiPlusVsMultMC" , " h2dGenXiPlusVsMultMC" , kTH2D , {axisNch, axisPt});
380387 histos.add (" h2dGenOmegaMinusVsMultMC" , " h2dGenOmegaMinusVsMultMC" , kTH2D , {axisNch, axisPt});
@@ -426,8 +433,12 @@ struct Derivedcascadeanalysis {
426433 if (fillHists)
427434 histos.fill (HIST (" hEventSelection" ), 0.5 /* all collisions */ );
428435 float centrality = coll.centFT0C ();
429- if (!usePbPbCentrality )
436+ if (useCentralityFT0M )
430437 centrality = coll.centFT0M ();
438+ if (useCentralityFT0A)
439+ centrality = coll.centFV0A ();
440+ if (useCentralityFT0Cvar1)
441+ centrality = coll.centFT0CVariant1 ();
431442
432443 if (qaFlags.doBefSelEventMultCorr ) {
433444 histos.fill (HIST (" hEventNchCorrelationBefCuts" ), coll.multNTracksPVeta1 (), coll.multNTracksGlobal ());
@@ -743,8 +754,12 @@ struct Derivedcascadeanalysis {
743754 return ;
744755
745756 float centrality = coll.centFT0C ();
746- if (!usePbPbCentrality )
757+ if (useCentralityFT0M )
747758 centrality = coll.centFT0M ();
759+ if (useCentralityFT0A)
760+ centrality = coll.centFV0A ();
761+ if (useCentralityFT0Cvar1)
762+ centrality = coll.centFT0CVariant1 ();
748763
749764 for (const auto & casc : Cascades) {
750765
@@ -1033,8 +1048,13 @@ struct Derivedcascadeanalysis {
10331048 if (!isEventAccepted (coll, true ))
10341049 return ;
10351050 float centrality = coll.centFT0C ();
1036- if (!usePbPbCentrality )
1051+ if (useCentralityFT0M )
10371052 centrality = coll.centFT0M ();
1053+ if (useCentralityFT0A)
1054+ centrality = coll.centFV0A ();
1055+ if (useCentralityFT0Cvar1)
1056+ centrality = coll.centFT0CVariant1 ();
1057+
10381058 float nChEta05 = coll.multNTracksPVeta1 ();
10391059 for (const auto & casc : Cascades) {
10401060 float mass = -1 ;
@@ -1375,8 +1395,12 @@ struct Derivedcascadeanalysis {
13751395 if (listBestCollisionIdx[mcCollision.globalIndex ()] > -1 ) {
13761396 auto collision = collisions.iteratorAt (listBestCollisionIdx[mcCollision.globalIndex ()]);
13771397 centrality = collision.centFT0C ();
1378- if (!usePbPbCentrality )
1398+ if (useCentralityFT0M )
13791399 centrality = collision.centFT0M ();
1400+ if (useCentralityFT0A)
1401+ centrality = collision.centFV0A ();
1402+ if (useCentralityFT0Cvar1)
1403+ centrality = collision.centFT0CVariant1 ();
13801404 if (useTrackOccupancyDef)
13811405 occupancy = collision.trackOccupancyInTimeRange ();
13821406 if (useFT0OccupancyDef)
@@ -1393,12 +1417,14 @@ struct Derivedcascadeanalysis {
13931417 histos.fill (HIST (" h2dGenXiMinusEtaBach" ), RecoDecay::eta (std::array{cascMC.pxBachMC (), cascMC.pyBachMC (), cascMC.pzBachMC ()}));
13941418 histos.fill (HIST (" h2dGenXiMinusVsMultMC" ), mcCollision.multMCNParticlesEta05 (), ptmc);
13951419 histos.fill (HIST (" h2dGenXiMinusVsCentOccupancy" ), ptmc, centrality, occupancy);
1420+ histos.fill (HIST (" h2dGenXiMinusVsNchVsOccupancy" ), ptmc, nChEta05, occupancy);
13961421 }
13971422 if (cascMC.pdgCode () == -3312 ) {
13981423 histos.fill (HIST (" h2dGenXiPlus" ), centrality, ptmc);
13991424 histos.fill (HIST (" h2dGenXiPlusVsNch" ), nChEta05, ptmc);
14001425 histos.fill (HIST (" h2dGenXiPlusVsMultMC" ), mcCollision.multMCNParticlesEta05 (), ptmc);
14011426 histos.fill (HIST (" h2dGenXiPlusVsCentOccupancy" ), ptmc, centrality, occupancy);
1427+ histos.fill (HIST (" h2dGenXiPlusVsNchVsOccupancy" ), ptmc, nChEta05, occupancy);
14021428 }
14031429 if (cascMC.pdgCode () == 3334 ) {
14041430 histos.fill (HIST (" h2dGenOmegaMinus" ), centrality, ptmc);
@@ -1409,12 +1435,14 @@ struct Derivedcascadeanalysis {
14091435 histos.fill (HIST (" h2dGenOmegaMinusEtaBach" ), RecoDecay::eta (std::array{cascMC.pxBachMC (), cascMC.pyBachMC (), cascMC.pzBachMC ()}));
14101436 histos.fill (HIST (" h2dGenOmegaMinusVsMultMC" ), mcCollision.multMCNParticlesEta05 (), ptmc);
14111437 histos.fill (HIST (" h2dGenOmegaMinusVsCentOccupancy" ), ptmc, centrality, occupancy);
1438+ histos.fill (HIST (" h2dGenOmegaMinusVsNchVsOccupancy" ), ptmc, nChEta05, occupancy);
14121439 }
14131440 if (cascMC.pdgCode () == -3334 ) {
14141441 histos.fill (HIST (" h2dGenOmegaPlus" ), centrality, ptmc);
14151442 histos.fill (HIST (" h2dGenOmegaPlusVsNch" ), nChEta05, ptmc);
14161443 histos.fill (HIST (" h2dGenOmegaPlusVsMultMC" ), mcCollision.multMCNParticlesEta05 (), ptmc);
14171444 histos.fill (HIST (" h2dGenOmegaPlusVsCentOccupancy" ), ptmc, centrality, occupancy);
1445+ histos.fill (HIST (" h2dGenOmegaPlusVsNchVsOccupancy" ), ptmc, nChEta05, occupancy);
14181446 }
14191447 }
14201448 }
@@ -1445,9 +1473,12 @@ struct Derivedcascadeanalysis {
14451473 biggestNContribs = collision.multPVTotalContributors ();
14461474 bestCollisionIndex = collision.globalIndex ();
14471475 centrality = collision.centFT0C ();
1448- nChEta05 = collision.multNTracksPVeta1 ();
1449- if (!usePbPbCentrality)
1476+ if (useCentralityFT0M)
14501477 centrality = collision.centFT0M ();
1478+ if (useCentralityFT0A)
1479+ centrality = collision.centFV0A ();
1480+ if (useCentralityFT0Cvar1)
1481+ centrality = collision.centFT0CVariant1 ();
14511482 }
14521483 nCollisions++;
14531484
0 commit comments