BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataBaseCnv.h
Go to the documentation of this file.
1#pragma once
2
3#include "GaudiKernel/Converter.h"
4#include "GaudiKernel/DataObject.h"
5#include "GaudiKernel/IOpaqueAddress.h"
6#include "GaudiKernel/IRegistry.h"
7#include "GaudiKernel/SmartDataPtr.h"
8
9#include "EventModel/EventModel.h"
10#include "RawDataCnv/ClassID_temp.h"
11
12#include "RawDataCnvSvc/IRawDataCnvSvc.h"
13#include "RawDataCnvSvc/IRawDataInputSvc.h"
14
15class RawDataBaseCnv : public Converter {
16protected:
17 RawDataBaseCnv( long storageType, const CLID& clid, ISvcLocator* svc )
18 : Converter( storageType, clid, svc ) {}
19 RawDataBaseCnv( ISvcLocator* svc, const CLID& clid )
20 : Converter( PACKEDRAWEVENT_StorageType, clid, svc ) {}
21
22 std::vector<IRawDataCnvSvc::Leaf> m_leaves;
23
26
27public:
28 StatusCode initialize();
29
30 long repSvcType() const { return PACKEDRAWEVENT_StorageType; }
31
32 const long storageType() { return PACKEDRAWEVENT_StorageType; }
33};
34
36 MsgStream log( msgSvc(), "RawDataBaseCnv" );
37
38 auto sc = Converter::initialize();
39 if ( sc.isFailure() )
40 {
41 log << MSG::ERROR << "Failed to initialize Converter" << endmsg;
42 return sc;
43 }
44
45 sc = service( "RawDataCnvSvc", m_cnvSvc );
46 if ( sc.isFailure() )
47 {
48 log << MSG::ERROR << "Failed to retrieve RawDataCnvSvc" << endmsg;
49 return sc;
50 }
51
52 sc = service( "RawDataInputSvc", m_inputSvc );
53 if ( sc.isFailure() )
54 {
55 log << MSG::ERROR << "Failed to retrieve RawDataInputSvc" << endmsg;
56 return sc;
57 }
58
59 return StatusCode::SUCCESS;
60}
IMessageSvc * msgSvc()
std::vector< IRawDataCnvSvc::Leaf > m_leaves
RawDataBaseCnv(ISvcLocator *svc, const CLID &clid)
IRawDataCnvSvc * m_cnvSvc
long repSvcType() const
const long storageType()
IRawDataInputSvc * m_inputSvc
RawDataBaseCnv(long storageType, const CLID &clid, ISvcLocator *svc)
StatusCode initialize()