ATLAS Offline Software
LArCalibParamsCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #include "LArCalibParamsCnv.h"
12 
13 LArCalibParamsCnv::LArCalibParamsCnv(ISvcLocator* svcloc) :
14  LArCalibParamsCnvBase(svcloc) {}
15 
17 {}
18 
19 
22  const Token* token,
23  const std::string& key)
24 {
25  StatusCode sc;
26  sc=LArCalibParamsCnvBase::PoolToDataObject(pObj,token,key);
27  if (sc.isFailure()) return sc;
28  LArCalibParams* larCalibParams=NULL;
29  SG::fromStorable(pObj,larCalibParams);
30  if (!larCalibParams) return StatusCode::FAILURE;
31  sc=larCalibParams->initialize();
32  return sc;
33 }
T_AthenaPoolCnv
This templated class provides the converter to translate an object to/from its persistent POOL repres...
Definition: T_AthenaPoolCnv.h:61
SG::fromStorable
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
Definition: StorableConversions.h:167
LArCalibParams
Definition: LArCalibParams.h:28
LArCalibParamsCnv::PoolToDataObject
virtual StatusCode PoolToDataObject(DataObject *&pObj, const Token *token, const std::string &key) override
Extend base-class conversion method.
Definition: LArCalibParamsCnv.cxx:21
LArCalibParamsCnv::LArCalibParamsCnv
LArCalibParamsCnv(ISvcLocator *svcloc)
Definition: LArCalibParamsCnv.cxx:13
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition: Token.h:21
LArCalibParamsCnv.h
Customized conversion for LArCalibParams.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArCalibParamsCnv::~LArCalibParamsCnv
virtual ~LArCalibParamsCnv()
Definition: LArCalibParamsCnv.cxx:16
LArCalibParams::initialize
virtual StatusCode initialize()
Definition: LArCalibParams.cxx:16
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37