Skip to content
Snippets Groups Projects

Remove documentation particles from truth record

Merged Mark Sutton requested to merge sutt/athena:fsn into master
1 unresolved thread
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
@@ -4,7+4,7 @@
** @author mark sutton
** @date Sun 2 Nov 2014 11:10:06 CET
**
** Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
**/
@@ -341,7+341,7 @@
if ( track ) {
// check it is a final state particle - documentation particles have status() == 3
if ( track->status() != 1 ) return false;
/// lazy just to avoid a find-replace of measPer to track
@@ -401,8 +402,6 @@ bool TrigTrackSelector::selectTrack( const xAOD::TruthParticle* track ) {
if ( ( track->hasProdVtx() && rp<=inner_radius ) &&
( !track->hasDecayVtx() || rd>outer_radius ) ) final_state = true;
// if ( track->status() == 3 ) final_state = false; /// check its not a documentation particle
if ( !final_state ) return false;
double deta = 0;
Loading