28 |
|
~AssociationMap() {} |
29 |
|
|
30 |
|
void Add(EdmClass edmObj, MitClass mitObj); |
31 |
< |
EdmClass GetEdmRef(MitClass mitObj) const; |
31 |
> |
EdmClass GetEdm(MitClass mitObj) const; |
32 |
|
Int_t GetEdmProductId() const { return edmProductId_; } |
33 |
|
Int_t GetEntries() const { return fwdMap_.size(); } |
34 |
|
MitClass GetMit(EdmClass edmObj) const; |
59 |
|
if (iter != fwdMap_.end()) |
60 |
|
return iter->second; |
61 |
|
else throw edm::Exception(edm::errors::Configuration, "AssociationMap::GetMit()\n") |
62 |
< |
<< "Error! Edm Object not found in AssociationMap." << std::endl; |
62 |
> |
<< "Error! EDM Object (" << typeid(edmObj).name() |
63 |
> |
<< ") not found in AssociationMap (" << typeid(*this).name() << ")." << std::endl; |
64 |
|
} |
65 |
|
|
66 |
|
//-------------------------------------------------------------------------------------------------- |
67 |
|
template <class EdmClass, class MitClass> |
68 |
< |
inline EdmClass mithep::AssociationMap<EdmClass,MitClass>::GetEdmRef(MitClass mitObj) const |
68 |
> |
inline EdmClass mithep::AssociationMap<EdmClass,MitClass>::GetEdm(MitClass mitObj) const |
69 |
|
{ |
70 |
|
typename revMapType::const_iterator iter = revMap_.find(mitObj); |
71 |
|
if (iter != revMap_.end()) |
72 |
|
return iter->second; |
73 |
< |
else throw edm::Exception(edm::errors::Configuration, "AssociationMap::GetEdmRef()\n") |
74 |
< |
<< "Error! mithep Object not found in AssociationMap." << std::endl; |
73 |
> |
else throw edm::Exception(edm::errors::Configuration, "AssociationMap::GetEdm()\n") |
74 |
> |
<< "Error! MITHEP Object (" << typeid(mitObj).name() |
75 |
> |
<< ") not found in AssociationMap (" << typeid(*this).name() << ")." << std::endl; |
76 |
|
} |
77 |
|
#endif |