ATLAS Offline Software
Public Member Functions | Private Types | Friends | List of all members
TBBPCRawContCnv Class Reference

#include <TBBPCRawContCnv.h>

Inheritance diagram for TBBPCRawContCnv:
Collaboration diagram for TBBPCRawContCnv:

Public Member Functions

 TBBPCRawContCnv (ISvcLocator *svcloc)
 
virtual ~TBBPCRawContCnv ()
 
virtual StatusCode initialize () override
 initialization More...
 
virtual StatusCode PoolToDataObject (DataObject *&pObj, const Token *token, const std::string &key) override
 Extend base-class conversion method to modify when reading in. More...
 

Private Types

typedef T_AthenaPoolFindBase< T >::type Base
 

Friends

class CnvFactory< TBBPCRawContCnv >
 

Detailed Description

Definition at line 13 of file TBBPCRawContCnv.h.

Member Typedef Documentation

◆ Base

template<class T >
typedef T_AthenaPoolFindBase<T>::type T_AthenaPoolCnv< T >::Base
privateinherited

Definition at line 62 of file T_AthenaPoolCnv.h.

Constructor & Destructor Documentation

◆ TBBPCRawContCnv()

TBBPCRawContCnv::TBBPCRawContCnv ( ISvcLocator *  svcloc)

Definition at line 15 of file TBBPCRawContCnv.cxx.

16  :
17  // Base class constructor
18  TBBPCRawContCnvBase::T_AthenaPoolCnv(svcloc)
19 {}

◆ ~TBBPCRawContCnv()

TBBPCRawContCnv::~TBBPCRawContCnv ( )
virtual

Definition at line 22 of file TBBPCRawContCnv.cxx.

23 {}

Member Function Documentation

◆ initialize()

StatusCode TBBPCRawContCnv::initialize ( )
overridevirtual

initialization

Definition at line 25 of file TBBPCRawContCnv.cxx.

26 {
27  // Call base clase initialize
29 
30  // Get the messaging service, print where you are
31  MsgStream log(msgSvc(), "TBBPCRawContCnv");
32  log << MSG::INFO << "initialize()" << endmsg;
33 
34  return StatusCode::SUCCESS;
35 }

◆ PoolToDataObject()

StatusCode TBBPCRawContCnv::PoolToDataObject ( DataObject *&  pObj,
const Token token,
const std::string &  key 
)
overridevirtual

Extend base-class conversion method to modify when reading in.

Definition at line 38 of file TBBPCRawContCnv.cxx.

41 {
42  // First call base class converter to get DataObject from
43  // pool. Then modify as appropriate
44 
45  MsgStream log(msgSvc(), "TBBPCRawContCnv::PoolToDataObject" );
46 
47  StatusCode sc = TBBPCRawContCnvBase::PoolToDataObject(pObj, token, key);
48  if (sc.isFailure()) {
49  log << MSG::FATAL << "Unable to get object from pool" << endmsg;
50  return StatusCode::FAILURE;
51  } else {
52  log << MSG::DEBUG << " Found DataObject " << endmsg;
53  }
54 
55  // Convert DataObject pointer to TBBPCRawCont*
56  TBBPCRawCont* obj=0;
57  SG::fromStorable(pObj, obj );
58  if(!obj) {
59  log << MSG::ERROR << " failed to cast to TBBPCRawCont " << endmsg ;
60  return StatusCode::FAILURE;
61  }
62 
63  return StatusCode::SUCCESS;
64 }

Friends And Related Function Documentation

◆ CnvFactory< TBBPCRawContCnv >

friend class CnvFactory< TBBPCRawContCnv >
friend

Definition at line 11 of file TBBPCRawContCnv.h.


The documentation for this class was generated from the following files:
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
SG::fromStorable
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
Definition: StorableConversions.h:180
AthenaPoolConverter::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition: AthenaPoolConverter.cxx:27
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
python.PyAthena.obj
obj
Definition: PyAthena.py:135
TBBPCRawCont
Definition: TBBPCRawCont.h:17
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37