]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSresponseSDD.cxx
Upgrade of SDD response class (F. Prino)
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSDD.cxx
index 8dd19cd2128095b27336bd7ad63ce954ab643835..27bb991735e105a36f9644ca5e934c7852577253 100644 (file)
@@ -1,6 +1,6 @@
 /**************************************************************************
  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                         *
+ *                                                                        *
  * Author: The ALICE Off-line Project.                                    *
  * Contributors are mentioned in the code where appropriate.              *
  *                                                                        *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-#include <TString.h>
-
-#include "AliITSresponseSDD.h"
-
-
-//___________________________________________
-ClassImp(AliITSresponseSDD)    
+/* $Id$ */
 
-AliITSresponseSDD::AliITSresponseSDD()
-{
-  // constructor
-   SetMaxAdc();
-   SetDiffCoeff();
-   SetDriftSpeed();
-   SetNSigmaIntegration();
-   SetNLookUp();
-   // SetClock();
-   SetNoiseParam();
-   SetNoiseAfterElectronics();
-   SetElectronics();
-   SetDynamicRange();
-   SetChargeLoss();
-   SetMinVal();
-   SetParamOptions();
-   SetZeroSupp();
-   SetDataType();
-   SetFilenames();
-   SetOutputOption();
-   SetDo10to8();
-   // set the default zero suppression parameters
-   fCPar[0]=0;
-   fCPar[1]=0;
-   fCPar[2]=(Int_t)(fBaseline + 2.*fNoiseAfterEl);
-   fCPar[3]=(Int_t)(fBaseline + 2.*fNoiseAfterEl);
-   fCPar[4]=0;
-   fCPar[5]=0;
-   fCPar[6]=0;
-   fCPar[7]=0;
-}
+//////////////////////////////////////////////////////
+//  Base response class forITS                      //
+//  It is used to set static data members           //
+//  connected to parameters equal for all           //
+//  the modules                                     //
+//                                                  //
+//                                                  //
+//////////////////////////////////////////////////////
 
-AliITSresponseSDD::~AliITSresponseSDD() { 
+#include <TMath.h>
 
-  if(fGaus) delete fGaus;
-
-}
-
-void AliITSresponseSDD::SetCompressParam(Int_t  cp[8])
-{
-  // set compression param
-
-    Int_t i;
-    for (i=0; i<8; i++) {
-       fCPar[i]=cp[i];
-       //printf("\n CompressPar %d %d \n",i,fCPar[i]);
-       
-    }
-}
-void AliITSresponseSDD::GiveCompressParam(Int_t  cp[8])
-{
-  // give compression param
-
-    Int_t i;
-    for (i=0; i<8; i++) {
-       cp[i]=fCPar[i];
-    }
-}
-
-void AliITSresponseSDD::Print()
-{
-  // Print SDD response Parameters
-
-   cout << "**************************************************" << endl;
-   cout << "   Silicon Drift Detector Response Parameters    " << endl;
-   cout << "**************************************************" << endl;
-   cout << "Diffusion Coefficients: " << fDiffCoeff << ", " << fDiffCoeff1 << endl;
-
-   cout << "Hardware compression parameters: " << endl; 
-   for(Int_t i=0; i<8; i++) cout << "fCPar[" << i << "] = " << fCPar[i] << endl;
-   cout << "Noise before electronics (arbitrary units): " << fNoise << endl;
-   cout << "Baseline (ADC units): " << fBaseline << endl;
-   cout << "Noise after electronics (ADC units): " << fNoiseAfterEl << endl;
-
-   cout << "Dynamic Range: " << fDynamicRange << endl;
-   cout << "Charge Loss: " << fChargeLoss << endl;
-   cout << "Temperature: " << fTemperature << endl;
-   cout << "Drift Speed: " << fDriftSpeed << endl;
-   cout << "Electronics (1=PASCAL, 2=OLA): " << fElectronics << endl;
-
-   cout << "N. of Sigma for signal integration: " << fNsigmas << endl;
-   cout << "N. of bins in lookup table: " << fNcomps << endl;
-
-   cout << "Max. ADC Value: " << fMaxAdc << endl;
-   cout << "Min. Value: " << fMinVal << endl;
+#include "AliITSresponseSDD.h"
 
-   cout << "**************************************************" << endl;
-  
+const Float_t AliITSresponseSDD::fgkTimeOffsetDefault = 54.30;
+const Float_t AliITSresponseSDD::fgkADC2keVDefault = 5.243;
 
+ClassImp(AliITSresponseSDD)
 
+//_________________________________________________________________________
+AliITSresponseSDD::AliITSresponseSDD():
+TObject(),
+fTimeOffset(fgkTimeOffsetDefault),
+fADC2keV(fgkADC2keVDefault){
+  // default constructor
 }
 
 
-