BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RawDataCnv/RawDataCnv/RawDataHltRawCnv.h
Go to the documentation of this file.
1//====================================================================
2// RawDataHltRawCnv.h
3//====================================================================
4//
5// Description:
6// RawDataHltRawCnv is the concrete converter for
7// the event header on the TDS /Event
8//
9//--------------------------------------------------------------------
10
11#ifndef RAWDATA_HLTRAW_CNV_H
12#define RAWDATA_HLTRAW_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
20//#include "EventModel/EventHeader.h"
21#include "RawDataCnv/EventManagement/HltBuilder.h"
22
23// Forward declarations.
24class IOpaqueAddress;
25class DataObject;
26class StatusCode;
28
29// Converter Factory to create instances of this class.
30template <class TYPE> class CnvFactory;
31
32class RawDataHltRawCnv : public RawDataBaseCnv
33{
34
35 // Declaration of a Converter Factory to create instances of this class.
36 friend class CnvFactory<RawDataHltRawCnv>;
37protected:
38 // Standard Constructor.
39 RawDataHltRawCnv(ISvcLocator* svc);
41public:
42 StatusCode initialize();
43
44 // Return the class type of this converter.
45 static const CLID& classID();
46
47 virtual long repSvcType() const {
49 }
50
51 static const unsigned char storageType() {
53 }
54
55 // Create a converted object in the Transient Data Store.
56 StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj);
57
58 /// override the RawDataBaseCnv version
59 virtual StatusCode updateObj(IOpaqueAddress*, DataObject*);
60
61 virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& pAddr);
62
63private:
64 IRawDataInputSvc* m_inputSvc;
65 /// Define the interface to raw data cnv
66 PackedRawDataCnvSvc* m_RawDataAccess;
67 /// HltBuilder for packing or unpacking data
68 HltBuilder m_hltBuilder;
69
70};
71
72#endif // RAWDATA_HLTRAW_CNV_H
static const CLID & classID()
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
virtual StatusCode updateObj(IOpaqueAddress *, DataObject *)
override the RawDataBaseCnv version
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Convert the transient object to the requested representation.
StatusCode initialize()
RawDataHltRawCnv(ISvcLocator *svc)