@@ -467,7 +467,7 @@ struct nucleiSpectra {
467467
468468 if (doprocessMatching) {
469469 for (int iC{0 }; iC < 2 ; ++iC) {
470- 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}" , HistType::kTHnSparseF , {{20 , 1 ., 9 .}, {10 , 0 ., o2::constants::math::TwoPI}, {10 , -1 ., 1 .}, {50 , -5 ., 5 .}, {50 , -5 ., 5 .}, {50 , 0 ., 1 .}});
470+ 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 .}});
471471 }
472472 }
473473
@@ -901,9 +901,9 @@ struct nucleiSpectra {
901901 }
902902 PROCESS_SWITCH (nucleiSpectra, processMC, " MC analysis" , false );
903903
904- void processMatching (soa::Join<aod::Collisions, aod::EvSels>::iterator const & collision, TrackCandidates const & tracks, aod::BCsWithTimestamps const &)
904+ void processMatching (soa::Join<aod::Collisions, aod::EvSels, aod::EPCalibrationTables, aod::CentFT0Cs >::iterator const & collision, TrackCandidates const & tracks, aod::BCsWithTimestamps const &)
905905 {
906- if (!eventSelection (collision)) {
906+ if (!eventSelection (collision) || !collision. triggereventep () ) {
907907 return ;
908908 }
909909 o2::aod::ITSResponse itsResponse;
@@ -918,7 +918,7 @@ struct nucleiSpectra {
918918 double expSigma{expBethe * cfgBetheBlochParams->get (4 , 5u )};
919919 double nSigmaTPC{(track.tpcSignal () - expBethe) / expSigma};
920920 int iC = track.signed1Pt () > 0 ;
921- nuclei::hMatchingStudy[iC]->Fill (track.pt () * 2 , track.phi (), track.eta (), itsResponse.nSigmaITS <o2::track::PID::Helium3>(track), nSigmaTPC, o2::pid::tof::Beta::GetBeta (track));
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 ));
922922 }
923923 }
924924
0 commit comments