ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/AssociationMap.h
(Generate patch)

Comparing UserCode/MitProd/TreeFiller/interface/AssociationMap.h (file contents):
Revision 1.2 by loizides, Tue Jul 1 21:11:12 2008 UTC vs.
Revision 1.3 by bendavid, Wed Jul 2 19:29:27 2008 UTC

# Line 14 | Line 14
14  
15   #include <map>
16   #include <TObject.h>
17 + #include "FWCore/MessageLogger/interface/MessageLogger.h"
18  
19   namespace mithep
20   {
# Line 57 | Line 58 | inline MitClass mithep::AssociationMap<E
58  
59    if (iter != fwdMap_.end())
60      return iter->second;
61 <  else return 0;
61 >  else throw edm::Exception(edm::errors::Configuration, "AssociationMap::GetMit()\n")
62 >        << "Error! Edm Object not found in AssociationMap." << std::endl;
63   }
64        
65   //--------------------------------------------------------------------------------------------------
# Line 67 | Line 69 | inline EdmClass mithep::AssociationMap<E
69    typename revMapType::const_iterator iter = revMap_.find(mitObj);
70    if (iter != revMap_.end())
71      return iter->second;
72 <  else return 0;
72 >  else throw edm::Exception(edm::errors::Configuration, "AssociationMap::GetEdmRef()\n")
73 >        << "Error! mithep Object not found in AssociationMap." << std::endl;
74   }
75   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines