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