Skip to content
Snippets Groups Projects
Commit e83a8050 authored by John Derek Chapman's avatar John Derek Chapman Committed by Graeme Stewart
Browse files

ISF_Event/ITruthIncident.h (secondaryP2Pass, secondaryPt2Pass,...

ISF_Event/ITruthIncident.h (secondaryP2Pass, secondaryPt2Pass, secondaryEkinPass): Fix loop end condition for truth strategies which can save partial vertices (i.e. MC15/MC15a). ATLASSIM-1953. Tagging as ISF_Event-00-06-03-01 (ISF_Event-00-06-03-01)
parent 6a074ed4
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ namespace ISF {
unsigned short numSec = numberOfSecondaries();
bool pass = false; // true if cut passed
// as soon as at a particle passes the cut -> end loop and return true
for ( unsigned short i=0; (!pass && m_passWholeVertex) && (i<numSec); ++i) {
for ( unsigned short i=0; !(pass && m_passWholeVertex) && (i<numSec); ++i) {
bool thispassed = (secondaryP2(i) >= p2cut);
if(thispassed) { setSecondaryPassed(i); }
pass |= thispassed;
......@@ -134,7 +134,7 @@ namespace ISF {
unsigned short numSec = numberOfSecondaries();
bool pass = false; // true if cut passed
// as soon as at a particle passes the cut -> end loop and return true
for ( unsigned short i=0; (!pass && m_passWholeVertex) && (i<numSec); ++i) {
for ( unsigned short i=0; !(pass && m_passWholeVertex) && (i<numSec); ++i) {
bool thispassed = (secondaryPt2(i) >= pt2cut);
if(thispassed) { setSecondaryPassed(i); }
pass |= thispassed;
......@@ -148,7 +148,7 @@ namespace ISF {
unsigned short numSec = numberOfSecondaries();
bool pass = false; // true if cut passed
// as soon as at a particle passes the cut -> end loop and return true
for ( unsigned short i=0; (!pass && m_passWholeVertex) && (i<numSec); ++i) {
for ( unsigned short i=0; !(pass && m_passWholeVertex) && (i<numSec); ++i) {
bool thispassed = (secondaryEkin(i) >= ekincut);
if(thispassed) { setSecondaryPassed(i); }
pass |= thispassed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment