]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALJetFinderAlgoUA1Unit.h
In stand-allone mode, pass stack to entries.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALJetFinderAlgoUA1Unit.h
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;}
24   Float_t GetUnitEnergy() const            { return fUnitEnergy;}
25   void SetUnitEta(Float_t eta)        {fUnitEta = eta;} 
26   Float_t GetUnitEta() const               {return fUnitEta;}
27   void SetUnitPhi(Float_t phi)        {fUnitPhi = phi;}
28   Float_t GetUnitPhi() const                {return fUnitPhi;}         
29   void SetUnitID(Int_t id)            {fUnitID = id;}
30   Int_t GetUnitID() const                   {return fUnitID;}
31   
32   void SetUnitFlag(AliEMCALJetFinderAlgoUA1UnitFlagType_t flag)   
33   {
34           fUnitFlag = flag;
35   }
36   
37   AliEMCALJetFinderAlgoUA1UnitFlagType_t GetUnitFlag() const     
38   {
39           return fUnitFlag;
40   }
41   
42   const Bool_t operator>  ( AliEMCALJetFinderAlgoUA1Unit unit1);
43   const Bool_t operator<  ( AliEMCALJetFinderAlgoUA1Unit unit1);
44   const Bool_t operator== ( AliEMCALJetFinderAlgoUA1Unit unit1);
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
53   ClassDef(AliEMCALJetFinderAlgoUA1Unit,3)
54 };
55
56 #endif
57