BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataHltCnv.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "HltEvent/HltEvent.h"
4#include "RawDataCnv/RawDataAddress.h"
5
6#include "RawDataBaseCnv.h"
7
8extern const CLID& CLID_HltEvent;
9
11public:
12 RawDataHltCnv( ISvcLocator* svc ) : RawDataBaseCnv( svc, classID() ) {}
13
14 static const CLID& classID() { return CLID_HltEvent; }
15
16 StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& pObj ) {
17 // Purpose and Method: This converter will create an empty EventHeader on
18 // the TDS.
19 HltEvent* digi = new HltEvent();
20 // Set fromMc to false
21 digi->initialize( false );
22 pObj = digi;
23 return StatusCode::SUCCESS;
24 }
25
26 StatusCode createRep( DataObject* pObj, IOpaqueAddress*& pAddr ) {
27 // convert Raws in the container into ByteStream
28 std::string nm = pObj->registry()->name();
29 RawDataAddress* addr = new RawDataAddress( classID(), nm, "" );
30 pAddr = addr;
31 return StatusCode::SUCCESS;
32 }
33};
const CLID & CLID_HltEvent
const CLID & CLID_HltEvent
RawDataBaseCnv(long storageType, const CLID &clid, ISvcLocator *svc)
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
RawDataHltCnv(ISvcLocator *svc)
static const CLID & classID()
StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)