1 |
|
//-------------------------------------------------------------------------------------------------- |
2 |
|
// $Id$ |
3 |
|
// |
4 |
< |
// Association Map |
4 |
> |
// AssociationMap |
5 |
|
// |
6 |
|
// Wrapper for std::map, used to resolve links during tree filling. |
7 |
|
// |
23 |
|
typedef std::map<MitClass, EdmClass> revMapType; |
24 |
|
|
25 |
|
public: |
26 |
< |
AssociationMap(const char *n=0) : edmProductId_(0), brname_(n) {} |
26 |
> |
AssociationMap() : edmProductId_(0) {} |
27 |
|
~AssociationMap() {} |
28 |
|
|
29 |
|
void Add(EdmClass edmObj, MitClass mitObj); |
31 |
|
Int_t GetEdmProductId() const { return edmProductId_; } |
32 |
|
Int_t GetEntries() const { return fwdMap_.size(); } |
33 |
|
MitClass GetMit(EdmClass edmObj) const; |
34 |
< |
const char *GetName() const { return brname_.c_str(); } |
34 |
> |
const char *GetBrName() const { return brname_.c_str(); } |
35 |
|
bool HasMit(EdmClass edmObj) const; |
36 |
|
void Reset() { fwdMap_.clear(); revMap_.clear(); } |
37 |
|
void SetEdmProductId(Int_t id) { edmProductId_ = id; } |
38 |
< |
void SetName(const char *n) { brname_ = n; } |
38 |
> |
void SetBrName(const std::string &n) { brname_ = n; } |
39 |
> |
void SetBrName(const char *n) { brname_ = n; } |
40 |
|
|
41 |
|
protected: |
42 |
|
fwdMapType fwdMap_; //map between edm ref and mit ptr |