@@ -148,6 +148,8 @@ struct femtoDreamTripletTaskTrackTrackTrack {
148148 std::vector<double > tmpVecMult = ConfMultBins;
149149 framework::AxisSpec multAxis = {tmpVecMult, " Multiplicity" };
150150 ThreeBodyQARegistry.add (" TripletTaskQA/hSEMultVSGoodTracks" , " ;Mult;GoodT" , kTH2F , {multAxis, {100 , 0 , 100 }});
151+ ThreeBodyQARegistry.add (" TripletTaskQA/hTripletsPerEventBelow14" , " ;Triplets;Entries" , kTH1F , {{10 , 0 , 10 }});
152+ ThreeBodyQARegistry.add (" TripletTaskQA/NumberOfTacksPassingSelection" , " ;Triplets;Entries" , kTH1F , {{30 , 0 , 30 }});
151153 if (ConfIsMC) {
152154 ThreeBodyQARegistry.add (" TrackMC_QA/hMazzachi" , " ;gen;(reco-gen)/gen" , kTH2F , {{100 , ConfMinpT, ConfMaxpT}, {300 , -1 , 1 }});
153155 }
@@ -220,11 +222,15 @@ struct femtoDreamTripletTaskTrackTrackTrack {
220222 void doSameEvent (PartitionType groupSelectedParts, PartType parts, float magFieldTesla, int multCol, float centCol)
221223 {
222224 // / Histogramming same event
225+ int numberOfTracksPassingSelection = 0 ;
223226 for (auto & part : groupSelectedParts) {
227+ numberOfTracksPassingSelection = numberOfTracksPassingSelection + 1 ;
224228 trackHistoSelectedParts.fillQA <isMC, false >(part, aod::femtodreamparticle::kPt , multCol, centCol);
225229 }
230+ ThreeBodyQARegistry.fill (HIST (" TripletTaskQA/NumberOfTacksPassingSelection" ), numberOfTracksPassingSelection);
226231
227232 // / Now build the combinations
233+ int numberOfTriplets = 0 ;
228234 for (auto & [p1, p2, p3] : combinations (CombinationsStrictlyUpperIndexPolicy (groupSelectedParts, groupSelectedParts, groupSelectedParts))) {
229235 auto Q3 = FemtoDreamMath::getQ3 (p1, mMassOne , p2, mMassTwo , p3, mMassThree );
230236
@@ -252,10 +258,14 @@ struct femtoDreamTripletTaskTrackTrackTrack {
252258 }
253259
254260 // fill pT of all three particles as a function of Q3 for lambda calculations
261+ if (Q3 < 1.4 ) {
262+ numberOfTriplets = numberOfTriplets + 1 ;
263+ }
255264 ThreeBodyQARegistry.fill (HIST (" TripletTaskQA/particle_pT_in_Triplet_SE" ), p1.pt (), p2.pt (), p3.pt (), Q3);
256265 sameEventCont.setTriplet <isMC>(p1, p2, p3, multCol, Q3);
257266 ThreeBodyQARegistry.fill (HIST (" TripletTaskQA/hCentrality" ), centCol, Q3);
258267 }
268+ ThreeBodyQARegistry.fill (HIST (" TripletTaskQA/hTripletsPerEventBelow14" ), numberOfTriplets);
259269 }
260270
261271 // / process function to call doSameEvent with Data
0 commit comments