]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDtrigParam.h
Various fixes in order to compile the DA source code
[u/mrichter/AliRoot.git] / TRD / AliTRDtrigParam.h
1 #ifndef ALITRDTRIGPARAM_H
2 #define ALITRDTRIGPARAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 ///////////////////////////////////////////////////////////////////////////////
7 //                                                                           //
8 //  TRD trigger parameters class                                             //
9 //                                                                           //
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #include <TNamed.h>
13
14 class AliTRDtrigParam : public TNamed {
15
16  public:
17
18   AliTRDtrigParam();
19   AliTRDtrigParam(const Text_t* name, const Text_t* title);
20   AliTRDtrigParam(const AliTRDtrigParam &p);   
21   virtual         ~AliTRDtrigParam();
22   AliTRDtrigParam &operator=(const AliTRDtrigParam &p); 
23
24   virtual void     Copy(TObject &p) const;
25
26           void     Init();
27
28           Int_t    GetTime1() const                        { return fTime1;         };
29           Int_t    GetTime2() const                        { return fTime2;         };
30           Float_t  GetClusThr() const                      { return fClusThr;       };
31           Float_t  GetPadThr() const                       { return fPadThr;        };
32           Int_t    GetSum10() const                        { return fSum10;         };
33           Int_t    GetSum12() const                        { return fSum12;         };
34           Int_t    GetTailCancelation() const              { return fTCOn;          };
35           Int_t    GetNexponential() const                 { return fTCnexp;        };
36           Int_t    GetFilterType() const                   { return fFilterType;    };
37           void     GetFilterParam(Float_t &r1, Float_t &r2, Float_t &c1, Float_t &c2, Float_t &ped) const 
38                                                            { r1            = fR1; 
39                                                              r2            = fR2; 
40                                                              c1            = fC1; 
41                                                              c2            = fC2; 
42                                                              ped           = fPedestal; };
43           Float_t  GetADCnoise() const                     { return fADCnoise;      };
44           Int_t    GetDebugLevel() const                   { return fDebug;         };
45           Float_t  GetDeltaY() const                       { return fDeltaY;        };
46           Float_t  GetDeltaS() const                       { return fDeltaS;        }; 
47           Float_t  GetXprojPlane() const                   { return fXprojPlane;    };
48           Float_t  GetField() const                        { return fField;         };
49           Float_t  GetLtuPtCut() const                     { return fLtuPtCut;      };
50           Float_t  GetGtuPtCut() const                     { return fGtuPtCut;      };
51           Float_t  GetHighPt() const                       { return fHighPt;        };
52           Int_t    GetNPartJetLow() const                  { return fNPartJetLow;   };
53           Int_t    GetNPartJetHigh() const                 { return fNPartJetHigh;  };
54           Float_t  GetJetLowPt() const                     { return fJetLowPt;      };
55           Float_t  GetJetHighPt() const                    { return fJetHighPt;     };
56
57           void     SetTimeRange(Int_t time1, Int_t time2)  { fTime1        = time1; 
58                                                              fTime2        = time2; };
59           void     SetClusThr(Float_t clth)                { fClusThr      = clth;  };
60           void     SetPadThr(Float_t path)                 { fPadThr       = path;  };
61           void     SetSum10(Int_t sum)                     { fSum10        = sum;   };
62           void     SetSum12(Int_t sum)                     { fSum12        = sum;   }; 
63           void     SetTailCancelation(Int_t tcOn = 0)      { fTCOn         = tcOn;  };
64           void     SetNexponential(Int_t nexp = 1)         { fTCnexp       = nexp;  };
65           void     SetFilterType(Int_t ftype = 0)          { fFilterType   = ftype; };
66           void     SetFilterParam(Float_t r1, Float_t r2, Float_t c1, Float_t c2, Float_t ped) 
67                                                            { fR1           = r1; 
68                                                              fR2           = r2; 
69                                                              fC1           = c1; 
70                                                              fC2           = c2; 
71                                                              fPedestal     = ped;   };
72           void     SetADCnoise(Float_t adcn)               { fADCnoise     = adcn;  };
73           void     SetDebugLevel(Int_t deb)                { fDebug        = deb;   };
74           void     SetDeltaY(Float_t dy)                   { fDeltaY       = dy;    };
75           void     SetDeltaS(Float_t ds)                   { fDeltaS       = ds;    };
76           void     SetField(Float_t b)                     { fField        = b;     };
77           void     SetLtuPtCut(Float_t ptcut)              { fLtuPtCut     = ptcut; };
78           void     SetGtuPtCut(Float_t ptcut)              { fGtuPtCut     = ptcut; };
79           void     SetHighPt(Float_t hpt)                  { fHighPt       = hpt;   };
80           void     SetNPartJetLow(Int_t npj)               { fNPartJetLow  = npj;   };
81           void     SetNPartJetHigh(Int_t npj)              { fNPartJetHigh = npj;   };
82           void     SetJetLowPt(Float_t thr)                { fJetLowPt     = thr;   };
83           void     SetJetHighPt(Float_t thr)               { fJetHighPt    = thr;   };
84
85  protected:
86
87           Int_t    fDebug;                         // Debugging flag
88
89           Int_t    fTime1;                         // First time bin for tracking (incl.)
90           Int_t    fTime2;                         // Last  time bin for tracking (incl.)
91           Float_t  fClusThr;                       // Cluster threshold
92           Float_t  fPadThr;                        // Pad threshold
93           Int_t    fSum10;                         // MCM CreateSeeds: Min_Thr_Left_Neighbour
94           Int_t    fSum12;                         // MCM CreateSeeds: Min_Sum_From_Two_Neighbours
95           Int_t    fTCOn;                          // Tail cancelation flag
96           Int_t    fTCnexp;                        // Number of exp in filter
97           Int_t    fFilterType;                    // Filter type (0=A - analog, 1=D - digital)
98
99           // Filter parameters (1 = long, 2 = short component)
100           Float_t  fR1;                            // Time constant [microseconds]
101           Float_t  fR2;                            // Time constant [microseconds]
102           Float_t  fC1;                            // Weight
103           Float_t  fC2;                            // Weight
104           Float_t  fPedestal;                      // ADC baseline
105           Float_t  fADCnoise;                      // ADC noise (not contained in the digitizer)
106
107           Float_t  fDeltaY;                        // Y (offset) matching window in the GTU
108           Float_t  fDeltaS;                        // Slope matching window in the GTU
109
110           Float_t  fXprojPlane;                    // Projection plane (X) for GTU matching
111
112           Float_t  fLtuPtCut;                      // Local pt cut
113           Float_t  fGtuPtCut;                      // Global pt cut
114
115           Float_t  fField;                         // Magnetic field
116
117           Float_t  fHighPt;                        // High pt selection
118
119           Int_t    fNPartJetLow;                   // Number of tracks for jet (low)
120           Int_t    fNPartJetHigh;                  // Number of tracks for jet (high)
121           Float_t  fJetLowPt;                      // Low pt threshold for jet particles
122           Float_t  fJetHighPt;                     // High pt threshold for jet particles
123
124   ClassDef(AliTRDtrigParam,2)                      // TRD trigger parameter class
125
126 };
127
128 #endif