]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponse.h
Updated Linkdef and libTOF.pkg
[u/mrichter/AliRoot.git] / ITS / AliITSresponse.h
1 #ifndef ALIITSRESPONSE_H
2 #define ALIITSRESPONSE_H
3
4
5 #include <TObject.h>
6
7 #include "AliITSsegmentation.h"
8
9 class TF1;
10 class TString;
11 class AliITSgeom;
12
13 //----------------------------------------------
14 //
15 // ITS response virtual base class
16 //
17 class AliITSresponse :
18 public TObject {
19  public:
20
21
22     virtual ~AliITSresponse() {}
23     //
24     // Configuration methods
25     //
26
27     // Set Electronics
28     virtual void    SetElectronics(Int_t p1) {}
29     // Get Electronics
30     virtual Int_t Electronics()  {return 0;}                       
31
32     // Set maximum Adc-count value
33     virtual void    SetMaxAdc(Float_t p1) {}
34     // Get maximum Adc-count value
35     virtual Float_t MaxAdc()  {return 0.;}                       
36
37     // Set maximum Adc-top value
38     virtual void    SetDynamicRange(Float_t p1) {}
39     // Get maximum Adc-top value
40     virtual Float_t DynamicRange()  {return 0.0;}                       
41
42     // Set Charge Loss Linear Coefficient
43     virtual void    SetChargeLoss(Float_t p1) {}
44     // Get Charge Loss Linear Coefficient
45     virtual Float_t ChargeLoss()  {return 0.0;}                       
46
47     // Diffusion coefficient
48     virtual void    SetDiffCoeff(Float_t, Float_t) {}
49     // Get diffusion coefficients
50     virtual void    DiffCoeff(Float_t &,Float_t &) {}
51
52     // Temperature
53     virtual void    SetTemperature(Float_t) {}
54     // Get temperature
55     virtual Float_t Temperature() {return 0.;}  
56     // Type of data - real or simulated
57     virtual void    SetDataType(const char *data) {}
58     // Get data type
59     virtual const char  *DataType() const {return "";} 
60
61
62  
63     // Set parameters options: "same" or read from "file" or "SetInvalid" or ...
64     virtual void   SetParamOptions(const char* opt1,const char* opt2) {}
65     // Set noise parameters 
66     virtual void   SetNoiseParam(Float_t, Float_t) {}
67     // Number of parameters to be set
68     virtual  void   SetNDetParam(Int_t) {}
69     // Set detector parameters: gain, coupling ...
70     virtual  void   SetDetParam(Float_t *) {}
71
72     // Parameters options
73     virtual void   ParamOptions(char *,char*) {}
74     virtual Int_t  NDetParam() {return 0;}
75     virtual void   GetDetParam(Float_t *) {} 
76     virtual void   GetNoiseParam(Float_t&, Float_t&) {}
77
78     // Zero-suppression option - could be 1D, 2D or non-ZeroSuppressed 
79     virtual void   SetZeroSupp(const char* opt) {}
80     // Get zero-suppression option
81     virtual const char *ZeroSuppOption() const {return "";}
82      // Set thresholds
83     virtual void   SetThresholds(Float_t, Float_t) {}
84     virtual void   Thresholds(Float_t &, Float_t &) {}
85     // Set min val
86     virtual void   SetMinVal(Int_t) {};
87     virtual Int_t  MinVal() {return 0;};
88
89     // Set filenames
90     virtual void   SetFilenames(const char *f1,const char *f2,const char *f3) {}
91     // Filenames
92     virtual void   Filenames(char*,char*,char*) {}
93
94
95     virtual Float_t DriftSpeed() {return 0.;}
96     virtual Bool_t  OutputOption() {return kFALSE;}
97     virtual Bool_t  Do10to8() {return kTRUE;}
98     virtual void    GiveCompressParam(Int_t *x) {}
99
100     //  
101     // Detector type response methods
102     // Set number of sigmas over which cluster disintegration is performed
103     virtual void    SetNSigmaIntegration(Float_t p1) {}
104     // Get number of sigmas over which cluster disintegration is performed
105     virtual Float_t NSigmaIntegration() {return 0.;}
106     // Set number of bins for the gaussian lookup table
107     virtual void    SetNLookUp(Int_t p1) {}
108     // Get number of bins for the gaussian lookup table
109     virtual Int_t GausNLookUp() {return 0;}
110     // Get scaling factor for bin i-th from the gaussian lookup table
111     virtual Float_t GausLookUp(Int_t) {return 0.;}
112     // Set sigmas of the charge spread function
113     virtual void    SetSigmaSpread(Float_t p1, Float_t p2) {}
114     // Get sigmas for the charge spread 
115     virtual void    SigmaSpread(Float_t &s1, Float_t &s2) {}
116
117
118     // Pulse height from scored quantity (eloss)
119     virtual Float_t IntPH(Float_t eloss) {return 0.;}
120     // Charge disintegration 
121     virtual Float_t IntXZ(AliITSsegmentation *) {return 0.;}
122
123     ClassDef(AliITSresponse,1) // Detector type response virtual base class 
124 };
125 #endif
126
127
128
129
130
131
132