147 {
148
149 MsgStream log(
msgSvc(),
"RecTofTrackCnv");
150 log << MSG::DEBUG << "RecTofTrackCnv::DataObjectToTObject" << endreq;
151 StatusCode sc=StatusCode::SUCCESS;
152
154 if (!recTofTrackColTds) {
155 log << MSG::ERROR << "Could not downcast to TofTrackCol" << endreq;
156 return StatusCode::FAILURE;
157 }
158
159 DataObject *evt;
161 if (evt==NULL) {
162 log << MSG::ERROR << "Could not get RecEvent in TDS " << endreq;
163 return StatusCode::FAILURE;
164 }
165
167 if (!devtTds) {
168 log << MSG::ERROR << "RecMucTrackCnv:Could not downcast to TDS DigiEvent" << endreq;
169 }
170
171 IOpaqueAddress *addr;
172
175
177 if (!m_recTofTrackCol) return sc;
179 RecTofTrackCol::const_iterator recTofTrackTds;
180
181 for (recTofTrackTds = recTofTrackColTds->begin(); recTofTrackTds != recTofTrackColTds->end(); recTofTrackTds++) {
182
183 Int_t tofTrackID = (*recTofTrackTds)->tofTrackID();
184 Int_t trackID = (*recTofTrackTds)->trackID();
185 Int_t tofID = (*recTofTrackTds)->tofID();
186 UInt_t status = (*recTofTrackTds)->status();
187 Double_t path = (*recTofTrackTds)->path();
188 Double_t zrhit = (*recTofTrackTds)->zrhit();
189 Double_t ph = (*recTofTrackTds)->ph();
190 Double_t tof = (*recTofTrackTds)->tof();
191 Double_t errtof = (*recTofTrackTds)->errtof();
192 Double_t beta = (*recTofTrackTds)->beta();
193 Double_t texpElectron = (*recTofTrackTds)->texpElectron();
194 Double_t texpMuon = (*recTofTrackTds)->texpMuon();
195 Double_t texpPion = (*recTofTrackTds)->texpPion();
196 Double_t texpKaon = (*recTofTrackTds)->texpKaon();
197 Double_t texpProton = (*recTofTrackTds)->texpProton();
198 Double_t toffsetElectron = (*recTofTrackTds)->toffsetElectron();
199 Double_t toffsetMuon = (*recTofTrackTds)->toffsetMuon();
200 Double_t toffsetPion = (*recTofTrackTds)->toffsetPion();
201 Double_t toffsetKaon = (*recTofTrackTds)->toffsetKaon();
202 Double_t toffsetProton = (*recTofTrackTds)->toffsetProton();
203 Double_t toffsetAntiProton = (*recTofTrackTds)->toffsetAntiProton();
204 Double_t sigmaElectron = (*recTofTrackTds)->sigmaElectron();
205 Double_t sigmaMuon = (*recTofTrackTds)->sigmaMuon();
206 Double_t sigmaPion = (*recTofTrackTds)->sigmaPion();
207 Double_t sigmaKaon = (*recTofTrackTds)->sigmaKaon();
208 Double_t sigmaProton = (*recTofTrackTds)->sigmaProton();
209 Double_t sigmaAntiProton = (*recTofTrackTds)->sigmaAntiProton();
210 Int_t quality = (*recTofTrackTds)->quality();
211 Double_t t0 = (*recTofTrackTds)->t0();
212 Double_t errt0 = (*recTofTrackTds)->errt0();
213 Double_t errz = (*recTofTrackTds)->errz();
214 Double_t phi = (*recTofTrackTds)->phi();
215 Double_t errphi = (*recTofTrackTds)->errphi();
216 Double_t
energy = (*recTofTrackTds)->energy();
217 Double_t errenergy = (*recTofTrackTds)->errenergy();
218
220
221
226 recTofTrackRoot->
setPath(path);
228 recTofTrackRoot->
setPh(ph);
229 recTofTrackRoot->
setTof(tof);
231 recTofTrackRoot->
setBeta(beta);
250 recTofTrackRoot->
setT0(t0);
252 recTofTrackRoot->
setErrZ(errz);
253 recTofTrackRoot->
setPhi(phi);
257
259
260 }
261
262 return StatusCode::SUCCESS;
263}
************Class m_ypar INTEGER m_KeyWgt INTEGER m_nphot INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
ObjectVector< RecTofTrack > RecTofTrackCol
static TRecTrackEvent * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
RecTrackCnv * getRecTrackCnv()
IDataProviderSvc * m_eds
pointer to eventdataservice
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Convert the transient object to the requested representation.
void setTexpElectron(Double_t texpe)
void setToffsetAntiProton(Double_t topb)
void setSigmaKaon(Double_t sk)
void setTof(Double_t tof)
void setTrackID(Int_t trackID)
void setTexpProton(Double_t texpp)
void setToffsetKaon(Double_t tok)
void setSigmaElectron(Double_t se)
void setEnergy(Double_t energy)
void setStatus(UInt_t status)
void setToffsetElectron(Double_t toe)
void setTexpKaon(Double_t texpk)
void setToffsetMuon(Double_t tomu)
void setQuality(Int_t quality)
void setSigmaPion(Double_t spi)
void setErrZ(Double_t errz)
void setErrTof(Double_t etof)
void setTofID(Int_t tofID)
void setSigmaAntiProton(Double_t spb)
void setToffsetPion(Double_t topi)
void setBeta(Double_t beta)
void setSigmaMuon(Double_t smu)
void setPhi(Double_t phi)
void setErrPhi(Double_t errphi)
void setTofTrackID(Int_t tofTrackID)
void setPath(Double_t path)
void setErrEnergy(Double_t errenergy)
void setTexpMuon(Double_t texpmu)
void setToffsetProton(Double_t top)
void setSigmaProton(Double_t sp)
void setZrHit(Double_t zrhit)
void setTexpPion(Double_t texppi)
void setErrT0(Double_t errt0)
void clearTofTrackCol()
clear the whole array
const TObjArray * getTofTrackCol() const
retrieve the whole TObjArray of TofTrack Data
void addTofTrack(TRecTofTrack *Track)
Add a TofTrack into the TOF Data collection.
_EXTERN_ std::string Event