Adding the AliAnalysisGUI class which is the main class that controls the GUI.
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSDD.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSRESPONSESDD_H
2#define ALIITSRESPONSESDD_H
48058160 3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
88cb7938 7
fcf95fc7 8#include <AliITSresponse.h>
9#include <TArrayF.h>
b0f5e3fc 10
fcf95fc7 11/////////////////////////////////////////////////////////////
12// Base settings for the ITS response classes. //
13// The data member of this class are static and set once //
14// for all the modules. //
15/////////////////////////////////////////////////////////////
b0f5e3fc 16
48058160 17class AliITSresponseSDD : public AliITSresponse {
aacedc3e 18 public:
fcf95fc7 19
48058160 20 AliITSresponseSDD();
48058160 21 virtual ~AliITSresponseSDD();
7551c5b2 22
703a4e51 23 virtual void SetElectronics(Int_t p1=1)
24 {fElectronics=p1; /* Electronics: Pascal (1) or OLA (2) */ }
fcf95fc7 25 virtual Int_t Electronics() const {// Electronics: 1 = Pascal; 2 = OLA
48058160 26 return fElectronics;}
aacedc3e 27 virtual void SetMaxAdc(Double_t p1) {// Adc-count saturation value
48058160 28 fMaxAdc=p1;}
4bfbde86 29 virtual Float_t MaxAdc() const {// Get maximum Adc-count value
48058160 30 return fMaxAdc;}
aacedc3e 31 virtual void SetChargeLoss(Double_t p1) {
48058160 32 // Set Linear Charge Loss Steepness // 0.01 for 20%
33 fChargeLoss=p1;}
4bfbde86 34 virtual Float_t ChargeLoss() const {// Get Charge Loss Coefficient
48058160 35 return fChargeLoss;}
aacedc3e 36 virtual void SetDynamicRange(Double_t p1) {// Set Dynamic Range
703a4e51 37 fDynamicRange = p1;}
4bfbde86 38 virtual Float_t DynamicRange() const {// Get Dynamic Range
48058160 39 return fDynamicRange;}
aacedc3e 40 virtual void SetDriftSpeed(Double_t p1) {// Drift velocity
48058160 41 fDriftSpeed=p1;}
4bfbde86 42 virtual Float_t DriftSpeed() const {// drift speed
48058160 43 return fDriftSpeed;}
fcf95fc7 44 virtual void SetParamOptions(const char *opt1,const char *opt2) {
48058160 45 // Parameters: "same" or read from "file"
46 fParam1=opt1; fParam2=opt2;}
703a4e51 47 virtual void ParamOptions(char *opt1,char *opt2) const {// options
48058160 48 strcpy(opt1,fParam1.Data()); strcpy(opt2,fParam2.Data());}
8ba39da9 49
703a4e51 50 virtual Bool_t Do10to8() const {// get 10 to 8 compression option
51 return fBitComp;}
52 void SetZeroSupp (const char *opt) {
53 // Zero-suppression option - could be 1D, 2D or non-ZS
54 fOption=opt;}
55 const char *ZeroSuppOption() const {// Get zero-suppression option
56 return fOption.Data();}
703a4e51 57 // Detector type response methods
aacedc3e 58 virtual void SetNSigmaIntegration(Double_t p1) {
703a4e51 59 // Set number of sigmas over which cluster disintegration is performed
60 fNsigmas=p1;}
4bfbde86 61 virtual Float_t NSigmaIntegration() const {
703a4e51 62 // Get number of sigmas over which cluster disintegration is performed
63 return fNsigmas;}
64 virtual void SetNLookUp(Int_t p1);
65 // Get number of intervals in which the gaussian lookup table is divided
66 virtual Int_t GausNLookUp() const {return fNcomps;}
4bfbde86 67 virtual Float_t GausLookUp(Int_t i) {
fdef5715 68 if (!fGaus) SetNLookUp(fgkNcompsDefault);
69 if(i<0 || i>=fNcomps) return 0.;return fGaus->At(i);
70 }
703a4e51 71
7f1a504b 72 Int_t Convert8to10(Int_t signal) const; //undo 10 to 8 bit SDD compresion
fcf95fc7 73
4bfbde86 74 void SetJitterError(Float_t jitter=20) {
48058160 75 // set Jitter error (20 um for ALICE from beam test measurements 2001)
76 fJitterError=jitter;}
4bfbde86 77 Float_t JitterError() const {// set Jitter error
48058160 78 return fJitterError;}
79 void SetDo10to8(Bool_t bitcomp=kTRUE) {
80 // set the option for 10 to 8 bit compression
81 fBitComp = bitcomp;}
8ba39da9 82
48058160 83 protected:
fcf95fc7 84
703a4e51 85 static const Int_t fgkMaxAdcDefault; // default for fMaxAdc
4bfbde86 86 static const Float_t fgkDynamicRangeDefault; // default for fDynamicRange
87 static const Float_t fgkfChargeLossDefault; // default for fChargeLoss
fcf95fc7 88 static const Float_t fgkDiffCoeffDefault; // default for fDiffCoeff
89 static const Float_t fgkDiffCoeff1Default; // default for fDiffCoeff1
703a4e51 90 static const TString fgkParam1Default; // default for fParam1
91 static const TString fgkParam2Default; // default for fParam2
703a4e51 92 static const TString fgkOptionDefault; // default for fOption
4bfbde86 93 static const Float_t fgkDriftSpeedDefault; // default for fDriftSpeed
94 static const Float_t fgkNsigmasDefault; //default for fNsigmas
703a4e51 95 static const Int_t fgkNcompsDefault; //default for fNcomps
fcf95fc7 96
703a4e51 97
4bfbde86 98 Float_t fJitterError; // jitter error
99 Float_t fDynamicRange; // Set Dynamic Range
100 Float_t fChargeLoss; // Set Linear Coefficient for Charge Loss
101 Float_t fDriftSpeed; // Drift velocity
48058160 102 Int_t fElectronics; // Electronics
4bfbde86 103 Float_t fMaxAdc; // Adc saturation value
104 Float_t fNsigmas; // Number of sigmas over which charge disintegration
fcf95fc7 105 // is performed
48058160 106 TArrayF *fGaus; // Gaussian lookup table for signal generation
107 Int_t fNcomps; // Number of samplings along the gaussian
48058160 108 Bool_t fBitComp; // 10 to 8 bit compression option
109 TString fOption; // Zero-suppresion option (1D, 2D or none)
110 TString fParam1; // Read baselines from file option
111 TString fParam2; // Read compression algo thresholds from file
703a4e51 112
113 private:
703a4e51 114
fcf95fc7 115 AliITSresponseSDD(const AliITSresponseSDD &ob); // copy constructor
116 AliITSresponseSDD& operator=(const AliITSresponseSDD & /* source */); // ass. op.
fa1750f9 117
4bfbde86 118 ClassDef(AliITSresponseSDD,7) // Base response class
50d05d7b 119
120 };
b0f5e3fc 121#endif