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