74 {
75
76 MsgStream log(
msgSvc(),
"MucDigiCnv");
77 log << MSG::DEBUG << "MucDigiCnv::DataObjectToTObject" << endreq;
78 StatusCode sc=StatusCode::SUCCESS;
79
81 if (!mucDigiColTds) {
82 log << MSG::ERROR << "Could not downcast to MucDigiCol" << endreq;
83 return StatusCode::FAILURE;
84 }
85
86 DataObject *evt;
89 log << MSG::ERROR << "Could not get DigiEvent in TDS " << endreq;
90 return StatusCode::FAILURE;
91 }
92 DigiEvent * devtTds=dynamic_cast<DigiEvent *> (evt);
93 if (!devtTds) {
94 log << MSG::ERROR << "MucDigiCnv:Could not downcast to TDS DigiEvent" << endreq;
95 }
96 IOpaqueAddress *addr;
97
98 m_cnvSvc->getDigiCnv()->createRep(evt,addr);
99 TDigiEvent *recEvt=
m_cnvSvc->getDigiCnv()->getWriteObject();
100
102 if (!m_mucDigiCol) return sc;
104 MucDigiCol::const_iterator mucDigiTds;
105
106 for (mucDigiTds = mucDigiColTds->begin(); mucDigiTds != mucDigiColTds->end(); mucDigiTds++) {
107 UInt_t
time = (*mucDigiTds)->getTimeChannel();
108 UInt_t
charge = (*mucDigiTds)->getChargeChannel();
109 UInt_t id = (*mucDigiTds)->getIntId();
110 Int_t trackIndex = (*mucDigiTds)->getTrackIndex();
111
112 TMucDigi *mucDigiRoot = new TMucDigi();
113
114
118 }
119
120 return StatusCode::SUCCESS;
121}
ObjectVector< MucDigi > MucDigiCol
IDataProviderSvc * m_eds
pointer to eventdataservice
const TObjArray * getMucDigiCol() const
retrieve the whole TObjArray of MucDigi Data
void addMucDigi(TMucDigi *digi)
Add a MucDigi into the MUC Data collection.
void clearMucDigiCol()
clear the whole array
void initialize(UInt_t id, UInt_t time=0, UInt_t charge=0)
void setTrackIndex(const int trackIndex)
_EXTERN_ std::string Event