]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDCommonParam.cxx
Move sampling frequency to common params
[u/mrichter/AliRoot.git] / TRD / AliTRDCommonParam.cxx
index 7b3c68bec2c09e7685bc89f777213e8a38c361ab..aa025f39305d1f95a1d12c98faf6e2659b27e868 100644 (file)
@@ -63,7 +63,8 @@ void AliTRDCommonParam::Terminate()
 {
   //
   // Singleton implementation
-  // Deletes the instance of this class and sets the terminated flag, instances cannot be requested anymore
+  // Deletes the instance of this class and sets the terminated flag,
+  // instances cannot be requested anymore
   // This function can be called several times.
   //
   
@@ -79,8 +80,8 @@ void AliTRDCommonParam::Terminate()
 //_____________________________________________________________________________
 AliTRDCommonParam::AliTRDCommonParam()
   :TObject()
-  ,fField(0)
   ,fExBOn(kFALSE)
+  ,fSamplingFrequency(0.0)
   ,fPadPlaneArray(0)
 {
   //
@@ -99,19 +100,10 @@ void AliTRDCommonParam::Init()
   //
   
   // E x B effects
-  fExBOn          = kTRUE;
-
-  // The magnetic field strength in Tesla
-  fField = AliTracker::GetBz() * 0.1; 
-
-  if (TMath::Abs(fField) < 1e-5) {
-    Info("Init", "MC B field ... ");
-    Double_t x[3] = { 0.0, 0.0, 0.0 };
-    Double_t b[3];      
-    gAlice->Field(x,b);  // b[] is in kilo Gauss        
-    fField = b[2] * 0.1; // Tesla
-  }
+  fExBOn             = kTRUE;
 
+  // Sampling Frequency in MHz
+  fSamplingFrequency = 10.0;
   
   // ----------------------------------------------------------------------------
   // The pad planes
@@ -146,8 +138,8 @@ AliTRDCommonParam::~AliTRDCommonParam()
 //_____________________________________________________________________________
 AliTRDCommonParam::AliTRDCommonParam(const AliTRDCommonParam &p)
   :TObject(p)
-  ,fField(p.fField)
   ,fExBOn(p.fExBOn)
+  ,fSamplingFrequency(p.fSamplingFrequency)
   ,fPadPlaneArray(0)
 {
   //
@@ -183,8 +175,8 @@ void AliTRDCommonParam::Copy(TObject &p) const
     return;
   }  
 
-  target->fExBOn = fExBOn;
-  target->fField = fField;
+  target->fExBOn             = fExBOn;
+  target->fSamplingFrequency = fSamplingFrequency;
 
 }