lcio/src/cpp/src/UTIL
diff -u -r1.2 -r1.3
--- PIDHandler.cc 13 Mar 2011 17:30:40 -0000 1.2
+++ PIDHandler.cc 13 Mar 2011 17:38:03 -0000 1.3
@@ -292,7 +292,7 @@
idv = &( static_cast< ClusterImpl* >(p)->getParticleIDs() ) ;
}
else{
-
+
throw Exception("PIDHandler::getParticleID LCObject is neither ReconstructedParticleImpl nor ClusterImpl !") ;
}
@@ -370,7 +370,11 @@
idv = &( static_cast< ClusterImpl* >(p)->getParticleIDs() ) ;
}
-
+ else{
+
+ throw Exception("PIDHandler::setParticleID LCObject is neither ReconstructedParticleImpl nor ClusterImpl !") ;
+ }
+
const ParticleIDVec& pidV = *idv ;
unsigned nPid = pidV.size() ;