@@ -56,8 +56,8 @@ struct exclusiveRhoTo4Pi { // o2-linter: disable=name/workflow-file,name/struct
5656 Configurable<float > zdcCut{" zdcCut" , 10 ., " ZDC threshold" };
5757
5858 Configurable<float > pvCut{" pvCut" , 1.0 , " Use Only PV tracks" };
59- Configurable<float > dcaZcut{" dcaZcut" , 3. 2 , " dcaZ cut" };
60- Configurable<float > dcaXYcut{" dcaXYcut" , 2.4 , " dcaXY cut (0 for Pt-function)" };
59+ Configurable<float > dcaZcut{" dcaZcut" , 2 , " dcaZ cut" };
60+ Configurable<float > dcaXYcut{" dcaXYcut" , 0 , " dcaXY cut (0 for Pt-function)" };
6161 Configurable<float > tpcChi2Cut{" tpcChi2Cut" , 4 , " Max tpcChi2NCl" };
6262 Configurable<float > tpcNClsFindableCut{" tpcNClsFindableCut" , 70 , " Min tpcNClsFindable" };
6363 Configurable<float > itsChi2Cut{" itsChi2Cut" , 36 , " Max itsChi2NCl" };
@@ -67,8 +67,8 @@ struct exclusiveRhoTo4Pi { // o2-linter: disable=name/workflow-file,name/struct
6767 Configurable<float > nSigmaTPCcut{" nSigmaTPCcut" , 3 , " TPC cut" };
6868 Configurable<float > nSigmaTOFcut{" nSigmaTOFcut" , 3 , " TOF cut" };
6969 Configurable<bool > strictEventSelection{" strictEventSelection" , true , " Event Selection" };
70- Configurable<bool > ifDataAnalysis{" ifDataAnalysis" , false , " Data Analysis" };
71- Configurable<bool > ifMCAnalysis{" ifMCAnalysis" , true , " MC Analysis" };
70+ Configurable<bool > ifDataAnalysis{" ifDataAnalysis" , true , " Data Analysis" };
71+ Configurable<bool > ifMCAnalysis{" ifMCAnalysis" , false , " MC Analysis" };
7272
7373 Configurable<int > nBinsPt{" nBinsPt" , 1000 , " Number of bins for pT" };
7474 Configurable<int > nBinsInvariantMass{" nBinsInvariantMass" , 1000 , " Number of bins for Invariant Mass" };
@@ -542,21 +542,24 @@ struct exclusiveRhoTo4Pi { // o2-linter: disable=name/workflow-file,name/struct
542542
543543 for (const auto & mother : particle.mothers_as <aod::UDMcParticles>()) {
544544 if (mother.pdgCode () == 30113 ) {
545-
546545 if (flag == false ) {
547546 histosMCgen.fill (HIST (" rhoPrimeCounts" ), 5 );
548547 }
549548 flag = true ;
550549
551550 if (particle.pdgCode () == 211 ) {
552- piPlusvectors.push_back (tempVector);
553- histosMCgen.fill (HIST (" MCgen_particle_pT" ), tempVector.Pt ());
554- histosMCgen.fill (HIST (" MCgen_particle_rapidity" ), tempVector.Rapidity ());
551+ if (std::abs (tempVector.Rapidity ()) < 0.9 ) {
552+ piPlusvectors.push_back (tempVector);
553+ histosMCgen.fill (HIST (" MCgen_particle_pT" ), tempVector.Pt ());
554+ histosMCgen.fill (HIST (" MCgen_particle_rapidity" ), tempVector.Rapidity ());
555+ }
555556 }
556557 if (particle.pdgCode () == -211 ) {
557- piMinusvectors.push_back (tempVector);
558- histosMCgen.fill (HIST (" MCgen_particle_pT" ), tempVector.Pt ());
559- histosMCgen.fill (HIST (" MCgen_particle_rapidity" ), tempVector.Rapidity ());
558+ if (std::abs (tempVector.Rapidity ()) < 0.9 ) {
559+ piMinusvectors.push_back (tempVector);
560+ histosMCgen.fill (HIST (" MCgen_particle_pT" ), tempVector.Pt ());
561+ histosMCgen.fill (HIST (" MCgen_particle_rapidity" ), tempVector.Rapidity ());
562+ }
560563 }
561564 } // End of Mother ID 30113 rho prime
562565 } // End of loop over mothers
@@ -598,7 +601,7 @@ struct exclusiveRhoTo4Pi { // o2-linter: disable=name/workflow-file,name/struct
598601 } // End of 4 Pion MC Generation Process function
599602 PROCESS_SWITCH (exclusiveRhoTo4Pi, processMCgen, " The Process for 4 Pion Analysis from MC Generation" , ifMCAnalysis);
600603
601- using CollisionStuff = soa::Join<aod::UDCollisions_001, aod::SGCollisions, aod::UDCollisionsSels, aod::UDZdcsReduced, aod::UDMcCollsLabels>; //
604+ using CollisionStuff = soa::Join<aod::UDCollisions_001, aod::SGCollisions, aod::UDCollisionsSels, aod::UDZdcsReduced, aod::UDMcCollsLabels>;
602605 using CollisionTotal = CollisionStuff::iterator;
603606 using TrackStuff = soa::Join<aod::UDTracks, aod::UDTracksPID, aod::UDTracksExtra, aod::UDTracksFlags, aod::UDTracksDCA, aod::UDMcTrackLabels>;
604607
0 commit comments