]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/jetfinder/AliEMCALJetFinderAlgoUA1Unit.cxx
adding a member for the active CTP trigger mask to the CTP data object and setting...
[u/mrichter/AliRoot.git] / EMCAL / jetfinder / AliEMCALJetFinderAlgoUA1Unit.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
25
26 #include "AliEMCALJetFinderAlgoUA1Unit.h"
27
28
29 ClassImp(AliEMCALJetFinderAlgoUA1Unit)
30
31 AliEMCALJetFinderAlgoUA1Unit::AliEMCALJetFinderAlgoUA1Unit() 
32   : fUnitEnergy(0.),fUnitEta(0.),fUnitPhi(0.),fUnitID(0),fUnitFlag(kOutJet)
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 AliEMCALJetFinderAlgoUA1Unit::~AliEMCALJetFinderAlgoUA1Unit()
43 {
44
45 }
46         
47 Bool_t AliEMCALJetFinderAlgoUA1Unit::operator>(AliEMCALJetFinderAlgoUA1Unit 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 AliEMCALJetFinderAlgoUA1Unit::operator<( AliEMCALJetFinderAlgoUA1Unit 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 AliEMCALJetFinderAlgoUA1Unit::operator==( AliEMCALJetFinderAlgoUA1Unit unit) const
66     {
67             // equality operator used by sort
68       if( fUnitEnergy == unit.GetUnitEnergy())
69          return kTRUE;
70       else
71          return kFALSE;
72     }