82 {
83
84 MsgStream log(
msgSvc(),
"MdcDigiCnv");
85 log << MSG::DEBUG << "MdcDigiCnv::DataObjectToTObject" << endreq;
86 StatusCode sc=StatusCode::SUCCESS;
87
89 if (!mdcDigiColTds) {
90 log << MSG::ERROR << "Could not downcast to MdcDigiCol" << endreq;
91 return StatusCode::FAILURE;
92 }
93
94 DataObject *evt;
97 log << MSG::ERROR << "Could not get DigiEvent in TDS " << endreq;
98 return StatusCode::FAILURE;
99 }
101 if (!devtTds) {
102 log << MSG::ERROR << "MdcDigiCnv:Could not downcast to TDS DigiEvent" << endreq;
103 }
104
105 IOpaqueAddress *addr;
106
107
109
110
111
113
115 if (!m_mdcDigiCol) return sc;
117 MdcDigiCol::const_iterator mdcDigiTds;
118
119 for (mdcDigiTds = mdcDigiColTds->begin(); mdcDigiTds != mdcDigiColTds->end(); mdcDigiTds++) {
120 UInt_t overflow = (*mdcDigiTds)->getOverflow();
121 UInt_t
time = (*mdcDigiTds)->getTimeChannel();
122 UInt_t
charge = (*mdcDigiTds)->getChargeChannel();
123 UInt_t id = (*mdcDigiTds)->getIntId();
124 Int_t trackIndex = (*mdcDigiTds)->getTrackIndex();
125
127
128
133 }
134
135 return StatusCode::SUCCESS;
136}
ObjectVector< MdcDigi > MdcDigiCol
static TDigiEvent * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
IDataProviderSvc * m_eds
pointer to eventdataservice
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Convert the transient object to the requested representation.
void clearMdcDigiCol()
clear the whole array (necessary because of the consts-s)
const TObjArray * getMdcDigiCol() const
retrieve the whole TObjArray of TkrDigi Data
void addMdcDigi(TMdcDigi *digi)
Add a TkrDigi into the TKR data collection.
void setOverflow(const UInt_t overflow)
void initialize(UInt_t id, UInt_t time=0, UInt_t charge=0)
void setTrackIndex(const int trackIndex)
_EXTERN_ std::string Event