|
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 const EventContext& ctx = Gaudi::Hive::currentContext();
28 MsgStream
log(
msgSvc(),
"CaloTowerContainerCnv::createTransient" );
34 Cont=poolReadObject<CaloTowerContainer>();
54 std::vector<CaloCell_ID::SUBCALO>
v;
57 log<<MSG::WARNING<<
" No SUBCALO in CaloTowerContainer"<<
endmsg;
61 std::vector<CaloCell_ID::SUBCALO> EmHec;
63 std::vector<CaloCell_ID::SUBCALO>::const_iterator
it =
v.begin();
64 std::vector<CaloCell_ID::SUBCALO>::const_iterator it_e =
v.end();
81 log<<MSG::ERROR<<
" Failed to create LArFCalTowerBuilder " <<
endmsg;
87 if (scfcal.isFailure()) {
88 log<<MSG::ERROR<<
" Towers rebuild for FCAL failed "<<
endmsg;
97 log<<MSG::ERROR<<
" Failed to create TileTowerBuilder " <<
endmsg;
103 if (sctile.isFailure()) {
104 log<<MSG::ERROR<<
" Towers rebuild for Tile failed "<<
endmsg;
116 log<<MSG::ERROR<<
" Failed to create LArTowerBuilder for EM&HEC" <<
endmsg;
123 if (scemHec.isFailure()) {
124 log<<MSG::ERROR<<
" Towers rebuild for EM and/or HEC failed "<<
endmsg;
133 MsgStream
log(
msgSvc(),
"CaloTowerContainerCnv::createPersistent");
142 const std::string&
type,
const std::string&
nm)
144 SmartIF<IToolSvc> myToolSvc{Gaudi::svcLocator()->service(
"ToolSvc")};
145 if(!myToolSvc.isValid()) {
154 IAlgTool* algToolPtr{
nullptr};
157 if (
sc.isFailure() )
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.
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.
CaloTowerContainerCnv_p1 m_converter
virtual CaloTowerContainerPERS * createPersistent(CaloTowerContainer *) override
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 CaloTowerContainer * createTransient() override
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
CaloTowerContainerCnv(ISvcLocator *svcloc)