@@ -69,8 +69,8 @@ class FemtoUniverseParticleHisto
6969 }
7070
7171 // comment
72- template <o2::aod::femtouniverse_mc_particle::MCType mc>
73- void init_debug (std::string folderName) // o2-linter: disable=name/function-variable
72+ template <o2::aod::femtouniverse_mc_particle::MCType mc, typename T >
73+ void init_debug (std::string folderName, std::string tempFitVarAxisTitle, T& tempFitVarpTAxis, T& tempFitVarAxis ) // o2-linter: disable=name/function-variable
7474 {
7575 std::string folderSuffix = static_cast <std::string>(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]).c_str ();
7676 if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kTrack || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kV0Child || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kCascadeBachelor || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kMCTruthTrack ) {
@@ -86,22 +86,22 @@ class FemtoUniverseParticleHisto
8686 mHistogramRegistry ->add ((folderName + folderSuffix + " /hITSclustersIB" ).c_str (), " ; ITS clusters in IB; Entries" , kTH1F , {{10 , -0.5 , 9.5 }});
8787 mHistogramRegistry ->add ((folderName + folderSuffix + " /hDCAz" ).c_str (), " ; #it{p}_{T} (GeV/#it{c}); DCA_{z} (cm)" , kTH2F , {{100 , 0 , 10 }, {500 , -5 , 5 }});
8888 mHistogramRegistry ->add ((folderName + folderSuffix + " /hDCA" ).c_str (), " ; #it{p}_{T} (GeV/#it{c}); DCA (cm)" , kTH2F , {{100 , 0 , 10 }, {301 , 0 ., 1.5 }});
89- mHistogramRegistry ->add ((folderName + folderSuffix + " /hTPCdEdX" ).c_str (), " ; #it{p} (GeV/#it{c}); TPC Signal" , kTH2F , {{100 , 0 , 10 }, {1000 , 0 , 1000 }});
90- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_el" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{e}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
91- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_pi" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{#pi}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
92- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_K" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{K}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
93- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_p" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{p}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
94- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_d" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{d}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
95- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_el" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{e}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
96- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_pi" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{#pi}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
97- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_K" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{K}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
98- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_p" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{p}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
99- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_d" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{d}" , kTH2F , {{100 , 0 , 10 }, {200 , -4.975 , 5.025 }});
100- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_el" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{e}" , kTH2F , {{100 , 0 , 10 }, {100 , 0 , 5 }});
101- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_pi" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{#pi}" , kTH2F , {{100 , 0 , 10 }, {100 , 0 , 5 }});
102- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_K" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{K}" , kTH2F , {{100 , 0 , 10 }, {100 , 0 , 5 }});
103- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_p" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{p}" , kTH2F , {{100 , 0 , 10 }, {100 , 0 , 5 }});
104- mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_d" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{d}" , kTH2F , {{100 , 0 , 10 }, {100 , 0 , 5 }});
89+ mHistogramRegistry ->add ((folderName + folderSuffix + " /hTPCdEdX" ).c_str (), " ; #it{p} (GeV/#it{c}); TPC Signal" , kTH2F , {{tempFitVarpTAxis }, {1000 , 0 , 1000 }});
90+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_el" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{e}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
91+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_pi" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{#pi}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
92+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_K" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{K}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
93+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_p" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{p}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
94+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTPC_d" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TPC}^{d}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
95+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_el" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{e}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
96+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_pi" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{#pi}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
97+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_K" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{K}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
98+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_p" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{p}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
99+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaTOF_d" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{TOF}^{d}" , kTH2F , {{tempFitVarpTAxis }, {200 , -4.975 , 5.025 }});
100+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_el" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{e}" , kTH2F , {{tempFitVarpTAxis }, {100 , 0 , 5 }});
101+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_pi" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{#pi}" , kTH2F , {{tempFitVarpTAxis }, {100 , 0 , 5 }});
102+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_K" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{K}" , kTH2F , {{tempFitVarpTAxis }, {100 , 0 , 5 }});
103+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_p" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{p}" , kTH2F , {{tempFitVarpTAxis }, {100 , 0 , 5 }});
104+ mHistogramRegistry ->add ((folderName + folderSuffix + " /nSigmaComb_d" ).c_str (), " ; #it{p} (GeV/#it{c}); n#sigma_{comb}^{d}" , kTH2F , {{tempFitVarpTAxis }, {100 , 0 , 5 }});
105105 } else if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kV0 ) {
106106 mHistogramRegistry ->add ((folderName + folderSuffix + " /hDaughDCA" ).c_str (), " ; DCA^{daugh} (cm); Entries" , kTH1F , {{1000 , 0 , 10 }});
107107 mHistogramRegistry ->add ((folderName + folderSuffix + " /hTransRadius" ).c_str (), " ; #it{r}_{xy} (cm); Entries" , kTH1F , {{1500 , 0 , 150 }});
@@ -242,7 +242,7 @@ class FemtoUniverseParticleHisto
242242 // Fill here the actual histogramms by calling init_base and init_MC
243243 init_base<o2::aod::femtouniverse_mc_particle::MCType::kRecon >(folderName, tempFitVarAxisTitle, tempFitVarpTAxis, tempFitVarAxis);
244244 if (isDebug) {
245- init_debug<o2::aod::femtouniverse_mc_particle::MCType::kRecon >(folderName);
245+ init_debug<o2::aod::femtouniverse_mc_particle::MCType::kRecon >(folderName, tempFitVarAxisTitle, tempFitVarpTAxis, tempFitVarAxis );
246246 }
247247 if (isMC) {
248248 init_base<o2::aod::femtouniverse_mc_particle::MCType::kTruth >(folderName, tempFitVarAxisTitle, tempFitVarpTAxis, tempFitVarAxis);
0 commit comments