f7d5860b |
1 | #ifndef ALIEMCALJETFINDERALGOUA1UNIT_H |
2 | #define ALIEMCALJETFINDERALGOUA1UNIT_H |
3 | |
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * * * See cxx source for full Copyright notice */ |
6 | |
7 | /* $Id$ */ |
8 | |
9 | //_________________________________________________________________________ |
10 | // Unit used by UA1 algorithm |
11 | // |
12 | //*-- Author: Sarah Blyth (LBL/UCT) |
13 | |
14 | |
15 | #include <TObject.h> |
16 | #include "AliEMCALJetFinderTypes.h" |
17 | |
18 | class AliEMCALJetFinderAlgoUA1Unit : public TObject |
19 | { |
20 | public: |
21 | AliEMCALJetFinderAlgoUA1Unit(); |
22 | ~AliEMCALJetFinderAlgoUA1Unit(); |
23 | void SetUnitEnergy(Float_t energy) {fUnitEnergy = energy;} |
5ebdd6c3 |
24 | const Float_t GetUnitEnergy() { return fUnitEnergy;} |
f7d5860b |
25 | void SetUnitEta(Float_t eta) {fUnitEta = eta;} |
5ebdd6c3 |
26 | const Float_t GetUnitEta() {return fUnitEta;} |
f7d5860b |
27 | void SetUnitPhi(Float_t phi) {fUnitPhi = phi;} |
5ebdd6c3 |
28 | const Float_t GetUnitPhi() {return fUnitPhi;} |
f7d5860b |
29 | void SetUnitID(Int_t id) {fUnitID = id;} |
5ebdd6c3 |
30 | const Int_t GetUnitID() {return fUnitID;} |
f7d5860b |
31 | |
32 | void SetUnitFlag(AliEMCALJetFinderAlgoUA1UnitFlagType_t flag) |
33 | { |
34 | fUnitFlag = flag; |
35 | } |
36 | |
5ebdd6c3 |
37 | const AliEMCALJetFinderAlgoUA1UnitFlagType_t GetUnitFlag() |
f7d5860b |
38 | { |
39 | return fUnitFlag; |
40 | } |
41 | |
5ebdd6c3 |
42 | const Bool_t operator> ( AliEMCALJetFinderAlgoUA1Unit unit1); |
43 | const Bool_t operator< ( AliEMCALJetFinderAlgoUA1Unit unit1); |
44 | const Bool_t operator== ( AliEMCALJetFinderAlgoUA1Unit unit1); |
f7d5860b |
45 | |
46 | protected: |
47 | Float_t fUnitEnergy; // Energy of the unit |
48 | Float_t fUnitEta; // Eta of the unit |
49 | Float_t fUnitPhi; // Phi of the unit |
50 | Int_t fUnitID; // ID of the unit |
51 | AliEMCALJetFinderAlgoUA1UnitFlagType_t fUnitFlag; //Flag of the unit |
52 | |
5ebdd6c3 |
53 | ClassDef(AliEMCALJetFinderAlgoUA1Unit,2) |
f7d5860b |
54 | }; |
55 | |
56 | #endif |
57 | |