]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliJetUnitArray.cxx
Input histograms with crystal amplitudes for Shuttle
[u/mrichter/AliRoot.git] / JETAN / AliJetUnitArray.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16
17 /* $Id$ */
18
19 //_________________________________________________________________________
20 //  Unit used by UA1 algorithm
21 // --
22 //*-- Author: Sarah Blyth (LBL/UCT)
23 // --
24 // Revised Version for JETAN - 30/03/2006
25 // -- Magali Estienne (IReS)
26
27 #include "AliJetUnitArray.h"
28
29
30 ClassImp(AliJetUnitArray)
31
32 AliJetUnitArray::AliJetUnitArray()
33 {
34   // Default constructor
35   fUnitEnergy         = 0.0;
36   fUnitEta            = 0.0;
37   fUnitPhi            = 0.0;
38   fUnitID             = 0;
39   fUnitFlag           = kOutJet;
40 }  
41
42 AliJetUnitArray::~AliJetUnitArray()
43 {
44   // Destructor 
45 }
46         
47 Bool_t AliJetUnitArray::operator>(AliJetUnitArray unit) const
48 {
49   // Greater than operator used by sort
50   if( fUnitEnergy > unit.GetUnitEnergy())
51     return kTRUE;
52   else 
53     return kFALSE;
54 }
55
56 Bool_t AliJetUnitArray::operator<( AliJetUnitArray unit) const
57 {
58   // Less than operator used by sort
59   if( fUnitEnergy < unit.GetUnitEnergy())
60     return kTRUE;
61   else
62     return kFALSE;
63 }
64
65 Bool_t AliJetUnitArray::operator==( AliJetUnitArray unit) const
66 {
67   // equality operator used by sort
68   if( fUnitEnergy == unit.GetUnitEnergy())
69     return kTRUE;
70   else
71     return kFALSE;
72 }