Skip to content

Commit

Permalink
PID: remove cut on multiplicity for good TOF PID (AliceO2Group#7454)
Browse files Browse the repository at this point in the history
  • Loading branch information
njacazio authored Aug 28, 2024
1 parent 8b02791 commit 4d9281c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions Common/TableProducer/PID/pidTOFBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,13 @@ float trackDistanceForGoodMatch = 999.f;
float trackDistanceForGoodMatchLowMult = 999.f;
int multiplicityThreshold = 0;
using Run3Trks = o2::soa::Join<aod::TracksIU, aod::TracksExtra>;
using Run3Cols = o2::soa::Join<aod::Collisions, aod::PVMults>;
using Run3Cols = aod::Collisions;
bool isTrackGoodMatchForTOFPID(const Run3Trks::iterator& tr, const Run3Cols& /*ev*/)
{
if (!tr.hasTOF()) {
return false;
}
if (tr.has_collision() && tr.collision_as<Run3Cols>().multNTracksPVeta1() < multiplicityThreshold) {
return tr.tofChi2() < trackDistanceForGoodMatchLowMult;
}
return tr.tofChi2() < trackDistanceForGoodMatch;
return true;
}

/// Task to produce the TOF signal from the trackTime information
Expand Down
7 changes: 2 additions & 5 deletions Common/TableProducer/PID/pidTOFMerge.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,13 @@ float trackDistanceForGoodMatch = 999.f;
float trackDistanceForGoodMatchLowMult = 999.f;
int multiplicityThreshold = 0;
using Run3Trks = o2::soa::Join<aod::TracksIU, aod::TracksExtra>;
using Run3Cols = o2::soa::Join<aod::Collisions, aod::PVMults>;
using Run3Cols = aod::Collisions;
bool isTrackGoodMatchForTOFPID(const Run3Trks::iterator& tr, const Run3Cols& /*ev*/)
{
if (!tr.hasTOF()) {
return false;
}
if (tr.has_collision() && tr.collision_as<Run3Cols>().multNTracksPVeta1() < multiplicityThreshold) {
return tr.tofChi2() < trackDistanceForGoodMatchLowMult;
}
return tr.tofChi2() < trackDistanceForGoodMatch;
return true;
}

/// Task to produce the TOF signal from the trackTime information
Expand Down

0 comments on commit 4d9281c

Please sign in to comment.