Skip to content

Commit

Permalink
Merge pull request #14943 from VinInn/ProtectTSOSinTrajFilters
Browse files Browse the repository at this point in the history
protect tsos
  • Loading branch information
cmsbuild committed Jun 24, 2016
2 parents 1750c7d + d791f17 commit f8c3be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ thread_local TLS tls;
// const FreeTrajectoryState& fts = *tm.updatedState().freeTrajectoryState();

auto const & tsos = tm.updatedState();
if (!tsos.isValid()) return false;
GlobalVector gtp = tsos.globalMomentum();

//avoid doing twice the check in TBC and QF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ thread_local TLS tls;
if (foundHits < theMinHits ){ return true;}

// check for momentum below limit
if (!tm.updatedState().isValid()) return false;
const FreeTrajectoryState& fts = *tm.updatedState().freeTrajectoryState();

//avoid doing twice the check in TBC and QF
Expand Down

0 comments on commit f8c3be2

Please sign in to comment.