]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSOnlineSDD.h
added new enum that describes the type of analysis, passed to all analysis classes
[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 AliITSOnlineSDD : public TObject {
15
16  public:
17   AliITSOnlineSDD();
18   AliITSOnlineSDD(Int_t mod, Int_t sid);
19   virtual ~AliITSOnlineSDD(){};
20
21   void SetModule(Int_t mod){fModuleId=mod;}
22   void SetDetectorSide(Int_t sid){fSide=sid;}
23   void SetFirstGoodTB(Int_t itb=1){fFirstGoodTB=itb;}
24   void SetLastGoodTB(Int_t itb=254){fLastGoodTB=itb;}
25
26   Int_t GetModuleId() const {return fModuleId;}
27   Int_t GetDetectorSide() const {return fSide;}
28   Int_t GetFirstGoodTB() const {return fFirstGoodTB;}
29   Int_t GetLastGoodTB() const {return fLastGoodTB;}
30
31  protected:
32   static const Int_t fgkNAnodes = 256; // number of anodes in each half-module
33   Int_t fModuleId;    // module number from 0 to 255
34   Int_t fSide;        // detector side (0-1)
35   Int_t fFirstGoodTB; // first good time bin (to exclude time bin 0)
36   Int_t fLastGoodTB;  // last good time bin (to exclude time bin 255)
37
38   ClassDef(AliITSOnlineSDD,2);
39 };
40 #endif