@@ -57,7 +57,7 @@ DECLARE_SOA_COLUMN(FourPionPhiPair2, fourPionPhiPair2, double);
5757DECLARE_SOA_COLUMN (FourPionCosThetaPair1, fourPionCosThetaPair1, double );
5858DECLARE_SOA_COLUMN (FourPionCosThetaPair2, fourPionCosThetaPair2, double );
5959} // namespace branch
60- DECLARE_SOA_TABLE (UDTree , " AOD" , " UD0Charge" ,
60+ DECLARE_SOA_TABLE (UDTree0c , " AOD" , " UD0Charge" ,
6161 branch::Dcaxy,
6262 branch::Dcaz,
6363 branch::PionPt,
@@ -72,6 +72,17 @@ DECLARE_SOA_TABLE(UDTree, "AOD", "UD0Charge",
7272 branch::FourPionCosThetaPair1,
7373 branch::FourPionCosThetaPair2);
7474
75+ DECLARE_SOA_TABLE (UDTreen0c, " AOD" , " UDn0Charge" ,
76+ branch::Dcaxy,
77+ branch::Dcaz,
78+ branch::PionPt,
79+ branch::PionEta,
80+ branch::PionRapidity,
81+ branch::FourPionPt,
82+ branch::FourPionEta,
83+ branch::FourPionRapidity,
84+ branch::FourPionMass);
85+
7586DECLARE_SOA_TABLE (MCTree, " AOD" , " MC0Charge" ,
7687 branch::PionPt,
7788 branch::PionEta,
@@ -104,7 +115,8 @@ DECLARE_SOA_TABLE(MCUDTree, "AOD", "UDMC0Charge",
104115// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
105116struct exclusiveRhoTo4Pi { // o2-linter: disable=name/workflow-file,name/struct
106117 SGSelector sgSelector;
107- Produces<aod::UDTree> zeroChargeEventsData;
118+ Produces<aod::UDTree0c> zeroChargeEventsData;
119+ Produces<aod::UDTreen0c> nonzeroChargeEventsData;
108120 Produces<aod::MCTree> zeroChargeEventsMCgen;
109121 Produces<aod::MCUDTree> zeroChargeEventsMCreco;
110122
@@ -687,14 +699,34 @@ struct exclusiveRhoTo4Pi { // o2-linter: disable=name/workflow-file,name/struct
687699 // Selecting Events with net charge != 0 for estimation of background
688700 if (numPionMinusTRacks != 2 && numPiPlusTracks != 2 ) {
689701
702+ std::vector<double > pidcaXY;
703+ std::vector<double > pidcaZ;
704+ std::vector<double > piPt;
705+ std::vector<double > piEta;
706+ std::vector<double > piRapidity;
690707 TLorentzVector p1, p2, p3, p4, p1234;
708+ TLorentzVector tempVec;
691709 p1.SetXYZM (WTS_PID_Pi_tracks[0 ].px (), WTS_PID_Pi_tracks[0 ].py (), WTS_PID_Pi_tracks[0 ].pz (), o2::constants::physics::MassPionCharged);
692710 p2.SetXYZM (WTS_PID_Pi_tracks[1 ].px (), WTS_PID_Pi_tracks[1 ].py (), WTS_PID_Pi_tracks[1 ].pz (), o2::constants::physics::MassPionCharged);
693711 p3.SetXYZM (WTS_PID_Pi_tracks[2 ].px (), WTS_PID_Pi_tracks[2 ].py (), WTS_PID_Pi_tracks[2 ].pz (), o2::constants::physics::MassPionCharged);
694712 p4.SetXYZM (WTS_PID_Pi_tracks[3 ].px (), WTS_PID_Pi_tracks[3 ].py (), WTS_PID_Pi_tracks[3 ].pz (), o2::constants::physics::MassPionCharged);
695713
696714 p1234 = p1 + p2 + p3 + p4;
697715
716+ for (int i = 0 ; i < 4 ; i++) {
717+ tempVec.SetXYZM (WTS_PID_Pi_tracks[i].px (), WTS_PID_Pi_tracks[i].py (), WTS_PID_Pi_tracks[i].pz (), o2::constants::physics::MassPionCharged);
718+ pidcaXY.push_back (WTS_PID_Pi_tracks[i].dcaXY ());
719+ pidcaZ.push_back (WTS_PID_Pi_tracks[i].dcaZ ());
720+ piPt.push_back (tempVec.Pt ());
721+ piEta.push_back (tempVec.Eta ());
722+ piRapidity.push_back (tempVec.Rapidity ());
723+ }
724+
725+ nonzeroChargeEventsData (
726+ pidcaXY, pidcaZ,
727+ piPt, piEta, piRapidity,
728+ p1234.Pt (), p1234.Eta (), p1234.Rapidity (), p1234.M ());
729+
698730 if (std::fabs (p1234.Rapidity ()) < 0.5 ) {
699731 histosData.fill (HIST (" pT_event_non0charge_WTS_PID_Pi" ), p1234.Pt ());
700732
0 commit comments