155 std::map<Double_t,Int_t> SensorsPos;
160 if(
fTCandArray==0) Fatal(
"TtAliTask::Exec",
"No Points");
173 for(Int_t itr=0;itr<ntcand;++itr){
180 if (SensorsPos.size() < 6) SensorsPos[theHit->GetZ()] =
name;
188 const Int_t sizeMap = SensorsPos.size();
190 Int_t DetNames[sizeMap];
194 if (SensorsPos.size()>=6)
197 for (std::map<Double_t,Int_t>::iterator it=SensorsPos.begin();it!=SensorsPos.end();++it)
199 if (
fEvent < 5) std::cout <<
"position: " << it->first <<
" name: " << (it->second) << std::endl;
201 DetNames[
jj] = it->second;
224 if (SensorsPos.size()==6)
276 for (Int_t it1 = 0 ; it1 < ntcand ; it1++)
284 x[0] = theHit->GetX();
285 y[0] = theHit->GetY();
286 z[0] = theHit->GetZ();
287 Erx[0] = theHit->GetDx();
288 Ery[0] = theHit->GetDy();
289 Erz[0] = theHit->GetDz();
294 x[1] = theHit->GetX();
295 y[1] = theHit->GetY();
296 z[1] = theHit->GetZ();
297 Erx[1] = theHit->GetDx();
298 Ery[1] = theHit->GetDy();
299 Erz[1] = theHit->GetDz();
303 x[2] = theHit->GetX();
304 y[2] = theHit->GetY();
305 z[2] = theHit->GetZ();
306 Erx[2] = theHit->GetDx();
307 Ery[2] = theHit->GetDy();
308 Erz[2] = theHit->GetDz();
313 x[3] = theHit->GetX();
314 y[3] = theHit->GetY();
315 z[3] = theHit->GetZ();
316 Erx[3] = theHit->GetDx();
317 Ery[3] = theHit->GetDy();
318 Erz[3] = theHit->GetDz();
322 x[4] = theHit->GetX();
323 y[4] = theHit->GetY();
324 z[4] = theHit->GetZ();
325 Erx[4] = theHit->GetDx();
326 Ery[4] = theHit->GetDy();
327 Erz[4] = theHit->GetDz();
332 x[5] = theHit->GetX();
333 y[5] = theHit->GetY();
334 z[5] = theHit->GetZ();
335 Erx[5] = theHit->GetDx();
336 Ery[5] = theHit->GetDy();
337 Erz[5] = theHit->GetDz();
355 for (Int_t ww = 0 ; ww < 6 ; ww++)
368 for (Int_t ww = 0 ; ww < 6 ; ww++)
372 if (
TMath::Abs(Erx[ww]) > 0.5) Erx[ww] = 1000000;
373 if (
TMath::Abs(Ery[ww]) > 0.5) Ery[ww] = 1000000;
385 MyFit(x,y,z,Erx,Ery,Erz,x[
fExclBox-1],y[
fExclBox-1],z[
fExclBox-1],DX,DY);
TClonesArray * fTCandArray
void MyFit(Double_t *x, Double_t *y, Double_t *z, Double_t *Erx, Double_t *Ery, Double_t *Erz, Double_t realX, Double_t realY, Double_t realZ, Double_t &DELTAX, Double_t &DELTAY)
Int_t GetSensorID() const