@@ -107,7 +107,6 @@ struct StudyPnch {
107107 Configurable<bool > isApplyInelgt0{" isApplyInelgt0" , false , " Enable INEL > 0 condition" };
108108 Configurable<bool > isApplyExtraPhiCut{" isApplyExtraPhiCut" , false , " Enable extra phi cut" };
109109 Configurable<bool > isApplyTVX{" isApplyTVX" , false , " Enable TVX trigger sel" };
110- Configurable<bool > isApplyNoTrackSel{" isApplyNoTrackSel" , false , " Do not consider any criteria for track selection" };
111110 Configurable<bool > isApplyCheckID{" isApplyCheckID" , true , " Select Tracks evaluating Collision ID" };
112111 Configurable<bool > isApplyDuplicatedTrack{" isApplyDuplicatedTrack" , true , " Select tracks that are not duplicated" };
113112
@@ -289,24 +288,18 @@ struct StudyPnch {
289288 int countNTracksMcCol (countTrk const & tracks, McColType const & McCol)
290289 {
291290 auto nTrk = 0 ;
292- std::unordered_map<int , int > recoFrequencies; // Map that stores globalIndex and the times it appears
293291 std::vector<int > mcRecIDs;
294292 for (const auto & track : tracks) {
295293 if (!isTrackSelected (track)) {
296294 continue ;
297295 }
298- if (isApplyNoTrackSel) {
299- nTrk++;
300- }
301- if (isApplyCheckID && track.has_mcParticle ()) {
296+ if (track.has_mcParticle ()) {
302297 auto particle = track.mcParticle ();
303- if (particle.mcCollisionId () != McCol.mcCollisionId ()) {
298+ if (isApplyCheckID && particle.mcCollisionId () != McCol.mcCollisionId ()) {
304299 continue ;
305300 }
306- if (isApplyDuplicatedTrack) {
307- if (find (mcRecIDs.begin (), mcRecIDs.end (), particle.globalIndex ()) != mcRecIDs.end ()) {
308- continue ;
309- }
301+ if (isApplyDuplicatedTrack && find (mcRecIDs.begin (), mcRecIDs.end (), particle.globalIndex ()) != mcRecIDs.end ()) {
302+ continue ;
310303 }
311304 mcRecIDs.push_back (particle.globalIndex ());
312305 nTrk++;
@@ -353,7 +346,6 @@ struct StudyPnch {
353346
354347 void processMonteCarlo (soa::Join<aod::McCollisions, aod::McCollsExtra>::iterator const & mcCollision, ColMCRecTable const & RecCols, TrackMCTrueTable const & GenParticles, FilTrackMCRecTable const & RecTracks)
355348 {
356- std::vector<int > mclabels;
357349 for (const auto & RecCol : RecCols) {
358350 if (!isEventSelected (RecCol)) {
359351 continue ;
0 commit comments