]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDCommonParam.cxx
MultiAODInputHandler: an input handler for aod event muxing.
[u/mrichter/AliRoot.git] / TRD / AliTRDCommonParam.cxx
index 7b3c68bec2c09e7685bc89f777213e8a38c361ab..96fa80b59c25795ef2bf1e13eee121c3e864806a 100644 (file)
@@ -30,8 +30,6 @@
 #include "AliRun.h"
 
 #include "AliTRDCommonParam.h"
-#include "AliTRDpadPlane.h"
-
 
 ClassImp(AliTRDCommonParam)
 
@@ -63,7 +61,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,9 +78,8 @@ void AliTRDCommonParam::Terminate()
 //_____________________________________________________________________________
 AliTRDCommonParam::AliTRDCommonParam()
   :TObject()
-  ,fField(0)
   ,fExBOn(kFALSE)
-  ,fPadPlaneArray(0)
+  ,fSamplingFrequency(0.0)
 {
   //
   // Default constructor
@@ -91,6 +89,18 @@ AliTRDCommonParam::AliTRDCommonParam()
 
 }
 
+//_____________________________________________________________________________
+AliTRDCommonParam::AliTRDCommonParam(TRootIoCtor *)
+  :TObject()
+  ,fExBOn(0)
+  ,fSamplingFrequency(0.0)
+{
+  //
+  // IO constructor
+  //
+
+}
+
 //_____________________________________________________________________________
 void AliTRDCommonParam::Init()
 {
@@ -99,32 +109,10 @@ void AliTRDCommonParam::Init()
   //
   
   // E x B effects
-  fExBOn          = kTRUE;
-
-  // The magnetic field strength in Tesla
-  fField = AliTracker::GetBz() * 0.1; 
+  fExBOn             = kTRUE;
 
-  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
-  }
-
-  
-  // ----------------------------------------------------------------------------
-  // The pad planes
-  // ----------------------------------------------------------------------------
-  
-  fPadPlaneArray = new TObjArray(kNplan * kNcham);
-  
-  for (Int_t iplan = 0; iplan < kNplan; iplan++) {
-    for (Int_t icham = 0; icham < kNcham; icham++) {
-      Int_t ipp = iplan + icham * kNplan;
-      fPadPlaneArray->AddAt(new AliTRDpadPlane(iplan,icham),ipp);
-    }
-  }
+  // Sampling Frequency in MHz
+  fSamplingFrequency = 10.0;
 
 }
 
@@ -135,20 +123,13 @@ AliTRDCommonParam::~AliTRDCommonParam()
   // Destructor
   //
   
-  if (fPadPlaneArray) {
-    fPadPlaneArray->Delete();
-    delete fPadPlaneArray;
-    fPadPlaneArray = 0;
-  }
-
 }
 
 //_____________________________________________________________________________
 AliTRDCommonParam::AliTRDCommonParam(const AliTRDCommonParam &p)
   :TObject(p)
-  ,fField(p.fField)
   ,fExBOn(p.fExBOn)
-  ,fPadPlaneArray(0)
+  ,fSamplingFrequency(p.fSamplingFrequency)
 {
   //
   // Copy constructor
@@ -183,63 +164,7 @@ void AliTRDCommonParam::Copy(TObject &p) const
     return;
   }  
 
-  target->fExBOn = fExBOn;
-  target->fField = fField;
-
-}
-
-//_____________________________________________________________________________
-AliTRDpadPlane *AliTRDCommonParam::GetPadPlane(Int_t p, Int_t c) const
-{
-  //
-  // Returns the pad plane for a given plane <p> and chamber <c> number
-  //
-
-  Int_t ipp = p + c * kNplan;
-  return ((AliTRDpadPlane *) fPadPlaneArray->At(ipp));
-
-}
-
-//_____________________________________________________________________________
-Int_t AliTRDCommonParam::GetRowMax(Int_t p, Int_t c, Int_t /*s*/) const
-{
-  //
-  // Returns the number of rows on the pad plane
-  //
-
-  return GetPadPlane(p,c)->GetNrows();
-
-}
-
-//_____________________________________________________________________________
-Int_t AliTRDCommonParam::GetColMax(Int_t p) const
-{
-  //
-  // Returns the number of rows on the pad plane
-  //
-
-  return GetPadPlane(p,0)->GetNcols();
-
-}
-
-//_____________________________________________________________________________
-Double_t AliTRDCommonParam::GetRow0(Int_t p, Int_t c, Int_t /*s*/) const
-{
-  //
-  // Returns the position of the border of the first pad in a row
-  //
-
-  return GetPadPlane(p,c)->GetRow0();
-
-}
-
-//_____________________________________________________________________________
-Double_t AliTRDCommonParam::GetCol0(Int_t p) const
-{
-  //
-  // Returns the position of the border of the first pad in a column
-  //
-
-  return GetPadPlane(p,0)->GetCol0();
+  target->fExBOn             = fExBOn;
+  target->fSamplingFrequency = fSamplingFrequency;
 
 }