@@ -92,6 +92,8 @@ struct HigherMassResonances {
9292 Configurable<bool > globalTracks{" globalTracks" , false , " Global tracks" };
9393 Configurable<bool > hasTPC{" hasTPC" , false , " TPC" };
9494 Configurable<bool > selectTWOKsOnly{" selectTWOKsOnly" , true , " Select only events with two K0s" };
95+ Configurable<bool > applyPairRapidityRec{" applyPairRapidityRec" , false , " Apply pair rapidity cut on reconstructed mother (after already applying rapidity cut on generated mother)" };
96+ Configurable<bool > applyPairRapidityGen{" applyPairRapidityGen" , false , " Apply pair rapidity cut on generated mother (before applying rapidity cut on reconstructed mother)" };
9597
9698 // Configurables for event selection
9799 Configurable<float > cutzvertex{" cutzvertex" , 10 .0f , " Accepted z-vertex range (cm)" };
@@ -312,18 +314,24 @@ struct HigherMassResonances {
312314 hMChists.add (" events_checkrec" , " No. of events in the reconstructed MC" , kTH1I , {{25 , 0 , 25 }});
313315 hMChists.add (" Genf1710" , " Gen f_{0}(1710)" , kTHnSparseF , {multiplicityAxis, ptAxis, thnAxisPOL});
314316 hMChists.add (" Recf1710_pt1" , " Rec f_{0}(1710) p_{T}" , kTHnSparseF , {multiplicityAxis, ptAxis, glueballMassAxis, thnAxisPOL});
315- hMChists.add (" Recf1710_ptTemp " , " Rec f_{0}(1710) p_{T}" , kTHnSparseF , {multiplicityAxis, ptAxis, glueballMassAxis, thnAxisPOL});
317+ hMChists.add (" Recf1710_pt2 " , " Rec f_{0}(1710) p_{T}" , kTHnSparseF , {multiplicityAxis, ptAxis, glueballMassAxis, thnAxisPOL});
316318 // hMChists.add("Recf1710_p", "Rec f_{0}(1710) p", kTH1F, {ptAxis});
317319 hMChists.add (" h1Recsplit" , " Rec p_{T}2" , kTH1F , {ptAxis});
318320 // hMChists.add("Recf1710_mass", "Rec f_{0}(1710) mass", kTH1F, {glueballMassAxis});
319321 hMChists.add (" Genf1710_mass" , " Gen f_{0}(1710) mass" , kTH1F , {glueballMassAxis});
320322 hMChists.add (" Genf1710_pt2" , " Gen f_{0}(1710) p_{T}" , kTH1F , {ptAxis});
321- hMChists.add (" GenEta" , " Gen Eta" , kTHnSparseF , {ptAxis, {100 , -1 .0f , 1 .0f }});
322323 hMChists.add (" GenPhi" , " Gen Phi" , kTH1F , {{70 , 0.0 , 7 .0f }});
323- hMChists.add (" GenRapidity" , " Gen Rapidity" , kTHnSparseF , {ptAxis, {100 , -1 .0f , 1 .0f }});
324- hMChists.add (" RecEta" , " Rec Eta" , kTH1F , {{100 , -1 .0f , 1 .0f }});
324+ hMChists.add (" GenPhi2" , " Gen Phi" , kTH1F , {{70 , 0.0 , 7 .0f }});
325+ hMChists.add (" GenEta" , " Gen Eta" , kTHnSparseF , {{150 , -1 .5f , 1 .5f }});
326+ hMChists.add (" GenEta2" , " Gen Eta" , kTHnSparseF , {{150 , -1 .5f , 1 .5f }});
327+ hMChists.add (" GenRapidity" , " Gen Rapidity" , kTHnSparseF , {{100 , -1 .0f , 1 .0f }});
328+ hMChists.add (" GenRapidity2" , " Gen Rapidity" , kTHnSparseF , {{100 , -1 .0f , 1 .0f }});
329+ hMChists.add (" RecEta" , " Rec Eta" , kTH1F , {{150 , -1 .5f , 1 .5f }});
330+ hMChists.add (" RecEta2" , " Rec Eta" , kTH1F , {{150 , -1 .5f , 1 .5f }});
325331 hMChists.add (" RecPhi" , " Rec Phi" , kTH1F , {{70 , 0 .0f , 7 .0f }});
332+ hMChists.add (" RecPhi2" , " Rec Phi" , kTH1F , {{70 , 0 .0f , 7 .0f }});
326333 hMChists.add (" RecRapidity" , " Rec Rapidity" , kTH1F , {{100 , -1 .0f , 1 .0f }});
334+ hMChists.add (" RecRapidity2" , " Rec Rapidity" , kTH1F , {{100 , -1 .0f , 1 .0f }});
327335 hMChists.add (" Rec_Multiplicity" , " Multiplicity in MC" , kTH1F , {multiplicityAxis});
328336 hMChists.add (" MC_mult_after_event_sel" , " Multiplicity in MC" , kTH1F , {multiplicityAxis});
329337 // hMChists.add("GenPx", "Gen Px", kTH1F, {{100, -10.0f, 10.0f}});
@@ -1078,6 +1086,10 @@ struct HigherMassResonances {
10781086 lResonance_gen = ROOT::Math::PxPyPzEVector (mcParticle.pt (), mcParticle.eta (), mcParticle.phi (), mcParticle.e ());
10791087 lResonance_gen2 = daughter1 + daughter2;
10801088
1089+ if (config.applyPairRapidityGen && std::abs (lResonance_gen2.Y ()) >= 0.5 ) {
1090+ continue ;
1091+ }
1092+
10811093 ROOT::Math::Boost boost{lResonance_gen.BoostToCM ()};
10821094 fourVecDauCM = boost (daughter1); // boost the frame of daughter to the center of mass frame
10831095
@@ -1086,9 +1098,12 @@ struct HigherMassResonances {
10861098 hMChists.fill (HIST (" Genf1710" ), multiplicityGen, lResonance_gen2.pt (), helicity_gen);
10871099 hMChists.fill (HIST (" Genf1710_mass" ), lResonance_gen2.M ());
10881100 hMChists.fill (HIST (" Genf1710_pt2" ), mcParticle.pt ());
1089- hMChists.fill (HIST (" GenRapidity" ), lResonance_gen2.Pt (), lResonance_gen2.Y ());
1101+ hMChists.fill (HIST (" GenRapidity" ), lResonance_gen2.Y ());
1102+ hMChists.fill (HIST (" GenRapidity2" ), mcParticle.y ());
1103+ hMChists.fill (HIST (" GenEta" ), lResonance_gen2.Eta ());
1104+ hMChists.fill (HIST (" GenEta2" ), mcParticle.eta ());
10901105 hMChists.fill (HIST (" GenPhi" ), lResonance_gen2.Phi ());
1091- hMChists.fill (HIST (" GenEta " ), lResonance_gen2. Pt (), lResonance_gen2. Eta ());
1106+ hMChists.fill (HIST (" GenPhi2 " ), mcParticle. phi ());
10921107 }
10931108 passKs.clear (); // clear the vector for the next iteration
10941109 }
@@ -1262,13 +1277,20 @@ struct HigherMassResonances {
12621277
12631278 auto helicity_rec2 = mother1.Vect ().Dot (fourVecDauCM1.Vect ()) / (std::sqrt (fourVecDauCM1.Vect ().Mag2 ()) * std::sqrt (mother1.Vect ().Mag2 ()));
12641279
1280+ if (config.applyPairRapidityRec && std::abs (mother.Y ()) >= 0.5 ) {
1281+ continue ;
1282+ }
1283+
12651284 // std::cout << "mother pT is " << mother.Pt() << std::endl;
12661285
12671286 hMChists.fill (HIST (" Recf1710_pt1" ), multiplicity, mother.Pt (), mother.M (), helicity_rec);
1268- hMChists.fill (HIST (" Recf1710_ptTemp" ), multiplicity, mother1.Pt (), mother1.M (), helicity_rec2);
1269- // hMChists.fill(HIST("RecRapidity"), mother.Y());
1287+ hMChists.fill (HIST (" Recf1710_pt2" ), multiplicity, mother1.Pt (), mother1.M (), helicity_rec2);
1288+ hMChists.fill (HIST (" RecRapidity" ), mother.Y ());
1289+ hMChists.fill (HIST (" RecRapidity2" ), mothertrack1.y ());
12701290 hMChists.fill (HIST (" RecPhi" ), mother.Phi ());
1291+ hMChists.fill (HIST (" RecPhi2" ), mothertrack1.phi ());
12711292 hMChists.fill (HIST (" RecEta" ), mother.Eta ());
1293+ hMChists.fill (HIST (" RecEta2" ), mothertrack1.eta ());
12721294 }
12731295 gindex2.clear ();
12741296 }
0 commit comments