Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions Common/Core/CollisionAssociation.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,29 +242,22 @@ class CollisionAssociation
if constexpr (isCentralBarrel) {
if (mUsePvAssociation && track.isPVContributor()) {
thresholdTime = trackTimeRes;
} else if (TESTBIT(track.flags(), o2::aod::track::TrackTimeResIsRange))
{
//the track time resolution is a range, not a gaussian resolution
} else if (TESTBIT(track.flags(), o2::aod::track::TrackTimeResIsRange)) {
// the track time resolution is a range, not a gaussian resolution
thresholdTime = trackTimeRes + mNumSigmaForTimeCompat * std::sqrt(collTimeRes2) + mTimeMargin;
} else {
thresholdTime = mNumSigmaForTimeCompat * std::sqrt(sigmaTimeRes2) + mTimeMargin;
}
}
else
{
//the track is not a central track
if constexpr (TTracks::template contains<o2::aod::MFTTracks>())
{
//then the track is an MFT track, or an MFT track with additionnal joined info
//in this case TrackTimeResIsRange
} else {
// the track is not a central track
if constexpr (TTracks::template contains<o2::aod::MFTTracks>()) {
// then the track is an MFT track, or an MFT track with additionnal joined info
// in this case TrackTimeResIsRange
thresholdTime = trackTimeRes + mNumSigmaForTimeCompat * std::sqrt(collTimeRes2) + mTimeMargin;
}
else
{
//the track is a fwd track, with a gaussian time resolution
} else {
// the track is a fwd track, with a gaussian time resolution
thresholdTime = mNumSigmaForTimeCompat * std::sqrt(sigmaTimeRes2) + mTimeMargin;
}

}

if (std::abs(deltaTime) < thresholdTime) {
Expand Down