Skip to content

Commit

Permalink
Removed last references to collisions object in AcceptTracks
Browse files Browse the repository at this point in the history
  • Loading branch information
bghanley1995 committed Jan 21, 2025
1 parent d3287b4 commit ec57602
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ inline MatchRecoGenSpecies IdentifiedBfFilterTracks::IdentifyTrack(TrackObject c
template <typename TrackObject>
inline int8_t IdentifiedBfFilterTracks::AcceptTrack(TrackObject const& track)
{
fillTrackHistosBeforeSelection(track, collision); // <Fill "before selection" histo
fillTrackHistosBeforeSelection(track); // <Fill "before selection" histo

/* TODO: incorporate a mask in the scanned tracks table for the rejecting track reason */
if constexpr (framework::has_type_v<aod::mctracklabel::McParticleId, typename TrackObject::all_columns>) {
Expand All @@ -1440,9 +1440,9 @@ inline int8_t IdentifiedBfFilterTracks::AcceptTrack(TrackObject const& track)
}
}

if (matchTrackType(track, collision)) {
if (matchTrackType(track)) {
if (ptlow < track.pt() && track.pt() < ptup && etalow < track.eta() && track.eta() < etaup) {
fillTrackHistosAfterSelection(track, kIdBfCharged, collision);
fillTrackHistosAfterSelection(track, kIdBfCharged);
MatchRecoGenSpecies sp = kWrongSpecies;
if (recoIdMethod == 0) {
sp = kIdBfCharged;
Expand All @@ -1464,7 +1464,7 @@ inline int8_t IdentifiedBfFilterTracks::AcceptTrack(TrackObject const& track)
return -1;
}
if (!(sp < 0)) {
fillTrackHistosAfterSelection(track, sp, collision); //<Fill accepted track histo with PID
fillTrackHistosAfterSelection(track, sp); //<Fill accepted track histo with PID
if (track.sign() > 0) { // if positive
trkMultPos[sp]++; //<< Update Particle Multiplicity
return speciesChargeValue1[sp];
Expand Down Expand Up @@ -1587,7 +1587,7 @@ int8_t IdentifiedBfFilterTracks::selectTrackAmbiguousCheck(CollisionObjects cons
/* feedback of no ambiguous tracks only if checks required */
fhAmbiguousTrackType->Fill(tracktype, multiplicityclass);
}
return AcceptTrack(track, collisions.iteratorAt(track.collisionId()));
return AcceptTrack(track);
}
}

Expand Down

0 comments on commit ec57602

Please sign in to comment.