]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/CaloCalib/AliEMCALFastORPatch.h
clusterize on fastor level. Still needs work on coding convention. Code should be...
[u/mrichter/AliRoot.git] / PWG4 / CaloCalib / AliEMCALFastORPatch.h
1 #ifndef ALIEMCALFASTORPATCH_H
2 #define ALIEMCALFASTORPATCH_H
3
4 // $Id$
5
6 class TObjArray;
7 class AliESDCaloTrigger;
8
9 #include <TObject.h>
10
11 class AliEMCALFastORPatch : public TObject {
12   
13 public:
14   AliEMCALFastORPatch();
15   AliEMCALFastORPatch(Int_t aid, Int_t size = 4);
16   virtual ~AliEMCALFastORPatch();
17   
18   Float_t GetTotalAmplitude();
19   Float_t GetFastORamplitude(Int_t i);
20   Int_t GetNumberOfFastOR();
21   Bool_t AddFastORat(AliESDCaloTrigger* f, Int_t i);
22   Bool_t AddFastORat(Float_t amp, Int_t gCol, Int_t gRow, Int_t i);
23   void RemoveFastORat(Int_t i);
24   Int_t GetAbsId();
25   void SetAbsId(Int_t aid);
26   Int_t GetFastORrow(Int_t i);
27   Int_t GetFastORcolumn(Int_t i);
28   void Expand(Int_t size);
29   Bool_t Contains(Int_t row, Int_t col);
30   
31 private:
32   Float_t       *fFastORamplitudes;
33   Int_t         *fFastORcolumns;
34   Int_t         *fFastORrows;
35   Int_t          fSize;
36   Int_t          fAbsId;
37   
38   ClassDef(AliEMCALFastORPatch, 1);
39 };
40 #endif //ALIEMCALFASTORPATCH_H