4646#include " DataFormatsTPC/BetheBlochAleph.h"
4747#include " CCDB/BasicCCDBManager.h"
4848#include " CCDB/CcdbApi.h"
49+ #include " Common/DataModel/PIDResponseITS.h"
4950
5051using namespace o2 ;
5152using namespace o2 ::framework;
@@ -502,6 +503,7 @@ struct f1protonreducedtable {
502503
503504 void processF1ProtonReducedTable (EventCandidates::iterator const & collision, aod::BCsWithTimestamps const &, PrimaryTrackCandidates const & tracks, ResoV0s const & V0s)
504505 {
506+ o2::aod::ITSResponse itsResponse;
505507 bool keepEventF1Proton = false ;
506508 int numberF1 = 0 ;
507509 // keep track of indices
@@ -629,7 +631,7 @@ struct f1protonreducedtable {
629631 nTPCSigmaN[0 ] = updatePID (track, bgScalingPion, BBAntipion);
630632 }
631633
632- if ((track.sign () > 0 && SelectionPID (track, strategyPIDPion, 0 , nTPCSigmaP[0 ])) || (track.sign () < 0 && SelectionPID (track, strategyPIDPion, 0 , nTPCSigmaN[0 ]))) {
634+ if ((track.sign () > 0 && SelectionPID (track, strategyPIDPion, 0 , nTPCSigmaP[0 ]) && (itsResponse. nSigmaITS <o2::track::PID::Pion>(track) > - 3.0 && itsResponse. nSigmaITS <o2::track::PID::Pion>(track) < 3.0 )) || (track.sign () < 0 && SelectionPID (track, strategyPIDPion, 0 , nTPCSigmaN[0 ]) && (itsResponse. nSigmaITS <o2::track::PID::Pion>(track) > - 3.0 && itsResponse. nSigmaITS <o2::track::PID::Pion>(track) < 3.0 ))) {
633635 ROOT::Math::PtEtaPhiMVector temp (track.pt (), track.eta (), track.phi (), massPi);
634636 pions.push_back (temp);
635637 PionIndex.push_back (track.globalIndex ());
@@ -650,7 +652,7 @@ struct f1protonreducedtable {
650652 PionTOFHit.push_back (PionTOF);
651653 }
652654
653- if ((track.pt () > cMinKaonPt && track.sign () > 0 && SelectionPID (track, strategyPIDKaon, 1 , nTPCSigmaP[1 ])) || (track.pt () > cMinKaonPt && track.sign () < 0 && SelectionPID (track, strategyPIDKaon, 1 , nTPCSigmaN[1 ]))) {
655+ if ((track.pt () > cMinKaonPt && track.sign () > 0 && SelectionPID (track, strategyPIDKaon, 1 , nTPCSigmaP[1 ]) && (itsResponse. nSigmaITS <o2::track::PID::Kaon>(track) > - 3.0 && itsResponse. nSigmaITS <o2::track::PID::Kaon>(track) < 3.0 )) || (track.pt () > cMinKaonPt && track.sign () < 0 && SelectionPID (track, strategyPIDKaon, 1 , nTPCSigmaN[1 ]) && (itsResponse. nSigmaITS <o2::track::PID::Kaon>(track) > - 3.0 && itsResponse. nSigmaITS <o2::track::PID::Kaon>(track) < 3.0 ))) {
654656 ROOT::Math::PtEtaPhiMVector temp (track.pt (), track.eta (), track.phi (), massKa);
655657 kaons.push_back (temp);
656658 KaonIndex.push_back (track.globalIndex ());
@@ -673,7 +675,7 @@ struct f1protonreducedtable {
673675 KaonTOFHit.push_back (KaonTOF);
674676 }
675677
676- if ((track.pt () < cMaxProtonPt && track.sign () > 0 && SelectionPID (track, strategyPIDProton, 2 , nTPCSigmaP[2 ])) || (track.pt () < cMaxProtonPt && track.sign () < 0 && SelectionPID (track, strategyPIDProton, 2 , nTPCSigmaN[2 ]))) {
678+ if ((track.pt () < cMaxProtonPt && track.sign () > 0 && SelectionPID (track, strategyPIDProton, 2 , nTPCSigmaP[2 ]) && (itsResponse. nSigmaITS <o2::track::PID::Proton>(track) > - 3.0 && itsResponse. nSigmaITS <o2::track::PID::Proton>(track) < 3.0 )) || (track.pt () < cMaxProtonPt && track.sign () < 0 && SelectionPID (track, strategyPIDProton, 2 , nTPCSigmaN[2 ]) && (itsResponse. nSigmaITS <o2::track::PID::Proton>(track) > - 3.0 && itsResponse. nSigmaITS <o2::track::PID::Proton>(track) < 3.0 ))) {
677679 ROOT::Math::PtEtaPhiMVector temp (track.pt (), track.eta (), track.phi (), massPr);
678680 protons.push_back (temp);
679681 ProtonIndex.push_back (track.globalIndex ());
0 commit comments