--- UserCode/MitProd/TreeFiller/interface/AssociationMap.h 2008/07/01 21:11:12 1.2 +++ UserCode/MitProd/TreeFiller/interface/AssociationMap.h 2008/07/02 19:29:27 1.3 @@ -1,5 +1,5 @@ //-------------------------------------------------------------------------------------------------- -// $Id: AssociationMap.h,v 1.2 2008/07/01 21:11:12 loizides Exp $ +// $Id: AssociationMap.h,v 1.3 2008/07/02 19:29:27 bendavid Exp $ // // Association Map // @@ -14,6 +14,7 @@ #include #include +#include "FWCore/MessageLogger/interface/MessageLogger.h" namespace mithep { @@ -57,7 +58,8 @@ inline MitClass mithep::AssociationMapsecond; - else return 0; + else throw edm::Exception(edm::errors::Configuration, "AssociationMap::GetMit()\n") + << "Error! Edm Object not found in AssociationMap." << std::endl; } //-------------------------------------------------------------------------------------------------- @@ -67,6 +69,7 @@ inline EdmClass mithep::AssociationMapsecond; - else return 0; + else throw edm::Exception(edm::errors::Configuration, "AssociationMap::GetEdmRef()\n") + << "Error! mithep Object not found in AssociationMap." << std::endl; } #endif