@@ -663,7 +663,7 @@ struct PhotonChargedTriggerCorrelation {
663663
664664 const AxisSpec axisZPv{nBinsZPv, -10 , 10 , " #it{z}_{pv}" };
665665 const AxisSpec axisZPvSmol{nBinsZPvSmol, -7 , 7 , " #it{z}_{pv}" };
666- const AxisSpec axisMult{nBinsMult, 0 , static_cast < double >( nBinsMult) , " multiplicity" };
666+ const AxisSpec axisMult{nBinsMult + 1 , - 0.5 , nBinsMult + 0.5 , " multiplicity" };
667667 const AxisSpec axisMultSmol{nBinsMultSmol + 1 , -0.5 , nBinsMultSmol + 0.5 , " multiplicity" };
668668 const AxisSpec axisOccupancy{nBinsOccupancy + 1 , -0.5 , nBinsOccupancy + 0.5 , " occupancy" };
669669
@@ -684,13 +684,11 @@ struct PhotonChargedTriggerCorrelation {
684684 histos.get <TH1>(HIST (" reco/info/h1_nEvents" ))->GetXaxis ()->SetBinLabel (2 , " #it{N}_{ev}" );
685685 histos.get <TH1>(HIST (" reco/info/h1_nEvents" ))->GetXaxis ()->SetBinLabel (3 , " #it{N}_{ev}^{trig}" );
686686
687- histos.add (" reco/info/h1_zPv" , " h1_zPv" , kTH1F , {axisZPv}, true );
688- histos.add (" reco/info/h1_mult" , " h1_mult" , kTH1F , {axisMult}, true );
687+ histos.add (" reco/info/h2_zPvMult" , " h2_zPvMult" , kTHnSparseF , {axisZPv, axisMult}, true );
689688 histos.add (" reco/info/h1_occupancy" , " h1_occupancy" , kTH1F , {axisOccupancy}, true );
690689
691690 // reco (correlation) analysis
692- histos.add (" reco/info/h1_zPv_trigEv" , " h1_zPv_trigEv" , kTH1F , {axisZPv}, true );
693- histos.add (" reco/info/h1_mult_trigEv" , " h1_mult_trigEv" , kTH1F , {axisMult}, true );
691+ histos.add (" reco/info/h2_zPvMult_trigEv" , " h2_zPvMult_trigEv" , kTHnSparseF , {axisZPv, axisMult}, true );
694692 histos.add (" reco/info/h1_occupancy_trigEv" , " h1_occupancy_trigEv" , kTH1F , {axisOccupancy}, true );
695693 histos.add (" reco/corr/h3_ptPhiEta_trig" , " h3_ptPhiEta_trig" , kTHnSparseF , {axisPtAssoc, axisPhi, axisEta}, true );
696694
@@ -730,6 +728,7 @@ struct PhotonChargedTriggerCorrelation {
730728 histos.add (" reco/corr/h6_mix_pi0PCMSide" , " h6_mix_pi0PCMSide" ,
731729 kTHnSparseF , {axisDPhi, axisDEta, axisPtTrig, axisPtAssoc, axisZPvBinning, axisMultBinning}, true );
732730 // event mixing for photon pairs
731+ histos.add (" reco/plain/h2_zPvMult_pi0PCMMix" , " h2_zPvMult_pi0PCMMix" , kTHnSparseF , {axisZPv, axisMult}, true );
733732 histos.add (" reco/plain/h3_ptPhiEta_pi0PCMMix" , " h3_ptPhiEta_pi0PCMMix" , kTHnSparseF , {axisPtAssoc, axisPhi, axisEta}, true );
734733 histos.add (" reco/plain/h4_ptMggZPvMult_pi0PCMMix" , " h4_ptMggZPvMult_pi0PCMMix" , kTHnSparseF , {axisPtAssoc, axisMgg, axisZPvBinning, axisMultBinning}, true );
735734
@@ -1033,8 +1032,7 @@ struct PhotonChargedTriggerCorrelation {
10331032 histos.fill (HIST (" reco/info/h1_nEvents" ), 0.5 );
10341033
10351034 // QA
1036- histos.fill (HIST (" reco/info/h1_zPv" ), collision.posZ ());
1037- histos.fill (HIST (" reco/info/h1_mult" ), collision.multNTracksGlobal ());
1035+ histos.fill (HIST (" reco/info/h2_zPvMult" ), collision.posZ (), collision.multNTracksGlobal ());
10381036 histos.fill (HIST (" reco/info/h1_occupancy" ), collision.trackOccupancyInTimeRange ());
10391037 }
10401038 PROCESS_SWITCH (PhotonChargedTriggerCorrelation, processInfo, " process general info on collisions and tracks for analysis and qa" , false );
@@ -1077,8 +1075,7 @@ struct PhotonChargedTriggerCorrelation {
10771075
10781076 // trigger event info
10791077 if (collision.trigEv ()) {
1080- histos.fill (HIST (" reco/info/h1_zPv_trigEv" ), collision.posZ ());
1081- histos.fill (HIST (" reco/info/h1_mult_trigEv" ), collision.multNTracksGlobal ());
1078+ histos.fill (HIST (" reco/info/h2_zPvMult_trigEv" ), collision.posZ (), collision.multNTracksGlobal ());
10821079 histos.fill (HIST (" reco/info/h1_occupancy_trigEv" ), collision.trackOccupancyInTimeRange ());
10831080 }
10841081 }
@@ -1299,6 +1296,9 @@ struct PhotonChargedTriggerCorrelation {
12991296 if (!collision2.selEv ())
13001297 continue ;
13011298
1299+ // event info
1300+ histos.fill (HIST (" reco/plain/h2_zPvMult_pi0PCMMix" ), collision1.posZ (), collision1.multNTracksGlobal ());
1301+
13021302 // mixing loop
13031303 for (auto const & [photonPCM1, photonPCM2] : soa::combinations (soa::CombinationsFullIndexPolicy (photonPCMs1, photonPCMs2))) {
13041304 ROOT::Math::PtEtaPhiMVector const p4photonPCM1 (photonPCM1.pt (), photonPCM1.eta (), photonPCM1.phi (), 0 .);
@@ -1560,7 +1560,7 @@ struct PhotonChargedTriggerCorrelation {
15601560
15611561 // photon mc checks
15621562
1563- auto isConversionPhoton = [&](auto const & posTrack, auto const & negTrack) {
1563+ auto const isConversionPhoton = [&](auto const & posTrack, auto const & negTrack) {
15641564 // check same mother
15651565 auto const & posMothers = posTrack.mcParticle ().template mothers_as <aod::JetParticles>();
15661566 auto const & negMothers = negTrack.mcParticle ().template mothers_as <aod::JetParticles>();
@@ -1574,7 +1574,7 @@ struct PhotonChargedTriggerCorrelation {
15741574
15751575 return true ;
15761576 };
1577- auto isGGFromPi0 = [&](auto const & posTrack1, auto const & negTrack1, auto const & posTrack2, auto const & negTrack2) {
1577+ auto const isGGFromPi0 = [&](auto const & posTrack1, auto const & negTrack1, auto const & posTrack2, auto const & negTrack2) {
15781578 if (!isConversionPhoton (posTrack1, negTrack1) || !isConversionPhoton (posTrack2, negTrack2))
15791579 return false ;
15801580 // check same mother
0 commit comments