78 MsgStream log(
msgSvc(), name());
79 log << MSG::INFO <<
"in execute()" << endreq;
82 StatusCode sc = m_evtSvc->registerObject(
"/Event/Digi",aDigiEvent);
83 if(sc!=StatusCode::SUCCESS) {
84 std::cout<<
"Could not register DigiEvent" <<std::endl;
95 m_mdcCnv->convert(mdcBuf, mdcDigiCol);
103 StatusCode scMdc = m_evtSvc->registerObject(
"/Event/Digi/MdcDigiCol", mdcDigiCol);
104 if( scMdc!=StatusCode::SUCCESS ) {
105 std::cout<<
"Could not register MDC digi collection" <<std::endl;
117 m_tofCnv->convert(tofBuf, etfBuf, tofDigiCol);
134 StatusCode scTof = m_evtSvc->registerObject(
"/Event/Digi/TofDigiCol", tofDigiCol);
135 if( scTof!=StatusCode::SUCCESS ) {
136 std::cout<<
"Could not register TOF digi collection" <<std::endl;
145 m_emcCnv->convert(emcBuf, emcDigiCol);
147 StatusCode scEmc = m_evtSvc->registerObject(
"/Event/Digi/EmcDigiCol", emcDigiCol);
148 if( scEmc!=StatusCode::SUCCESS ) {
149 std::cout<<
"Could not register EMC digi collection" <<std::endl;
158 m_mucCnv->convert(mucBuf, mucDigiCol);
160 StatusCode scMuc = m_evtSvc->registerObject(
"/Event/Digi/MucDigiCol", mucDigiCol);
161 if( scMuc!=StatusCode::SUCCESS ) {
162 std::cout<<
"Could not register MUC digi collection" <<std::endl;
166 m_raw_event->reset();
168 return StatusCode::SUCCESS;
174 const uint32_t* fragment;
183 std::cerr << std::endl <<
"Uncaught unknown exception" << std::endl;
189 for (
int robi = 0; robi < nrobs; robi++) {
192 uint32_t* dataptr =
NULL;
195 source_id_number <<= 8;
196 source_id_number >>= 24;
197 switch(source_id_number) {
199 m_raw_event->addReMdcDigi(dataptr, rob.
rod_ndata());
202 m_raw_event->addReEmcDigi(dataptr, rob.
rod_ndata());
205 m_raw_event->addReTofDigi(dataptr, rob.
rod_ndata());
208 m_raw_event->addReMucDigi(dataptr, rob.
rod_ndata());
211 m_raw_event->addReEtfDigi(dataptr, rob.
rod_ndata());
215 return StatusCode::SUCCESS;