14 |
|
|
15 |
|
#include <map> |
16 |
|
#include <TObject.h> |
17 |
+ |
#include "FWCore/MessageLogger/interface/MessageLogger.h" |
18 |
|
|
19 |
|
namespace mithep |
20 |
|
{ |
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 |
|
//-------------------------------------------------------------------------------------------------- |
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 |