@@ -170,6 +170,7 @@ struct FemtoUniversePairTaskTrackTrackMultKtExtended {
170170 // / Particle part
171171 ConfigurableAxis confTempFitVarBins{" confTempFitVarBins" , {300 , -0.15 , 0.15 }, " binning of the TempFitVar in the pT vs. TempFitVar plot" };
172172 ConfigurableAxis confTempFitVarpTBins{" confTempFitVarpTBins" , {20 , 0.5 , 4.05 }, " pT binning of the pT vs. TempFitVar plot" };
173+ ConfigurableAxis confTOFnSigmaBins{" confTOFnSigmaBins" , {200 , -4.975 , 5.025 }, " Binning of the TOF Nsigma vs. pT vs. centrality plot" };
173174
174175 // / Correlation part
175176 ConfigurableAxis confMultBins{" confMultBins" , {VARIABLE_WIDTH , 0 .0f , 4 .0f , 8 .0f , 12 .0f , 16 .0f , 20 .0f , 24 .0f , 28 .0f , 32 .0f , 36 .0f , 40 .0f , 44 .0f , 48 .0f , 52 .0f , 56 .0f , 60 .0f , 64 .0f , 68 .0f , 72 .0f , 76 .0f , 80 .0f , 84 .0f , 88 .0f , 92 .0f , 96 .0f , 100 .0f , 200 .0f , 99999 .f }, " Mixing bins - multiplicity or centrality" }; // \todo to be obtained from the hash task
@@ -356,6 +357,27 @@ struct FemtoUniversePairTaskTrackTrackMultKtExtended {
356357 return false ;
357358 }
358359
360+ template <typename PartType>
361+ float whichTOFNSigma (int PDGcode, PartType part)
362+ {
363+ switch (PDGcode) {
364+ case 2212 : // Proton+
365+ case -2212 : // Proton-
366+ return trackCuts.getNsigmaTOF (part, o2::track::PID ::Proton);
367+ case 211 : // Pion+
368+ case -211 : // Pion-
369+ case 111 : // Pion 0
370+ return trackCuts.getNsigmaTOF (part, o2::track::PID ::Pion);
371+ case 321 : // Kaon+
372+ case -321 : // Kaon-
373+ case 130 : // Kaon 0 LONG
374+ case 310 : // Kaon 0 SHORT
375+ return trackCuts.getNsigmaTOF (part, o2::track::PID ::Kaon);
376+ default :
377+ return 0 ;
378+ }
379+ }
380+
359381 void init (InitContext&)
360382 {
361383 colBinning = ColumnBinningPolicy<aod::collision::PosZ, aod::femtouniversecollision::MultV0M>{{confVtxBins, confMultBins}, true };
@@ -365,6 +387,8 @@ struct FemtoUniversePairTaskTrackTrackMultKtExtended {
365387 trackHistoPartOne.init (&qaRegistry, confTempFitVarpTBins, confTempFitVarBins, twotracksconfigs.confIsMC , trackonefilter.confPDGCodePartOne , true );
366388
367389 trackHistoPartTwo.init (&qaRegistry, confTempFitVarpTBins, confTempFitVarBins, twotracksconfigs.confIsMC , tracktwofilter.confPDGCodePartTwo , true );
390+ qaRegistry.add (" Tracks_one/nSigmaTOF" , " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}; Centrality" , kTH3F , {confTempFitVarpTBins, confTOFnSigmaBins, confMultBins});
391+ qaRegistry.add (" Tracks_two/nSigmaTOF" , " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}; Centrality" , kTH3F , {confTempFitVarpTBins, confTOFnSigmaBins, confMultBins});
368392
369393 if (confFillDebug) {
370394 sphericityRegistry.add (" sphericity" , " ;Sphericity;Entries" , kTH1F , {{150 , 0.0 , 3 , " Sphericity" }});
@@ -481,6 +505,7 @@ struct FemtoUniversePairTaskTrackTrackMultKtExtended {
481505 continue ;
482506 }
483507 trackHistoPartOne.fillQA <isMC, true >(part);
508+ qaRegistry.fill (HIST (" Tracks_one/nSigmaTOF" ), part.pt (), whichTOFNSigma (trackonefilter.confPDGCodePartOne , part), multCol);
484509 }
485510 }
486511
@@ -490,6 +515,7 @@ struct FemtoUniversePairTaskTrackTrackMultKtExtended {
490515 continue ;
491516 }
492517 trackHistoPartTwo.fillQA <isMC, true >(part);
518+ qaRegistry.fill (HIST (" Tracks_two/nSigmaTOF" ), part.pt (), whichTOFNSigma (tracktwofilter.confPDGCodePartTwo , part), multCol);
493519 }
494520 }
495521
0 commit comments