Skip to content

Commit

Permalink
fixes to formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Meloni committed Nov 27, 2024
1 parent 7397209 commit 6c52d55
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions source/Utils/src/FilterTracks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,25 @@ void FilterTracks::processEvent( LCEvent * evt )
if(_BarrelOnly == true) {
bool endcaphits = false;
for(int j=0; j<nhittotal; ++j) {
//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;
}
//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);
}
}
}

Expand Down

0 comments on commit 6c52d55

Please sign in to comment.