BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/RawDataCnv-00-04-37/RawDataCnv/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"
16#include "RawDataCnvBase/RawDataBaseCnv.h"
17#include "RawDataCnv/ClassID_temp.h"
18#include "RawDataCnv/PackedRawDataCnvSvc.h"
19#include "RawDataCnv/Util/MdcConverter.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
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.