ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
16 :
17 // Base class constructor
19{}
20
23
24
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
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
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}
#define endmsg
T_AthenaPoolCustCnv< LArTTCellMap, LArTTCell_P > LArTTCellMapCnvBase
convert to and from a SG storable
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
LArTTCellMapCnv(ISvcLocator *svcloc)
virtual ~LArTTCellMapCnv()
virtual StatusCode initialize()
initialization
virtual StatusCode transToPers(LArTTCellMap *obj, LArTTCell_P *&persObj)
Extend base-class conversion method.
virtual StatusCode persToTrans(LArTTCellMap *&transObj, LArTTCell_P *obj)
This is a StoreGate object holding the offline TT-cell map.
void set(const PDATA &t)
initialize from Nova
This is a database object holding the offline TT-cell map.
Definition LArTTCell_P.h:23
std::vector< __t > m_v
Definition LArTTCell_P.h:54
T_AthenaPoolCustCnv(ISvcLocator *pSvcLocator, const char *name=nullptr)