Print

Print


Commit in lcio/src/cpp/src/UTIL on MAIN
PIDHandler.cc+41.1 -> 1.2
protect against seg fault if used for LCObjects that are not ReconstructedParticleImpl or ClusterImpl

lcio/src/cpp/src/UTIL
PIDHandler.cc 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- PIDHandler.cc	30 May 2008 13:27:08 -0000	1.1
+++ PIDHandler.cc	13 Mar 2011 17:30:40 -0000	1.2
@@ -291,6 +291,10 @@
       
       idv = &( static_cast< ClusterImpl* >(p)->getParticleIDs()  ) ; 
     }
+    else{
+
+      throw Exception("PIDHandler::getParticleID LCObject is neither  ReconstructedParticleImpl nor ClusterImpl !") ;
+    }
 
     const ParticleIDVec& pidV = *idv ;	 
 
CVSspam 0.2.8