BField is now also read from configuration.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 May 2002 13:07:06 +0000 (13:07 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 May 2002 13:07:06 +0000 (13:07 +0000)
HLT/src/AliL3Transform.cxx
HLT/src/AliL3Transform.h

index a2ba535..fce417e 100644 (file)
@@ -35,6 +35,7 @@
 ClassImp(AliL3Transform)
 
 Double_t AliL3Transform::fBField = 0.2;
+Int_t AliL3Transform::fBFieldFactor = 1;
 Int_t AliL3Transform::fVersion = 0;
 Int_t AliL3Transform::fNTimeBins = 446 ;
 Int_t AliL3Transform::fNRowLow = 64 ;
@@ -444,7 +445,8 @@ void AliL3Transform::Init(const Char_t* path)
   while(!feof(fptr)) {
     fscanf(fptr,"%s",d1);
 
-    if(strcmp(d1,"fNTimeBins")==0){fscanf(fptr,"%s %d %s",d2,&dummy,d3);fNTimeBins=(Int_t)dummy;}
+    if(strcmp(d1,"fBFieldFactor")==0){fscanf(fptr,"%s %d %s",d2,&dummy,d3);fBFieldFactor=(Int_t)dummy;fBField=fBFieldFactor*0.2;}
+    else if(strcmp(d1,"fNTimeBins")==0){fscanf(fptr,"%s %d %s",d2,&dummy,d3);fNTimeBins=(Int_t)dummy;}
     else if(strcmp(d1,"fNRowLow")==0){fscanf(fptr,"%s %d %s",d2,&dummy,d3);fNRowLow=(Int_t)dummy;}    
     if(fNRowLow != 64)
       LOG(AliL3Log::kError,"AliL3Transform::Init","Overflow")
@@ -491,7 +493,6 @@ void AliL3Transform::Init(const Char_t* path)
 
 }
 
-
 Double_t AliL3Transform::GetEta(Float_t *xyz)
 {
   Double_t r3 = sqrt(xyz[0]*xyz[0]+xyz[1]*xyz[1]+xyz[2]*xyz[2]);
index dcce4e9..3d90584 100644 (file)
@@ -8,6 +8,7 @@ class AliL3Transform {
  private:
   
   static Double_t fBField;
+  static Int_t fBFieldFactor;
   static Int_t fNTimeBins;
   static Int_t fNRowLow;
   static Int_t fNRowUp;