CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataMdcDigiCnv.h
Go to the documentation of this file.
1//====================================================================
2// RawDataMdcDigiCnv.h
3//====================================================================
4//
5// Description:
6// RawDataMdcDigiCnv is the concrete converter for
7// the event header on the TDS /Event
8//
9//--------------------------------------------------------------------
10
11#ifndef RAWDATA_MDCDIGI_CNV_H
12#define RAWDATA_MDCDIGI_CNV_H
13
14// Include files.
15#include "GaudiKernel/Converter.h"
20
21// Forward declarations.
22class IOpaqueAddress;
23class DataObject;
24class StatusCode;
26
27// Converter Factory to create instances of this class.
28template <class TYPE> class CnvFactory;
29
31{
32
33 // Declaration of a Converter Factory to create instances of this class.
34 friend class CnvFactory<RawDataMdcDigiCnv>;
35protected:
36 // Standard Constructor.
37 RawDataMdcDigiCnv(ISvcLocator* svc);
39
40public:
41 StatusCode initialize();
42
43 // Return the class type of this converter.
44 static const CLID& classID();
45
46 virtual long repSvcType() const {
48 }
49
50 static const unsigned char storageType() {
52 }
53
54 // Create a converted object in the Transient Data Store.
55 StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj);
56
57 /// override the RawDataBaseCnv version
58 virtual StatusCode updateObj(IOpaqueAddress*, DataObject*);
59
60 virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& pAddr);
61
62private:
63 IRawDataInputSvc* m_inputSvc;
64 /// Define the interface to raw data cnv
65 PackedRawDataCnvSvc* m_RawDataAccess;
66 /// MdcConverter for packing or unpacking data
67 MdcConverter* m_cnv;
68
69 int m_runFrom;
70 int m_runTo;
71};
72
73#endif // RAWDATA_MDCDIGI_CNV_H
unsigned const long PACKEDRAWEVENT_StorageType
Definition: ClassID_temp.h:17
static const unsigned char storageType()
virtual StatusCode updateObj(IOpaqueAddress *, DataObject *)
override the RawDataBaseCnv version
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
static const CLID & classID()
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Convert the transient object to the requested representation.
virtual long repSvcType() const