]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSOnlineSDD.h
SDD DA: possibility of excluding first and last time bin
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSDD.h
CommitLineData
348f80b7 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>
348f80b7 13
14class 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;}
750296dd 23 void SetFirstGoodTB(Int_t itb=1){fFirstGoodTB=itb;}
24 void SetLastGoodTB(Int_t itb=254){fLastGoodTB=itb;}
348f80b7 25
26 Int_t GetModuleId() const {return fModuleId;}
27 Int_t GetDetectorSide() const {return fSide;}
750296dd 28 Int_t GetFirstGoodTB() const {return fFirstGoodTB;}
29 Int_t GetLastGoodTB() const {return fLastGoodTB;}
348f80b7 30
31 protected:
beb262b4 32 static const Int_t fgkNAnodes = 256; // number of anodes in each half-module
750296dd 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)
348f80b7 37
750296dd 38 ClassDef(AliITSOnlineSDD,2);
348f80b7 39};
40#endif