Some additional changes related to the previous changes. AliL3Transform
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughTrack.cxx
index ba455793fbc8b10cb80a76e62d7aeb839adda556..9baff670de76970785e76e7f1f06ef90eb2a8ebb 100644 (file)
@@ -24,7 +24,6 @@ AliL3HoughTrack::AliL3HoughTrack()
   
   fWeight = 0;
   fMinDist=0;
-  fTransform = new AliL3Transform();
   fDLine = 0;
   fPsiLine = 0;
   fIsHelix = true;
@@ -34,9 +33,7 @@ AliL3HoughTrack::AliL3HoughTrack()
 
 AliL3HoughTrack::~AliL3HoughTrack()
 {
-  //Destructor
-  if(fTransform)
-    delete fTransform;
+  
 }
 
 void AliL3HoughTrack::Set(AliL3Track *track)
@@ -46,6 +43,7 @@ void AliL3HoughTrack::Set(AliL3Track *track)
   SetTrackParameters(tpt->GetKappa(),tpt->GetPhi0(),tpt->GetWeight());
   SetEtaIndex(tpt->GetEtaIndex());
   SetEta(tpt->GetEta());
+  SetTgl(tpt->GetTgl());
   SetPsi(tpt->GetPsi());
   SetCenterX(tpt->GetCenterX());
   SetCenterY(tpt->GetCenterY());
@@ -54,6 +52,7 @@ void AliL3HoughTrack::Set(AliL3Track *track)
   SetCharge(tpt->GetCharge());
   SetRowRange(tpt->GetFirstRow(),tpt->GetLastRow());
   SetSlice(tpt->GetSlice());
+  SetNHits(1);
   return;
 
   fWeight = tpt->GetWeight();
@@ -190,8 +189,10 @@ void AliL3HoughTrack::SetTrackParameters(Double_t kappa,Double_t phi,Int_t weigh
   Double_t yc = GetFirstPointY() - GetRadius() * sin(trackPhi0) ;
   SetCenterX(xc);
   SetCenterY(yc);
+  SetNHits(1); //just for the trackarray IO
   fIsHelix = true;
   
+  
 }
 
 void AliL3HoughTrack::SetLineParameters(Double_t psi,Double_t D,Int_t weight,Int_t *rowrange,Int_t ref_row)
@@ -201,6 +202,7 @@ void AliL3HoughTrack::SetLineParameters(Double_t psi,Double_t D,Int_t weight,Int
 
   //Transform line parameters to coordinate system of slice:
   
+  /*
   D = D + fTransform->Row2X(ref_row)*cos(psi);
 
   fDLine = D;
@@ -209,7 +211,7 @@ void AliL3HoughTrack::SetLineParameters(Double_t psi,Double_t D,Int_t weight,Int
   SetNHits(weight);
   SetRowRange(rowrange[0],rowrange[1]);
   fIsHelix = false;
-
+  */
 }
 
 void AliL3HoughTrack::SetBestMCid(Int_t mcid,Double_t min_dist)
@@ -226,7 +228,7 @@ void AliL3HoughTrack::SetBestMCid(Int_t mcid,Double_t min_dist)
 void AliL3HoughTrack::GetLineCrossingPoint(Int_t padrow,Double_t *xy)
 {
   
-
+  /*
   if(fIsHelix)
     {
       printf("AliL3HoughTrack::GetLineCrossingPoint : Track is not a line\n");
@@ -240,7 +242,7 @@ void AliL3HoughTrack::GetLineCrossingPoint(Int_t padrow,Double_t *xy)
   Double_t yhit = a*xhit + b;
   xy[0] = xhit;
   xy[1] = yhit;
-
+  */
 }
 
 /*