Made more robust
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALJetFinderAlgoUA1Unit.h
CommitLineData
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
18class AliEMCALJetFinderAlgoUA1Unit : public TObject
19{
20 public:
21 AliEMCALJetFinderAlgoUA1Unit();
22 ~AliEMCALJetFinderAlgoUA1Unit();
23 void SetUnitEnergy(Float_t energy) {fUnitEnergy = energy;}
44f59d68 24 Float_t GetUnitEnergy() const { return fUnitEnergy;}
f7d5860b 25 void SetUnitEta(Float_t eta) {fUnitEta = eta;}
44f59d68 26 Float_t GetUnitEta() const {return fUnitEta;}
f7d5860b 27 void SetUnitPhi(Float_t phi) {fUnitPhi = phi;}
44f59d68 28 Float_t GetUnitPhi() const {return fUnitPhi;}
f7d5860b 29 void SetUnitID(Int_t id) {fUnitID = id;}
44f59d68 30 Int_t GetUnitID() const {return fUnitID;}
f7d5860b 31
32 void SetUnitFlag(AliEMCALJetFinderAlgoUA1UnitFlagType_t flag)
33 {
34 fUnitFlag = flag;
35 }
36
44f59d68 37 AliEMCALJetFinderAlgoUA1UnitFlagType_t GetUnitFlag() const
f7d5860b 38 {
39 return fUnitFlag;
40 }
41
44f59d68 42 const Bool_t operator> ( AliEMCALJetFinderAlgoUA1Unit unit1);
43 const Bool_t operator< ( AliEMCALJetFinderAlgoUA1Unit unit1);
5ebdd6c3 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
44f59d68 53 ClassDef(AliEMCALJetFinderAlgoUA1Unit,3)
f7d5860b 54};
55
56#endif
57