1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 //------------------------------------------------------------------
17 // Unit used by UA1 algorithm
18 // Authors: Sarah Blyth (LBL/UCT)
19 // Magali Estienne (IReS) (new version for JETAN)
20 //------------------------------------------------------------------
22 #include "AliJetUnitArray.h"
25 ClassImp(AliJetUnitArray)
27 AliJetUnitArray::AliJetUnitArray():
38 fUnitCutFlag(kPtSmaller),
39 fUnitSignalFlag(kBad),
40 fUnitDetectorFlag(kTpc),
46 // Default constructor
49 AliJetUnitArray::AliJetUnitArray(Int_t absId, Int_t esdId, Float_t eta, Float_t phi, Float_t en, Float_t px, Float_t py, Float_t pz, Float_t Deta, Float_t Dphi, AliJetFinderUnitDetectorFlagType_t det, AliJetFinderUnitFlagType_t inout, AliJetFinderUnitCutFlagType_t cut, Float_t mass, Int_t clusId):
58 fUnitClusterID(clusId),
61 fUnitSignalFlag(kBad),
62 fUnitDetectorFlag(det),
71 AliJetUnitArray::~AliJetUnitArray()
76 Bool_t AliJetUnitArray::operator>(AliJetUnitArray &unit) const
78 // Greater than operator used by sort
79 if( fUnitEnergy > unit.GetUnitEnergy())
85 Bool_t AliJetUnitArray::operator<( AliJetUnitArray &unit) const
87 // Less than operator used by sort
88 if( fUnitEnergy < unit.GetUnitEnergy())
94 Bool_t AliJetUnitArray::operator==( AliJetUnitArray &unit) const
96 // equality operator used by sort
97 if( fUnitEnergy == unit.GetUnitEnergy())