@@ -61,10 +61,10 @@ DECLARE_SOA_COLUMN(TimeFV0A, timeFV0A, float);
6161DECLARE_SOA_COLUMN (TimeFDDA, timeFDDA, float );
6262DECLARE_SOA_COLUMN (TimeFDDC, timeFDDC, float );
6363// ZDC info
64- // DECLARE_SOA_COLUMN(EnergyCommonZNA, energyCommonZNA, float);
65- // DECLARE_SOA_COLUMN(EnergyCommonZNC, energyCommonZNC, float);
66- // DECLARE_SOA_COLUMN(TimeZNA, timeZNA, float);
67- // DECLARE_SOA_COLUMN(TimeZNC, timeZNC, float);
64+ DECLARE_SOA_COLUMN (EnergyCommonZNA, energyCommonZNA, float );
65+ DECLARE_SOA_COLUMN (EnergyCommonZNC, energyCommonZNC, float );
66+ DECLARE_SOA_COLUMN (TimeZNA, timeZNA, float );
67+ DECLARE_SOA_COLUMN (TimeZNC, timeZNC, float );
6868DECLARE_SOA_COLUMN (NeutronClass, neutronClass, int );
6969// Rhos
7070DECLARE_SOA_COLUMN (TotalCharge, totalCharge, int );
@@ -94,7 +94,7 @@ DECLARE_SOA_TABLE(Tree, "AOD", "TREE",
9494 tree::RunNumber, tree::GlobalBC, tree::NumContrib,
9595 tree::PosX, tree::PosY, tree::PosZ, tree::TotalFT0AmplitudeA, tree::TotalFT0AmplitudeC, tree::TotalFV0AmplitudeA, tree::TotalFDDAmplitudeA, tree::TotalFDDAmplitudeC,
9696 tree::TimeFT0A, tree::TimeFT0C, tree::TimeFV0A, tree::TimeFDDA, tree::TimeFDDC,
97- /* tree::EnergyCommonZNA, tree::EnergyCommonZNC, tree::TimeZNA, tree::TimeZNC, */ tree::NeutronClass,
97+ tree::EnergyCommonZNA, tree::EnergyCommonZNC, tree::TimeZNA, tree::TimeZNC, tree::NeutronClass,
9898 tree::TotalCharge, tree::RhoPt, tree::RhoEta, tree::RhoPhi, tree::RhoM, tree::RhoPhiRandom, tree::RhoPhiCharge,
9999 tree::TrackSign, tree::TrackPt, tree::TrackEta, tree::TrackPhi, tree::TrackM, tree::TrackPiPID, tree::TrackElPID, tree::TrackDcaXY, tree::TrackDcaZ, tree::TrackTpcSignal);
100100} // namespace o2::aod
@@ -133,7 +133,8 @@ struct upcRhoAnalysis {
133133 ConfigurableAxis pt2Axis{" pt2Axis" , {100 , 0.0 , 0.01 }, " p_{T}^{2} (GeV^{2}/#it{c}^{2})" };
134134 ConfigurableAxis etaAxis{" etaAxis" , {800 , -4.0 , 4.0 }, " #eta" };
135135 ConfigurableAxis etaCutAxis{" etaCutAxis" , {180 , -0.9 , 0.9 }, " #eta" };
136- ConfigurableAxis yAxis{" yAxis" , {180 , -0.9 , 0.9 }, " y" };
136+ ConfigurableAxis yAxis{" yAxis" , {400 , -4.0 , 4.0 }, " y" };
137+ ConfigurableAxis yCutAxis{" yCutAxis" , {180 , -0.9 , 0.9 }, " y" };
137138 ConfigurableAxis phiAxis{" phiAxis" , {180 , 0.0 , o2::constants::math::TwoPI}, " #phi" };
138139 ConfigurableAxis phiAsymmAxis{" phiAsymmAxis" , {182 , -o2::constants::math::PI, o2::constants::math::PI}, " #phi" };
139140 ConfigurableAxis momentumFromPhiAxis{" momentumFromPhiAxis" , {400 , -0.1 , 0.1 }, " p (GeV/#it{c})" };
@@ -448,6 +449,7 @@ struct upcRhoAnalysis {
448449 MC.add (" MC/collisions/hPosXY" , " ;x (cm);y (cm);counts" , kTH2D , {{2000 , -0.1 , 0.1 }, {2000 , -0.1 , 0.1 }});
449450 MC.add (" MC/collisions/hPosZ" , " ;z (cm);counts" , kTH1D , {{400 , -20.0 , 20.0 }});
450451 MC.add (" MC/collisions/hNPions" , " ;number of pions;counts" , kTH1D , {{11 , -0.5 , 10.5 }});
452+ MC.add (" MC/collisions/hNumOfCollisionRecos" , " ;number of collision reconstructions;counts" , kTH1D , {{11 , -0.5 , 10.5 }});
451453
452454 MC.add (" MC/tracks/all/hPdgCode" , " ;pdg code;counts" , kTH1D , {{2001 , -1000.5 , 1000.5 }});
453455 MC.add (" MC/tracks/all/hProducedByGenerator" , " ;produced by generator;counts" , kTH1D , {{2 , -0.5 , 1.5 }});
@@ -772,7 +774,7 @@ struct upcRhoAnalysis {
772774 collision.posX (), collision.posY (), collision.posZ (),
773775 collision.totalFT0AmplitudeA (), collision.totalFT0AmplitudeC (), collision.totalFV0AmplitudeA (), collision.totalFDDAmplitudeA (), collision.totalFDDAmplitudeC (),
774776 collision.timeFT0A (), collision.timeFT0C (), collision.timeFV0A (), collision.timeFDDA (), collision.timeFDDC (),
775- /* collision.energyCommonZNA(), collision.energyCommonZNC(), collision.timeZNA(), collision.timeZNC(), */ neutronClass,
777+ collision.energyCommonZNA (), collision.energyCommonZNC (), collision.timeZNA (), collision.timeZNC (), neutronClass,
776778 totalCharge, pT, system.Eta (), system.Phi (), mass, phiRandom, phiCharge,
777779 trackSigns, trackPts, trackEtas, trackPhis, trackMs, trackPiPIDs, trackElPIDs, trackDcaXYs, trackDcaZs, trackTpcSignals);
778780 // fill raw histograms according to the total charge
@@ -1125,6 +1127,12 @@ struct upcRhoAnalysis {
11251127 MC.fill (HIST (" MC/system/hPhiCharge" ), phiCharge);
11261128 }
11271129
1130+ template <typename C>
1131+ void checkNumberOfCollisionReconstructions (C const & collisions)
1132+ {
1133+ MC.fill (HIST (" MC/collisions/hNumOfCollisionRecos" ), collisions.size ());
1134+ }
1135+
11281136 void processSGdata (FullUdSgCollision const & collision, FullUdTracks const & tracks)
11291137 {
11301138 if (collision.gapSide () != 2 )
@@ -1144,6 +1152,12 @@ struct upcRhoAnalysis {
11441152 processMC (mcCollision, mcParticles);
11451153 }
11461154 PROCESS_SWITCH (upcRhoAnalysis, processMCdata, " analyse MC data" , false );
1155+
1156+ void processCollisionRecoCheck (aod::McCollision const & /* mcCollision */ , soa::SmallGroups<soa::Join<aod::McCollisionLabels, aod::Collisions>> const & collisions)
1157+ {
1158+ checkNumberOfCollisionReconstructions (collisions);
1159+ }
1160+ PROCESS_SWITCH (upcRhoAnalysis, processCollisionRecoCheck, " check number of collision reconstructions" , false );
11471161};
11481162
11491163WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
0 commit comments