BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataTofDigiCnv.h
Go to the documentation of this file.
1//====================================================================
2// RawDataTofDigiCnv.h
3//====================================================================
4//
5// Description:
6// RawDataTofDigiCnv is the concrete converter for
7// the event header on the TDS /Event
8//
9//--------------------------------------------------------------------
10
11#ifndef RAWDATA_TOFDIGI_CNV_H
12#define RAWDATA_TOFDIGI_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<RawDataTofDigiCnv>;
35protected:
36 // Standard Constructor.
37 RawDataTofDigiCnv(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 /// TofConverter for packing or unpacking data
67 TofConverter* m_cnv;
68
69};
70
71#endif // RAWDATA_TOFDIGI_CNV_H
unsigned const long PACKEDRAWEVENT_StorageType
virtual long repSvcType() const
static const CLID & classID()
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Convert the transient object to the requested representation.
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
RawDataTofDigiCnv(ISvcLocator *svc)
static const unsigned char storageType()
virtual StatusCode updateObj(IOpaqueAddress *, DataObject *)
override the RawDataBaseCnv version