]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Set PASCAL parameters to ALICE conditions
authormariana <mariana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 17 Mar 2001 15:15:35 +0000 (15:15 +0000)
committermariana <mariana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 17 Mar 2001 15:15:35 +0000 (15:15 +0000)
ITS/AliITSetfSDD.cxx
ITS/AliITSetfSDD.h

index 2b87db07930f4c9a33ff41fb89b793edf3d331e3..7e397a85378f4edcb90137715d06b70849d7ec1c 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <iostream.h>
 #include <TMath.h>
+#include <TString.h>
 #include "AliITSetfSDD.h"
 
 ////////////////////////////////////////////////////////////////////////
@@ -33,16 +34,21 @@ Int_t ppower(Int_t b, Int_t e) {
   return power;
 }
 
-AliITSetfSDD::AliITSetfSDD(Double_t timestep)
+AliITSetfSDD::AliITSetfSDD(Double_t timestep, Int_t amplif)
 {
   // sampling time in ns
 
+  fTimeDelay = 53.5;
+  if(amplif == 2) fTimeDelay = 35.5;
   fSamplingTime = timestep;
 
   fT0 = 0.;
   fDf = ppower(10,9)/(kMaxNofSamples*fSamplingTime);
-  fA0 = 9000.;
+  fA0 = 16500.; // AL: 16500.;  // TB: 24000.; // 26000.; // 24000.; // 18000.; 
 
+  if(amplif == 2) fA0 = 24000.;
+  cout << "fA0: " << fA0 << endl;
+  cout << "fTimeDelay: " << fTimeDelay << endl;
   Int_t i,j;
   for(i=0; i<kMaxNofPoles; i++) {
     fZeroM[i] = 0.;
@@ -52,14 +58,20 @@ AliITSetfSDD::AliITSetfSDD(Double_t timestep)
     fPoleR[i] = 0.;
     fPoleI[i] = 0.;
   }
+  // Alice
+
   fPoleM[0] = 1.;
-  fPoleR[0] = -2100000.;
-  fPoleI[0] = fPoleR[0];
+  fPoleR[0] = -4140000.; // AL: -4140000.; // TB: -3000000.; // -3750000.; // -3500000; // -3000000.; 
+  fPoleI[0] = 0.; // AL: 0.; // TB: 4000000.; // 3750000.; // 3500000.; // 3000000.; 
+  if(amplif == 2) {
+    fPoleR[0] = -3000000.;
+    fPoleI[0] = 4000000.;
+  }
   fPoleM[1] = 1.;
-  fPoleR[1] = -2100000.;
-  fPoleI[1] = -fPoleR[1];
+  fPoleR[1] = fPoleR[0];
+  fPoleI[1] = -fPoleI[0]; 
 
-   // Compute Transfer Function
+  // Compute Transfer Function
 
   Double_t PI = acos(-1.);
   for(i=0; i<=kMaxNofSamples/2; i++) {
@@ -128,6 +140,7 @@ AliITSetfSDD::AliITSetfSDD(Double_t timestep)
 
 void AliITSetfSDD::PrintElectronics()
 {
+  cout << "Time Delay " << fTimeDelay << endl;
   cout << "Sampling Time " << fSamplingTime << endl;
   cout << "Number of Time Samples " << kMaxNofSamples << endl;
   cout << "fT0 " << fT0 << endl;
index 1bc76f9f1f0f9791fdcb1a873fa0da1cae69f23f..f204d0aa8766c31ea1c8c89ad7fe3c16771f634d 100644 (file)
@@ -8,6 +8,8 @@
 static const Int_t kMaxNofPoles = 5;
 static const Int_t kMaxNofSamples = 1024;
 
+class TString;
+
 class AliITSetfSDD : public TObject {
 
 ////////////////////////////////////////////////////////////////////////
@@ -22,18 +24,19 @@ class AliITSetfSDD : public TObject {
  public:
     
   AliITSetfSDD() {};                 // default constructor
-  AliITSetfSDD(Double_t timestep);
+  AliITSetfSDD(Double_t timestep, Int_t amplif);
   ~AliITSetfSDD() {;}  
   Double_t GetWeightReal(Int_t n) { return fWR[n]; }
   Double_t GetWeightImag(Int_t n) { return fWI[n]; }
   Double_t GetTraFunReal(Int_t n) { return fTfR[n]; }
   Double_t GetTraFunImag(Int_t n) { return fTfI[n]; }
   Int_t GetSamples() { return kMaxNofSamples; }
+  Float_t GetTimeDelay() { return fTimeDelay; }
   void PrintElectronics();          // Print Electronics parameters  
 
  private:
 
-  
+  Float_t  fTimeDelay;         //  Time delay caused by the amplifier shaping
   Double_t fSamplingTime;      //
   Double_t fT0;                //
   Double_t fDf;                //