]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/src/AliL3ConfMapFit.cxx
Getting bfield from common file; AliL3Defs.h
[u/mrichter/AliRoot.git] / HLT / src / AliL3ConfMapFit.cxx
index 6e6b21a389f6adfd35cc9c0cdbca7bf74a5a63e2..4478370182a3536b50749f9161eff0eba3f5df28 100644 (file)
@@ -1,12 +1,18 @@
+//$Id$
+
+// Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
+//*-- Copyright &copy ASV 
+
 #include <math.h>
 
+#include "AliL3Defs.h"
 #include "AliL3Logging.h"
 #include "AliL3ConfMapFit.h"
 #include "AliL3Vertex.h"
 #include "AliL3ConfMapTrack.h"
 #include "AliL3ConfMapPoint.h"
 
-//_______________________________
+//_____________________________________________________________
 // AliL3ConfMapFit
 //
 // Fit class for conformal mapping tracking
@@ -21,7 +27,6 @@ AliL3ConfMapFit::AliL3ConfMapFit(AliL3ConfMapTrack *track,AliL3Vertex *vertex)
   fTrack = track;
   fVertex = vertex;
   BFACT = 0.0029980;
-  bField = 0.2;
   
 }
 
@@ -332,7 +337,7 @@ Int_t AliL3ConfMapFit::FitCircle()
 //
 //   Get charge
 //
-  Double_t q = ( ( yrrav < 0 ) ? 1 : -1 ) ;
+  Int_t q = ( ( yrrav < 0 ) ? 1 : -1 ) ;
 
   fTrack->SetCharge(q);
   
@@ -368,7 +373,7 @@ Int_t AliL3ConfMapFit::FitCircle()
   psi  = psi + q * 0.5F * pi ;
   if ( psi < 0 ) psi = psi + 2*pi;
   
-  pt   = (Double_t)(BFACT * bField * radius ) ;
+  pt   = (Double_t)(BFACT * BField * radius ) ;
   fTrack->SetPsi(psi);
   fTrack->SetPt(pt);
 
@@ -398,7 +403,7 @@ Int_t AliL3ConfMapFit::FitLine ( )
   //find sum , sums ,sumz, sumss 
   // 
   Double_t dx, dy ;
-  Double_t radius = (Double_t)(fTrack->GetPt() / ( BFACT * bField ) ) ;
+  Double_t radius = (Double_t)(fTrack->GetPt() / ( BFACT * BField ) ) ;
 
   //TObjArray *hits = fTrack->GetHits();
   //Int_t num_of_hits = fTrack->GetNumberOfPoints();