![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
11 #include "GaudiKernel/MsgStream.h"
12 #include "GaudiKernel/IToolSvc.h"
13 #include "GaudiKernel/ThreadLocalContext.h"
27 p0_guid(
"8F94A938-3C19-4509-BBAA-E8EB0A64B524"),
28 p1_guid(
"E56D5471-A9E2-4787-B413-D3BD9F2AC55D")
52 const EventContext& ctx = Gaudi::Hive::currentContext();
53 MsgStream
log(
msgSvc(),
"CaloTowerContainerCnv::createTransient" );
59 Cont=poolReadObject<CaloTowerContainer>();
79 std::vector<CaloCell_ID::SUBCALO>
v;
82 log<<MSG::WARNING<<
" No SUBCALO in CaloTowerContainer"<<
endmsg;
86 std::vector<CaloCell_ID::SUBCALO> EmHec;
88 std::vector<CaloCell_ID::SUBCALO>::const_iterator
it =
v.begin();
89 std::vector<CaloCell_ID::SUBCALO>::const_iterator it_e =
v.end();
106 log<<MSG::ERROR<<
" Failed to create LArFCalTowerBuilder " <<
endmsg;
112 if (scfcal.isFailure()) {
113 log<<MSG::ERROR<<
" Towers rebuild for FCAL failed "<<
endmsg;
122 log<<MSG::ERROR<<
" Failed to create TileTowerBuilder " <<
endmsg;
128 if (sctile.isFailure()) {
129 log<<MSG::ERROR<<
" Towers rebuild for Tile failed "<<
endmsg;
141 log<<MSG::ERROR<<
" Failed to create LArTowerBuilder for EM&HEC" <<
endmsg;
148 if (scemHec.isFailure()) {
149 log<<MSG::ERROR<<
" Towers rebuild for EM and/or HEC failed "<<
endmsg;
158 MsgStream
log(
msgSvc(),
"CaloTowerContainerCnv::createPersistent");
167 const std::string&
type,
const std::string&
nm)
172 MsgStream
log(
msgSvc(),
"CaloTowerContainerCnv");
173 if (
sc.isFailure() )
176 <<
"Tool Service not found"
185 IAlgTool* algToolPtr;
186 sc = myToolSvc->retrieveTool(
type,
nm,algToolPtr);
188 if (
sc.isFailure() )
191 <<
"Cannot find tool named <"
virtual void persToTrans(const CaloTowerContainer_p1 *pers, CaloTowerContainer *trans, MsgStream &log) const override
const std::string toString() const
Automatic conversion to string representation.
CaloTowerBuilderTool * m_emHecTowerBldr
void init()
Initializes the CaloTowerContainer.
virtual CaloTowerContainerPERS * createPersistent(CaloTowerContainer *)
Definition of CaloDetDescrManager.
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current CaloTowerContainer
Storable container class for CaloTower.
msgSvc
Provide convenience handles for various services.
Compatibility for old converter classes that don't get passed the key.
::StatusCode StatusCode
StatusCode definition for legacy code.
CaloTowerBuilderToolBase * m_tileTowerBldr
SUBCALO
enumeration of sub calorimeters
size_t getCalos(std::vector< CaloCell_ID::SUBCALO > &theCalos) const
Retrieve the list of used calorimeters.
virtual CaloTowerContainer * createTransient()
initialization
CaloTowerContainerCnv_p1 m_converter
virtual ~CaloTowerContainerCnv()
CaloTowerBuilderToolBase * getTool(const std::string &type, const std::string &nm)
virtual void transToPers(const CaloTowerContainer *trans, CaloTowerContainer_p1 *pers, MsgStream &log) const override
CaloTowerContainer_p1 CaloTowerContainerPERS
CaloTowerBuilderToolBase * m_fcalTowerBldr
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
CaloTowerContainerCnv(ISvcLocator *svcloc)