Skip to content

Commit b127d8a

Browse files
authored
Merge pull request #1137 from mgignac/mgignac-debug-for-faketrack
Protect debug statement
2 parents ac31ba9 + 733e249 commit b127d8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

analysis/src/main/java/org/hps/analysis/MC/TrackToMCParticleRelationsDriver.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ protected void process(EventHeader event) {
167167
}
168168
}//mcp not null
169169
else {
170-
System.out.printf("PF::FakeTrack");
170+
if( debug ){
171+
System.out.printf("TrackToMCParticleRelationsDriver::WARNING Track does not have truth hits associated to it! Either fake, or from pulser overlay.");
172+
}
171173
}
172174
} //ttm not null
173175
else {

0 commit comments

Comments
 (0)