]>
Commit | Line | Data |
---|---|---|
4a01bb2c | 1 | #ifndef ALIUA1JETFINDERUNIT_H |
2 | #define ALIUA1JETFINDERUNIT_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 | // Revised Version for JETAN - 08/11/2006 | |
11 | // Functions added | |
12 | // Author: magali.estienne@ires.in2p3.fr | |
13 | //====================================================================== | |
14 | // Unit used by UA1 algorithm | |
15 | // | |
16 | //*-- Author: Sarah Blyth (LBL/UCT) | |
17 | ||
18 | #include <TObject.h> | |
19 | #include "AliJetFinderTypes.h" | |
20 | ||
21 | class AliJetUnitArray : public TObject | |
22 | { | |
23 | public: | |
24 | AliJetUnitArray(); | |
25 | ~AliJetUnitArray(); | |
26 | ||
27 | // Setter | |
28 | void SetUnitEnergy(Float_t energy) {fUnitEnergy = energy;} | |
29 | void SetUnitEta(Float_t eta) {fUnitEta = eta;} | |
30 | void SetUnitPhi(Float_t phi) {fUnitPhi = phi;} | |
31 | void SetUnitDeta(Float_t deta) {fUnitDeta = deta;} | |
32 | void SetUnitDphi(Float_t dphi) {fUnitDphi = dphi;} | |
33 | void SetUnitID(Int_t id) {fUnitID = id;} | |
34 | void SetUnitEntries(Int_t num) {fUnitNum = num;} | |
35 | void SetUnitClusterID(Int_t id) {fUnitClusterID = id;} | |
36 | void SetUnitFlag(AliJetFinderUnitFlagType_t flag) | |
37 | { | |
38 | fUnitFlag = flag; | |
39 | } | |
40 | void SetUnitCutFlag(AliJetFinderUnitCutFlagType_t cutFlag) | |
41 | { | |
42 | fUnitCutFlag = cutFlag; | |
43 | } | |
44 | void SetUnitSignalFlag(AliJetFinderUnitSignalFlagType_t signalFlag) | |
45 | { | |
46 | fUnitSignalFlag = signalFlag; | |
47 | } | |
48 | void SetUnitDetectorFlag(AliJetFinderUnitDetectorFlagType_t detectorflag) | |
49 | { | |
50 | fUnitDetectorFlag = detectorflag; | |
51 | } | |
52 | ||
53 | // Getter | |
54 | Float_t GetUnitEnergy() const {return fUnitEnergy;} | |
55 | Float_t GetUnitEta() const {return fUnitEta;} | |
56 | Float_t GetUnitPhi() const {return fUnitPhi;} | |
57 | Float_t GetUnitDeta() const {return fUnitDeta;} | |
58 | Float_t GetUnitDphi() const {return fUnitDphi;} | |
59 | Int_t GetUnitID() const {return fUnitID;} | |
60 | Int_t GetUnitEntries() const {return fUnitNum;} | |
61 | Int_t GetUnitClusterID() const {return fUnitClusterID;} | |
62 | AliJetFinderUnitFlagType_t GetUnitFlag() const | |
63 | { | |
64 | return fUnitFlag; | |
65 | } | |
66 | AliJetFinderUnitCutFlagType_t GetUnitCutFlag() const | |
67 | { | |
68 | return fUnitCutFlag; | |
69 | } | |
70 | AliJetFinderUnitSignalFlagType_t GetUnitSignalFlag() const | |
71 | { | |
72 | return fUnitSignalFlag; | |
73 | } | |
74 | AliJetFinderUnitDetectorFlagType_t GetUnitDetectorFlag() const | |
75 | { | |
76 | return fUnitDetectorFlag; | |
77 | } | |
78 | ||
79 | Bool_t operator> ( AliJetUnitArray unit1) const; | |
80 | Bool_t operator< ( AliJetUnitArray unit1) const; | |
81 | Bool_t operator== ( AliJetUnitArray unit1) const; | |
82 | ||
83 | protected: | |
84 | Float_t fUnitEnergy; // Energy of the unit | |
85 | Float_t fUnitEta; // Eta of the unit | |
86 | Float_t fUnitPhi; // Phi of the unit | |
87 | Float_t fUnitDeta; // Delta Eta of the unit | |
88 | Float_t fUnitDphi; // Delta Phi of the unit | |
89 | Int_t fUnitID; // ID of the unit | |
90 | Int_t fUnitNum; // number of units | |
91 | Int_t fUnitClusterID; // ID of the unit | |
5b81d1ce | 92 | AliJetFinderUnitFlagType_t fUnitFlag; // Flag of the unit |
93 | AliJetFinderUnitCutFlagType_t fUnitCutFlag; // Flag of the unit | |
94 | AliJetFinderUnitSignalFlagType_t fUnitSignalFlag; // Flag of the unit | |
95 | AliJetFinderUnitDetectorFlagType_t fUnitDetectorFlag; // Detector flag of the unit | |
4a01bb2c | 96 | |
97 | ClassDef(AliJetUnitArray,3) | |
98 | }; | |
99 | ||
100 | #endif | |
101 |