Skip to content

Commit 13c93c8

Browse files
committed
add switch for debug
1 parent fccb196 commit 13c93c8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Service/TrackSystemSvc/src/MarlinTrkUtils.cc

+9
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,16 @@ namespace MarlinTrk {
608608
trkStateCalo.location = MarlinTrk::Location::AtCalorimeter;
609609
track->addToTrackStates(trkStateCalo);
610610
} else {
611+
#ifdef DEBUG
611612
std::cout << " >>>>>>>>>>> MarlinTrk::finaliseLCIOTrack: could not get TrackState at Calo Face " << std::endl ;
613+
if (last_constrained_hit.isAvailable()) {
614+
auto pos = last_constrained_hit.getPosition();
615+
std::cout << " last_constrained_hit = " << pos.x << "," << pos.y << "," << pos.z << std::endl;
616+
}
617+
else {
618+
std::cout << " last_constrained_hit not Available" << std::endl;
619+
}
620+
#endif
612621
//delete trkStateCalo;
613622
}
614623
} else {

0 commit comments

Comments
 (0)