Print

Print


Commit in lcio/src/cpp/src/EXAMPLE on MAIN
lcrtrelation.cc+5-21.3 -> 1.4
bug fix (check clu->rel<TrkCluLink::from> for 0)

lcio/src/cpp/src/EXAMPLE
lcrtrelation.cc 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- lcrtrelation.cc	1 Dec 2006 14:10:10 -0000	1.3
+++ lcrtrelation.cc	1 Dec 2006 15:04:36 -0000	1.4
@@ -183,8 +183,11 @@
 	Track* trk =  clu->rel<TrkCluLink::from>() ;
 	
 	std::cout << " cluster " 
-		  << clu->ext<Index>() << " assigned from track:   " 
-		  << trk->ext<Index>() << std::endl ; 
+		  << clu->ext<Index>() << " assigned from track:   " ;
+	if( trk != 0 )
+	  std::cout << trk->ext<Index>() << std::endl ; 
+	else
+	  std::cout << " none "  << std::endl ; 
       }
 
       std::cout << std::endl ; 
CVSspam 0.2.8