#include <RawDataMdcDigiCnv.hpp>
Definition at line 13 of file RawDataMdcDigiCnv.hpp.
◆ RawDataMdcDigiCnv()
| RawDataMdcDigiCnv::RawDataMdcDigiCnv |
( |
ISvcLocator * | svc | ) |
|
|
inline |
Definition at line 22 of file RawDataMdcDigiCnv.hpp.
RawDataBaseCnv(long storageType, const CLID &clid, ISvcLocator *svc)
static const CLID & classID()
◆ ~RawDataMdcDigiCnv()
| RawDataMdcDigiCnv::~RawDataMdcDigiCnv |
( |
| ) |
|
|
inline |
◆ classID()
| const CLID & RawDataMdcDigiCnv::classID |
( |
| ) |
|
|
inlinestatic |
◆ createObj()
| StatusCode RawDataMdcDigiCnv::createObj |
( |
IOpaqueAddress * | pAddr, |
|
|
DataObject *& | pObj ) |
|
inline |
Definition at line 48 of file RawDataMdcDigiCnv.hpp.
48 {
49
50
51
52
54 pObj = digiCol;
55
57
58 if ( evt == NULL )
59 {
60
61 return StatusCode::FAILURE;
62 }
63
65 m_cnv->setRunId( runId );
66
67 const BufferHolder& mdcBuf = evt->
getMdcBuf();
68
69 return m_cnv->convert( mdcBuf, digiCol );
70 }
ObjectVector< MdcDigi > MdcDigiCol
const BufferHolder & getMdcBuf() const
const RawEventHeader & eventHeader() const
IRawDataInputSvc * m_inputSvc
◆ createRep()
| StatusCode RawDataMdcDigiCnv::createRep |
( |
DataObject * | pObj, |
|
|
IOpaqueAddress *& | pAddr ) |
|
inline |
Definition at line 72 of file RawDataMdcDigiCnv.hpp.
72 {
73
74 MsgStream log(
msgSvc(),
"RawDataMdcDigiCnv" );
75
77 if ( re == 0 )
78 {
79 log << " get RawEvent failed !" << endmsg;
80 return StatusCode::FAILURE;
81 }
82
84 if ( digiCol == 0 )
85 {
86 log << "no MdcDigiCol found" << endmsg;
87 return StatusCode::FAILURE;
88 }
89
90 return m_cnv->convert( digiCol, re );
91 }
eformat::write::FullEventFragment WriteRawEvent
IRawDataCnvSvc * m_cnvSvc
_EXTERN_ std::string MdcDigiCol
◆ initialize()
| StatusCode RawDataMdcDigiCnv::initialize |
( |
| ) |
|
|
inlineoverride |
Definition at line 25 of file RawDataMdcDigiCnv.hpp.
25 {
26 MsgStream log(
msgSvc(),
"RawDataMdcDigiCnv" );
27 log << MSG::INFO << "RawDataMdcDigiCnv::initialize()" << endmsg;
28
30 if ( sc.isFailure() )
31 {
32 log << MSG::ERROR << "Failed to initialize RawDataBaseCnv" << endmsg;
33 return sc;
34 }
35
36 auto jobSvc = serviceLocator()->service<Gaudi::Interfaces::IOptionsSvc>( "JobOptionsSvc" );
37 Gaudi::Parsers::parse( m_runFrom, jobSvc->get( "RawDataMdcDigiCnv.ExWireFromRun", "0" ) );
38 Gaudi::Parsers::parse( m_runTo, jobSvc->get( "RawDataMdcDigiCnv.ExWireToRun", "999999" ) );
39
41 m_cnv->init(
m_inputSvc->config(
"MDCID_FIX" ) );
42
43 return StatusCode::SUCCESS;
44 }
static MdcConverter * instance(int runMode=2)
The documentation for this class was generated from the following file: