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

#include <TBHitContCnv.h>

Inheritance diagram for TBHitContCnv:
Collaboration diagram for TBHitContCnv:

Public Member Functions

 TBHitContCnv (ISvcLocator *svcloc)
 
virtual ~TBHitContCnv ()
 
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< TBHitContCnv >
 

Detailed Description

Definition at line 13 of file TBHitContCnv.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

◆ TBHitContCnv()

TBHitContCnv::TBHitContCnv ( ISvcLocator *  svcloc)

Definition at line 15 of file TBHitContCnv.cxx.

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

◆ ~TBHitContCnv()

TBHitContCnv::~TBHitContCnv ( )
virtual

Definition at line 22 of file TBHitContCnv.cxx.

23 {}

Member Function Documentation

◆ initialize()

StatusCode TBHitContCnv::initialize ( )
overridevirtual

initialization

Definition at line 25 of file TBHitContCnv.cxx.

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

◆ PoolToDataObject()

StatusCode TBHitContCnv::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 TBHitContCnv.cxx.

41 {
42  // First call base class converter to get DataObject from
43  // pool. Then modify as appropriate
44 
45  MsgStream log(msgSvc(), "TBHitContCnv::PoolToDataObject" );
46 
47  StatusCode sc = TBHitContCnvBase::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 TBHitCont*
56  TBHitCont* obj=0;
57  SG::fromStorable(pObj, obj );
58  if(!obj) {
59  log << MSG::ERROR << " failed to cast to TBHitCont " << endmsg ;
60  return StatusCode::FAILURE;
61  }
62 
63  return StatusCode::SUCCESS;
64 }

Friends And Related Function Documentation

◆ CnvFactory< TBHitContCnv >

friend class CnvFactory< TBHitContCnv >
friend

Definition at line 11 of file TBHitContCnv.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
TBHitCont
Definition: TBHitCont.h:19
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:132
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37