]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/CaloCalib/AliEMCALFastORPatch.h
coding conventions
[u/mrichter/AliRoot.git] / PWG4 / CaloCalib / AliEMCALFastORPatch.h
CommitLineData
eef0e082 1#ifndef ALIEMCALFASTORPATCH_H
2#define ALIEMCALFASTORPATCH_H
3
4// $Id$
5
5f4740c2 6class TArrayF;
7class TArrayI;
eef0e082 8class AliESDCaloTrigger;
9
10#include <TObject.h>
11
12class AliEMCALFastORPatch : public TObject {
13
14public:
15 AliEMCALFastORPatch();
16 AliEMCALFastORPatch(Int_t aid, Int_t size = 4);
17 virtual ~AliEMCALFastORPatch();
18
5f4740c2 19public:
20 Int_t GetAbsId() const { return fAbsId; }
21 void SetAbsId(Int_t aid) { fAbsId = aid; }
22
23 Float_t GetTotalAmplitude() const;
24 Float_t GetFastORamplitude(Int_t i) const;
25 Int_t GetNumberOfFastOR() const;
26 Int_t GetFastORrow(Int_t i) const;
27 Int_t GetFastORcolumn(Int_t i) const;
28 Bool_t Contains(Int_t row, Int_t col) const;
29 Bool_t AddFastORat(AliESDCaloTrigger* f, Int_t i);
30 Bool_t AddFastORat(Float_t amp, Int_t gCol, Int_t gRow, Int_t i);
31 void RemoveFastORat(Int_t i);
32 void Expand(Int_t size);
eef0e082 33
5f4740c2 34protected:
35 Int_t fAbsId; // Unique ID of the FastOR patch (trigger)
36 TArrayF *fFastORamplitudes; // Array containing amplitudes of the FastORs
37 TArrayI *fFastORcolumns; // Array containing column position of the FastORs
38 TArrayI *fFastORrows; // Array containing row position of the FastORs
39
eef0e082 40private:
5f4740c2 41 AliEMCALFastORPatch(const AliEMCALFastORPatch&); // not implemented
42 AliEMCALFastORPatch &operator=(const AliEMCALFastORPatch&); // not implemented
eef0e082 43
44 ClassDef(AliEMCALFastORPatch, 1);
45};
5f4740c2 46#endif //ALIEMCALFASTORPATCH_H