From 6c52d55d1a08affac86e870cf1ff06efbe97c236 Mon Sep 17 00:00:00 2001 From: Federico Meloni Date: Wed, 27 Nov 2024 13:21:26 +0100 Subject: [PATCH] fixes to formatting --- source/Utils/src/FilterTracks.cc | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/source/Utils/src/FilterTracks.cc b/source/Utils/src/FilterTracks.cc index 066ef0f..325e955 100644 --- a/source/Utils/src/FilterTracks.cc +++ b/source/Utils/src/FilterTracks.cc @@ -157,23 +157,25 @@ void FilterTracks::processEvent( LCEvent * evt ) if(_BarrelOnly == true) { bool endcaphits = false; for(int j=0; jgetTrackerHits()[j])["system"]; - if(systemID == 2 || systemID == 4 || systemID == 6) { - endcaphits = true; - break; - } + //Find what subdetector the hit is on + uint32_t systemID = decoder(trk->getTrackerHits()[j])["system"]; + if(systemID == 2 || systemID == 4 || systemID == 6) { + endcaphits = true; + break; + } } if(endcaphits == false) { OutputTrackCollection->addElement(trk); } } else { // track property cuts if(nhittotal > _NHitsTotal && - nhitvertex > _NHitsVertex && - nhitinner > _NHitsInner && - nhitouter > _NHitsOuter && - pt > _MinPt && - chi2spatial > _Chi2Spatial && - nholes <= _MaxHoles) - { OutputTrackCollection->addElement(trk); } + nhitvertex > _NHitsVertex && + nhitinner > _NHitsInner && + nhitouter > _NHitsOuter && + pt > _MinPt && + chi2spatial > _Chi2Spatial && + nholes <= _MaxHoles) + { + OutputTrackCollection->addElement(trk); + } } }