@@ -205,6 +205,7 @@ std::shared_ptr<TH2> hDeltaP[2][5];
205205std::shared_ptr<THnSparse> hFlowHists[2 ][5 ];
206206std::shared_ptr<THnSparse> hDCAHists[2 ][5 ];
207207std::shared_ptr<THnSparse> hMatchingStudy[2 ];
208+ std::shared_ptr<THn> hMatchingStudyHadrons[2 ];
208209o2::base::MatLayerCylSet* lut = nullptr ;
209210
210211std::vector<NucleusCandidate> candidates;
@@ -468,6 +469,7 @@ struct nucleiSpectra {
468469 if (doprocessMatching) {
469470 for (int iC{0 }; iC < 2 ; ++iC) {
470471 nuclei::hMatchingStudy[iC] = spectra.add <THnSparse>(fmt::format (" hMatchingStudy{}" , nuclei::matter[iC]).data (), " ;#it{p}_{T};#phi;#eta;n#sigma_{ITS};n#sigma{TPC};n#sigma_{TOF};Centrality" , HistType::kTHnSparseF , {{20 , 1 ., 9 .}, {10 , 0 ., o2::constants::math::TwoPI}, {10 , -1 ., 1 .}, {50 , -5 ., 5 .}, {50 , -5 ., 5 .}, {50 , 0 ., 1 .}, {8 , 0 ., 80 .}});
472+ nuclei::hMatchingStudyHadrons[iC] = spectra.add <THn>(fmt::format (" hMatchingStudyHadrons{}" , nuclei::matter[iC]).data (), " ;#it{p}_{T};#phi;#eta;Centrality;Track type" , HistType::kTHnSparseF , {{23 , 0.4 , 5 .}, {20 , 0 ., o2::constants::math::TwoPI}, {10 , -1 ., 1 .}, {8 , 0 ., 80 .}, {2 , -0.5 , 1.5 }});
471473 }
472474 }
473475
@@ -906,8 +908,9 @@ struct nucleiSpectra {
906908 if (!eventSelection (collision) || !collision.triggereventep ()) {
907909 return ;
908910 }
911+ const float centrality = getCentrality (collision);
909912 o2::aod::ITSResponse itsResponse;
910- for (auto & track : tracks) {
913+ for (const auto & track : tracks) {
911914 if (std::abs (track.eta ()) > cfgCutEta ||
912915 track.itsNCls () < 7 ||
913916 track.itsChi2NCl () > 36 .f ||
@@ -918,7 +921,10 @@ struct nucleiSpectra {
918921 double expSigma{expBethe * cfgBetheBlochParams->get (4 , 5u )};
919922 double nSigmaTPC{(track.tpcSignal () - expBethe) / expSigma};
920923 int iC = track.signed1Pt () > 0 ;
921- nuclei::hMatchingStudy[iC]->Fill (track.pt () * 2 , getPhiInRange (track.phi () - collision.psiFT0C ()), track.eta (), itsResponse.nSigmaITS <o2::track::PID::Helium3>(track), nSigmaTPC, o2::pid::tof::Beta::GetBeta (track), getCentrality (collision));
924+ const float pt = track.pt ();
925+ const float phi = getPhiInRange (track.phi () - collision.psiFT0C ());
926+ nuclei::hMatchingStudy[iC]->Fill (pt * 2 , phi, track.eta (), itsResponse.nSigmaITS <o2::track::PID::Helium3>(track), nSigmaTPC, o2::pid::tof::Beta::GetBeta (track), centrality);
927+ nuclei::hMatchingStudyHadrons[iC]->Fill (pt, phi, track.eta (), centrality, track.hasTPC ());
922928 }
923929 }
924930
0 commit comments