146 {
147
148 MsgStream log(
msgSvc(),
"HltInfCnv");
149 log << MSG::DEBUG << "HltInfCnv::DataObjectToTObject" << endreq;
150 StatusCode sc=StatusCode::SUCCESS;
151
153 if (!hltInfCnvTds) {
154 log << MSG::ERROR << "Could not downcast to HltInf" << endreq;
155 return StatusCode::FAILURE;
156 }
157
158 DataObject *evt;
160 if (evt==NULL) {
161 log << MSG::ERROR << "Could not get HltInf in TDS " << endreq;
162 return StatusCode::FAILURE;
163 }
164
166 if (!devtTds) {
167 log << MSG::ERROR << "HltInfCnv:Could not downcast to TDS HltInf" << endreq;
168 }
169
170 IOpaqueAddress *addr;
172
174
175 const TObject *tHltInf = hltInf->
getHltInf();
176 if (!tHltInf) return sc;
178
185 Int_t ncon = hltInfCnvTds->
getNCON();
186
188
196
197
199 std::vector<Int_t> mdcRoot;
200 std::vector<uint32_t>::iterator it= mdcTds.begin();
201 for(;it!=mdcTds.end();it++){
203 mdcRoot.push_back(
data);
204 }
206
208 std::vector<Int_t> cgemRoot;
209 it= cgemTds.begin();
210 for(;it!=cgemTds.end();it++){
212 cgemRoot.push_back(
data);
213 }
215
217 std::vector<Int_t> tofRoot;
218 for(it= tofTds.begin();it!=tofTds.end();it++){
220 tofRoot.push_back(
data);
221 }
223
225 std::vector<Int_t> emcRoot;
226 for(it= emcTds.begin();it!=emcTds.end();it++){
228 emcRoot.push_back(
data);
229 }
231
233 std::vector<Int_t> mucRoot;
234 for(it= mucTds.begin();it!=mucTds.end();it++){
236 mucRoot.push_back(
data);
237 }
239
241 std::vector<Int_t> conRoot;
242 for(it= conTds.begin();it!=conTds.end();it++){
244 conRoot.push_back(
data);
245 }
247
249
250 return StatusCode::SUCCESS;
251}
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 setCgemData(const vector< Int_t > &vec)
void setEmcData(const vector< Int_t > &vec)
void setConData(const vector< Int_t > &vec)
_EXTERN_ std::string Event