Commit in lcio/src/cpp/src/UTIL on MAIN | |||
LCTOOLS.cc | +5 | -1 | 1.60 -> 1.61 |
bug fix for printing DSTs, LDCTracks collections with null pointers to other tracks
diff -u -r1.60 -r1.61 --- LCTOOLS.cc 25 Jun 2008 15:26:48 -0000 1.60 +++ LCTOOLS.cc 26 Jun 2008 09:01:20 -0000 1.61 @@ -288,8 +288,12 @@
const TrackVec& tracks = trk->getTracks() ; for(unsigned int l=0;l<tracks.size();l++){
- printf("[%8.8x], ", tracks[l]->id() ) ;
+ if( tracks[l] != 0 ) + printf("[%8.8x], ", tracks[l]->id() ) ; + else + printf("[%8.8x], ", 0 ) ;
}
+
cout << endl ; if( flag.bitSet( LCIO::TRBIT_HITS ) ) { cout << " hits ->" ;