]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSOnlineSDD.h
Removing useless flag.
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSDD.h
1 #ifndef ALIITSONLINESDD_H
2 #define ALIITSONLINESDD_H
3
4
5 ///////////////////////////////////////////////////////////////////
6 //                                                               //
7 // Base class for SDD detector algorithms                        //
8 // Origin: F.Prino, Torino, prino@to.infn.it                     //
9 //                                                               //
10 ///////////////////////////////////////////////////////////////////
11
12 #include<TObject.h>
13
14 class TH2F;
15
16 class AliITSOnlineSDD : public TObject {
17
18  public:
19   AliITSOnlineSDD();
20   AliITSOnlineSDD(Int_t nddl, Int_t ncarlos, Int_t sid);
21   virtual ~AliITSOnlineSDD(){};
22
23   void SetDDL(Int_t nd){fDDL=nd;}
24   void SetCarlos(Int_t nc){fCarlos=nc;}
25   void SetDetectorSide(Int_t sid){fSide=sid;}
26   void SetFirstGoodTB(Int_t itb=1){fFirstGoodTB=itb;}
27   void SetLastGoodTB(Int_t itb=126){fLastGoodTB=itb;}
28
29   Int_t GetDDL() const {return fDDL;}
30   Int_t GetCarlos() const {return fCarlos;}
31   Int_t GetDetectorSide() const {return fSide;}
32   Int_t GetFirstGoodTB() const {return fFirstGoodTB;}
33   Int_t GetLastGoodTB() const {return fLastGoodTB;}
34
35   static TH2F* ApplyZeroSuppression(TH2F* hRaw, Float_t basl, Int_t tL, Int_t tH);
36
37  protected:
38   static const Int_t fgkNAnodes = 256; // number of anodes in each half-module
39   Int_t fDDL;         // SDD DDL number (from 0 to 24)
40   Int_t fCarlos;      // carlos number inside DDL (from 0 to 11)
41   Int_t fSide;        // detector side (0-1)
42   Int_t fFirstGoodTB; // first good time bin (to exclude time bin 0)
43   Int_t fLastGoodTB;  // last good time bin (to exclude time bin 255)
44
45   ClassDef(AliITSOnlineSDD,3);
46 };
47 #endif