@@ -1093,6 +1093,7 @@ struct HfCandidateCreatorXicToXiPiPiExpressions {
10931093 registry.add (" hDecayedPions" , " hDecayedPions" , {HistType::kTH1F , {{5 , -0.5 , 4.5 }}});
10941094 registry.add (" hInteractionsWithMaterial" , " hInteractionsWithMaterial" , {HistType::kTH1F , {{6 , -0.5 , 5.5 }}});
10951095 registry.add (" hDebugRec" , " hDebugRec" , {HistType::kTH1F , {{4 , -0.5 , 3.5 }}});
1096+ registry.add (" hy_pt_gen" , " Generated MC" , {HistType::kTH2F , {{20 , -1.0 , 1.0 }, {200 , 0 , 20 }}});
10961097 registry.get <TH1 >(HIST (" hDebugRec" ))->GetXaxis ()->SetBinLabel (1 + TotalRec, " total" );
10971098 registry.get <TH1 >(HIST (" hDebugRec" ))->GetXaxis ()->SetBinLabel (1 + XicToFinalState, " #Xi^{+}_{c} #rightarrow #pi^{#plus} #pi^{#plus} #pi^{#minus} p #pi^{#minus}" );
10981099 registry.get <TH1 >(HIST (" hDebugRec" ))->GetXaxis ()->SetBinLabel (1 + XiToPiPPi, " #Xi^{#minus} #rightarrow #pi^{#minus} p #pi^{#minus}" );
@@ -1300,12 +1301,13 @@ struct HfCandidateCreatorXicToXiPiPiExpressions {
13001301 if (rejectionMask != 0 ) {
13011302 // at least one event selection not satisfied --> reject all particles from this collision
13021303 for (unsigned int i = 0 ; i < mcParticlesPerMcColl.size (); ++i) {
1303- rowMcMatchGen (-99 , -99 , -99 , decayLengthGen);
1304+ rowMcMatchGen (-99 , -99 , -99 , decayLengthGen, - 1 . f );
13041305 }
13051306 continue ;
13061307 }
13071308
13081309 for (const auto & particle : mcParticlesPerMcColl) {
1310+ const float massGen = RecoDecay::m (particle.pVector (), particle.e ());
13091311 sign = 0 ;
13101312 flag = 0 ;
13111313 origin = RecoDecay::OriginType::None;
@@ -1345,6 +1347,9 @@ struct HfCandidateCreatorXicToXiPiPiExpressions {
13451347
13461348 // Check whether the charm baryon is non-prompt (from a b quark).
13471349 if (flag != 0 ) {
1350+ // fill inclusive generated Xic+
1351+ registry.fill (HIST (" hy_pt_gen" ), particle.y (), particle.pt ());
1352+
13481353 origin = RecoDecay::getCharmHadronOrigin (mcParticles, particle, false , &idxBhadMothers);
13491354 // Calculate the decay length of the generated particle
13501355 auto dau0 = particle.template daughters_as <aod::McParticles>().begin ();
@@ -1355,9 +1360,9 @@ struct HfCandidateCreatorXicToXiPiPiExpressions {
13551360 // Fill table
13561361 if (origin == RecoDecay::OriginType::NonPrompt) {
13571362 auto bHadMother = mcParticles.rawIteratorAt (idxBhadMothers[0 ]);
1358- rowMcMatchGen (flag, origin, bHadMother.pdgCode (), decayLengthGen);
1363+ rowMcMatchGen (flag, origin, bHadMother.pdgCode (), decayLengthGen, massGen );
13591364 } else {
1360- rowMcMatchGen (flag, origin, 0 , decayLengthGen);
1365+ rowMcMatchGen (flag, origin, 0 , decayLengthGen, massGen );
13611366 }
13621367 } // close loop over generated particles
13631368 } // close loop over McCollisions
0 commit comments