135 {
136
137 MsgStream log(
msgSvc(),
"HltInfCnv");
138 log << MSG::DEBUG << "HltInfCnv::DataObjectToTObject" << endreq;
139 StatusCode sc=StatusCode::SUCCESS;
140
142 if (!hltInfCnvTds) {
143 log << MSG::ERROR << "Could not downcast to HltInf" << endreq;
144 return StatusCode::FAILURE;
145 }
146
147 DataObject *evt;
150 log << MSG::ERROR << "Could not get HltInf in TDS " << endreq;
151 return StatusCode::FAILURE;
152 }
153
155 if (!devtTds) {
156 log << MSG::ERROR << "HltInfCnv:Could not downcast to TDS HltInf" << endreq;
157 }
158
159 IOpaqueAddress *addr;
161
163
164 const TObject *tHltInf = hltInf->
getHltInf();
165 if (!tHltInf) return sc;
167
174 Int_t ncon = hltInfCnvTds->
getNCON();
175
177
185
186
188 std::vector<Int_t> mdcRoot;
189 std::vector<uint32_t>::iterator it= mdcTds.begin();
190 for(;it!=mdcTds.end();it++){
192 mdcRoot.push_back(
data);
193 }
195
197 std::vector<Int_t> tofRoot;
198 for(it= tofTds.begin();it!=tofTds.end();it++){
200 tofRoot.push_back(
data);
201 }
203
205 std::vector<Int_t> emcRoot;
206 for(it= emcTds.begin();it!=emcTds.end();it++){
208 emcRoot.push_back(
data);
209 }
211
213 std::vector<Int_t> mucRoot;
214 for(it= mucTds.begin();it!=mucTds.end();it++){
216 mucRoot.push_back(
data);
217 }
219
221 std::vector<Int_t> conRoot;
222 for(it= conTds.begin();it!=conTds.end();it++){
224 conRoot.push_back(
data);
225 }
227
229
230 return StatusCode::SUCCESS;
231}
float getTotalEnergy() const
uint32_t getCriteriaTable() const
uint32_t getVersion() const
uint32_t getNumber() const
uint32_t getEventType() const
uint32_t getAlgProcess() const
static THltEvent * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
std::vector< uint32_t > & getDataVec(const Identifier &)
IDataProviderSvc * m_eds
pointer to eventdataservice
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Convert the transient object to the requested representation.
void addHltInf(THltInf *hltInf)
const THltInf * getHltInf() const
void setTotalEnergy(const Double_t etot)
void setVersion(const Int_t i)
void setNCON(const Int_t i)
void setNumber(const Int_t i)
void setEventType(const Int_t i)
void setCriteriaTable(const Int_t i)
void setAlgProcess(const Int_t i)
void setMucData(const vector< Int_t > &vec)
void setMdcData(const vector< Int_t > &vec)
void setTofData(const vector< Int_t > &vec)
void setEmcData(const vector< Int_t > &vec)
void setConData(const vector< Int_t > &vec)
_EXTERN_ std::string Event