ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCnv
LArIdCnv
src
LArOnline_SuperCellIDDetDescrCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArIdCnv/LArOnline_SuperCellIDDetDescrCnv.h
"
6
7
#include "
DetDescrCnvSvc/DetDescrConverter.h
"
8
#include "
DetDescrCnvSvc/DetDescrAddress.h
"
9
#include "GaudiKernel/MsgStream.h"
10
#include "
StoreGate/StoreGateSvc.h
"
11
12
#include "
IdDictDetDescr/IdDictManager.h
"
13
#include "
LArIdentifier/LArOnline_SuperCellID.h
"
14
15
16
long
int
17
LArOnline_SuperCellIDDetDescrCnv::repSvcType
()
const
18
{
19
return
(
storageType
());
20
}
21
22
StatusCode
23
LArOnline_SuperCellIDDetDescrCnv::initialize
()
24
{
25
// First call parent init
26
ATH_CHECK
( DetDescrConverter::initialize() );
27
return
StatusCode::SUCCESS;
28
}
29
30
//--------------------------------------------------------------------
31
32
StatusCode
33
LArOnline_SuperCellIDDetDescrCnv::createObj
(IOpaqueAddress*
/*pAddr*/
, DataObject*& pObj)
34
{
35
ATH_MSG_INFO
(
"in createObj: creating a LArOnline_SuperCellID helper object in the detector store"
);
36
37
// Get the dictionary manager from the detector store
38
const
IdDictManager
* idDictMgr;
39
ATH_CHECK
(
detStore
()->retrieve(idDictMgr,
"IdDict"
) );
40
41
// create the helper
42
LArOnline_SuperCellID
* online_id =
new
LArOnline_SuperCellID
;
43
44
ATH_CHECK
( idDictMgr->
initializeHelper
(*online_id) == 0 );
45
46
// Pass a pointer to the container to the Persistency service by reference.
47
pObj =
SG::asStorable
(online_id);
48
49
return
StatusCode::SUCCESS;
50
51
}
52
53
//--------------------------------------------------------------------
54
55
long
56
LArOnline_SuperCellIDDetDescrCnv::storageType
()
57
{
58
return
DetDescr_StorageType
;
59
}
60
61
//--------------------------------------------------------------------
62
CLID
63
LArOnline_SuperCellIDDetDescrCnv::classID
() {
64
return
ClassID_traits<LArOnline_SuperCellID>::ID
();
65
}
66
67
//--------------------------------------------------------------------
68
LArOnline_SuperCellIDDetDescrCnv::LArOnline_SuperCellIDDetDescrCnv
(ISvcLocator* svcloc)
69
:
70
DetDescrConverter
(
ClassID_traits
<
LArOnline_SuperCellID
>::ID(), svcloc,
"LArOnline_SuperCellIDDetDescrCnv"
)
71
{}
72
73
74
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
DetDescrAddress.h
DetDescr_StorageType
const long DetDescr_StorageType
Definition
DetDescrCnvSvc.cxx:20
DetDescrConverter.h
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
IdDictManager.h
LArOnline_SuperCellIDDetDescrCnv.h
LArOnline_SuperCellID.h
StoreGateSvc.h
DetDescrConverter::DetDescrConverter
DetDescrConverter(const CLID &myCLID, ISvcLocator *svcloc, const char *name=nullptr)
Definition
DetDescrConverter.cxx:34
DetDescrConverter::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
Handle to DetectorStore.
Definition
DetDescrConverter.h:33
IdDictManager
IdDictManager is the interface to identifier dictionaries.
Definition
IdDictManager.h:26
IdDictManager::initializeHelper
int initializeHelper(IdHelper &helper) const
Return value: 0 OK, >0 error.
Definition
IdDictManager.cxx:37
LArOnline_SuperCellIDDetDescrCnv::createObj
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
Definition
LArOnline_SuperCellIDDetDescrCnv.cxx:33
LArOnline_SuperCellIDDetDescrCnv::storageType
static long storageType()
Definition
LArOnline_SuperCellIDDetDescrCnv.cxx:56
LArOnline_SuperCellIDDetDescrCnv::classID
static CLID classID()
Definition
LArOnline_SuperCellIDDetDescrCnv.cxx:63
LArOnline_SuperCellIDDetDescrCnv::LArOnline_SuperCellIDDetDescrCnv
LArOnline_SuperCellIDDetDescrCnv(ISvcLocator *svcloc)
Definition
LArOnline_SuperCellIDDetDescrCnv.cxx:68
LArOnline_SuperCellIDDetDescrCnv::initialize
virtual StatusCode initialize() override
Definition
LArOnline_SuperCellIDDetDescrCnv.cxx:23
LArOnline_SuperCellIDDetDescrCnv::repSvcType
virtual long int repSvcType() const override
Definition
LArOnline_SuperCellIDDetDescrCnv.cxx:17
LArOnline_SuperCellID
Definition
LArOnline_SuperCellID.h:21
SG::asStorable
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
Definition
DataObjectSharedPtr.h:31
ClassID_traits
Default, invalid implementation of ClassID_traits.
Definition
Control/AthenaKernel/AthenaKernel/ClassID_traits.h:37
ClassID_traits::ID
static constexpr CLID ID()
Definition
Control/AthenaKernel/AthenaKernel/ClassID_traits.h:44
Generated on
for ATLAS Offline Software by
1.17.0