ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloCnv
CaloCondAthenaPool
src
LArTTCellMapCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArTTCellMapCnv.h
"
6
7
8
// Gaudi
9
#include "GaudiKernel/MsgStream.h"
10
#include "GaudiKernel/IToolSvc.h"
11
12
// Athena
13
#include "
AthenaKernel/StorableConversions.h
"
14
15
LArTTCellMapCnv::LArTTCellMapCnv
(ISvcLocator* svcloc)
16
:
17
// Base class constructor
18
LArTTCellMapCnvBase
::
T_AthenaPoolCustCnv
(svcloc)
19
{}
20
21
LArTTCellMapCnv::~LArTTCellMapCnv
()
22
{}
23
24
25
StatusCode
LArTTCellMapCnv::initialize
()
26
{
27
// Call base clase initialize
28
if
(!
AthenaPoolConverter::initialize
().isSuccess()) {
29
return
StatusCode::FAILURE;
30
}
31
32
// Get the messaging service, print where you are
33
MsgStream log(msgSvc(),
"LArTTCellMapCnv"
);
34
log << MSG::INFO <<
"initialize()"
<<
endmsg
;
35
36
return
StatusCode::SUCCESS;
37
}
38
39
40
StatusCode
LArTTCellMapCnv::transToPers
(
LArTTCellMap
* obj,
LArTTCell_P
*& persObj) {
41
42
MsgStream log(msgSvc(),
"LArTTCellMapCnv"
) ;
43
44
persObj = (obj->getP()) ;
45
46
if
(persObj == 0 ) {
47
log<<MSG::ERROR<<
" no persistent object from LArTTCellMap "
<<
endmsg
;
48
return
StatusCode::FAILURE;
49
}
50
51
log<<MSG::DEBUG<<
" LArTTCell size = "
<< persObj->
m_v
.size() <<
endmsg
;
52
std::cout <<
" LArTTCell_P pointer "
<< persObj <<std::endl;
53
54
return
StatusCode::SUCCESS;
55
}
56
57
StatusCode
LArTTCellMapCnv::persToTrans
(
LArTTCellMap
*& transObj,
LArTTCell_P
* obj) {
58
59
MsgStream log(msgSvc(),
"LArTTCellMapCnv"
) ;
60
61
log<<MSG::DEBUG<<
" LArTTCell size = "
<< obj->m_v.size() <<
endmsg
;
62
63
transObj=
new
LArTTCellMap
();
64
transObj->
set
( *obj ) ;
65
66
return
StatusCode::SUCCESS ;
67
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
LArTTCellMapCnv.h
LArTTCellMapCnvBase
T_AthenaPoolCustCnv< LArTTCellMap, LArTTCell_P > LArTTCellMapCnvBase
Definition
LArTTCellMapCnv.h:13
StorableConversions.h
convert to and from a SG storable
AthenaPoolConverter::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition
AthenaPoolConverter.cxx:29
LArTTCellMapCnv::LArTTCellMapCnv
LArTTCellMapCnv(ISvcLocator *svcloc)
Definition
LArTTCellMapCnv.cxx:15
LArTTCellMapCnv::~LArTTCellMapCnv
virtual ~LArTTCellMapCnv()
Definition
LArTTCellMapCnv.cxx:21
LArTTCellMapCnv::initialize
virtual StatusCode initialize()
initialization
Definition
LArTTCellMapCnv.cxx:25
LArTTCellMapCnv::transToPers
virtual StatusCode transToPers(LArTTCellMap *obj, LArTTCell_P *&persObj)
Extend base-class conversion method.
Definition
LArTTCellMapCnv.cxx:40
LArTTCellMapCnv::persToTrans
virtual StatusCode persToTrans(LArTTCellMap *&transObj, LArTTCell_P *obj)
Definition
LArTTCellMapCnv.cxx:57
LArTTCellMap
This is a StoreGate object holding the offline TT-cell map.
Definition
LArTTCellMap.h:29
LArTTCellMap::set
void set(const PDATA &t)
initialize from Nova
Definition
LArTTCellMap.cxx:29
LArTTCell_P
This is a database object holding the offline TT-cell map.
Definition
LArTTCell_P.h:23
LArTTCell_P::m_v
std::vector< __t > m_v
Definition
LArTTCell_P.h:54
T_AthenaPoolCustCnv< LArTTCellMap, LArTTCell_P >::T_AthenaPoolCustCnv
T_AthenaPoolCustCnv(ISvcLocator *pSvcLocator, const char *name=nullptr)
Generated on
for ATLAS Offline Software by
1.17.0