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