5 #ifndef CALOEVENT_CALOCLUSTERLINKTEMPLATE_H
6 #define CALOEVENT_CALOCLUSTERLINKTEMPLATE_H
8 #include "AthLinks/ElementLink.h"
20 class DOBJ=
typename CONT::base_value_type,
26 static bool setLink(CONT* pCont, DOBJ* pDat, ELEM& rElm)
31 bool checkOut(pCont != 0);
38 pCont->push_back(pDat);
39 checkOut = rElm.setStorableObject(*pCont);
45 DOBJ* pNewDat =
new DOBJ();
46 pCont->push_back(pNewDat);
47 checkOut = rElm.toContainedElement(*pCont,pNewDat);