ATLAS Offline Software
EventInfoByteStreamAuxCnv.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EVENTINFOBYTESTREAMAUXCNV_H
6 #define EVENTINFOBYTESTREAMAUXCNV_H
7 
18 #include "GaudiKernel/Converter.h"
19 #include "GaudiKernel/ServiceHandle.h"
21 
24 class StoreGateSvc;
25 
26 // Abstract factory to create the converter
27 template <class TYPE> class CnvFactory;
28 
30 {
31  public:
32  EventInfoByteStreamAuxCnv(ISvcLocator* svcloc);
33  virtual ~EventInfoByteStreamAuxCnv() override {}
34 
35  virtual StatusCode initialize() override;
36  virtual StatusCode finalize() override;
37 
39  virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj) override;
41  virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& pAddr) override;
42 
44  virtual long repSvcType() const override { return i_repSvcType(); }
45  static long storageType();
46  static const CLID& classID();
47 
48  private:
49  std::string ascTime(unsigned int t);
53 
54  // flags for EventType
58 };
59 
60 #endif
EventInfoByteStreamAuxCnv::createObj
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
converter method to create object
Definition: EventInfoByteStreamAuxCnv.cxx:121
EventInfoByteStreamAuxCnv::ascTime
std::string ascTime(unsigned int t)
convert timestamp to ascii time.
Definition: EventInfoByteStreamAuxCnv.cxx:281
EventInfoByteStreamAuxCnv
This is the class definition of ByteStream converter for xAOD::EventInfoAux Event Info is built from ...
Definition: EventInfoByteStreamAuxCnv.h:30
EventInfoByteStreamAuxCnv::m_isTestbeam
bool m_isTestbeam
Definition: EventInfoByteStreamAuxCnv.h:56
EventInfoByteStreamAuxCnv::EventInfoByteStreamAuxCnv
EventInfoByteStreamAuxCnv(ISvcLocator *svcloc)
Definition: EventInfoByteStreamAuxCnv.cxx:30
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition: IROBDataProviderSvc.h:25
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
EventInfoByteStreamAuxCnv::m_mdSvc
ServiceHandle< StoreGateSvc > m_mdSvc
TDS handle.
Definition: EventInfoByteStreamAuxCnv.h:52
EventInfoByteStreamAuxCnv::m_isSimulation
bool m_isSimulation
Definition: EventInfoByteStreamAuxCnv.h:55
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
CnvFactory
Abstract factory to create the converter.
Definition: ToyConverter.h:16
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
EventInfoByteStreamAuxCnv::storageType
static long storageType()
Definition: EventInfoByteStreamAuxCnv.cxx:47
EventInfoByteStreamAuxCnv::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
RODDataProviderSvc handle.
Definition: EventInfoByteStreamAuxCnv.h:51
Converter
Definition: Converter.h:27
EventInfoByteStreamAuxCnv::finalize
virtual StatusCode finalize() override
Definition: EventInfoByteStreamAuxCnv.cxx:110
EventInfoByteStreamAuxCnv::m_isCalibration
bool m_isCalibration
Definition: EventInfoByteStreamAuxCnv.h:57
ByteStreamCnvSvcBase
The base class for offline and HLT ByteStream conversion services.
Definition: ByteStreamCnvSvcBase.h:19
EventInfoByteStreamAuxCnv::m_ByteStreamCnvSvc
ByteStreamCnvSvcBase * m_ByteStreamCnvSvc
pointer to BS CnvSvc
Definition: EventInfoByteStreamAuxCnv.h:50
AthMessaging.h
EventInfoByteStreamAuxCnv::classID
static const CLID & classID()
Definition: EventInfoByteStreamAuxCnv.cxx:42
EventInfoByteStreamAuxCnv::createRep
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr) override
converter method to write object
Definition: EventInfoByteStreamAuxCnv.cxx:275
EventInfoByteStreamAuxCnv::initialize
virtual StatusCode initialize() override
Definition: EventInfoByteStreamAuxCnv.cxx:52
EventInfoByteStreamAuxCnv::~EventInfoByteStreamAuxCnv
virtual ~EventInfoByteStreamAuxCnv() override
Definition: EventInfoByteStreamAuxCnv.h:33
EventInfoByteStreamAuxCnv::repSvcType
virtual long repSvcType() const override
Storage type and class ID.
Definition: EventInfoByteStreamAuxCnv.h:44
ServiceHandle< IROBDataProviderSvc >