]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - JETAN/AliJetUnitArray.cxx
Fix in the histogram for the mathing efficiency in TOF (thanks to Chiara and Annalisa).
[u/mrichter/AliRoot.git] / JETAN / AliJetUnitArray.cxx
... / ...
CommitLineData
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// Unit used by UA1 algorithm
18// Authors: Sarah Blyth (LBL/UCT)
19// Magali Estienne (IReS) (new version for JETAN)
20//------------------------------------------------------------------
21
22#include "AliJetUnitArray.h"
23
24
25ClassImp(AliJetUnitArray)
26
27AliJetUnitArray::AliJetUnitArray():
28 fUnitEnergy(0.0),
29 fUnitEta(0.0),
30 fUnitPhi(0.0),
31 fUnitDeta(0.),
32 fUnitDphi(0.),
33 fUnitID(0),
34 fUnitTrackID(0),
35 fUnitNum(0),
36 fUnitClusterID(0),
37 fUnitFlag(kOutJet),
38 fUnitCutFlag(kPtSmaller),
39 fUnitSignalFlag(kBad),
40 fUnitDetectorFlag(kTpc),
41 fUnitPx(0.),
42 fUnitPy(0.),
43 fUnitPz(0.),
44 fUnitMass(0.)
45{
46 // Default constructor
47}
48
49AliJetUnitArray::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):
50 fUnitEnergy(en),
51 fUnitEta(eta),
52 fUnitPhi(phi),
53 fUnitDeta(Deta),
54 fUnitDphi(Dphi),
55 fUnitID(absId),
56 fUnitTrackID(esdId),
57 fUnitNum(0),
58 fUnitClusterID(clusId),
59 fUnitFlag(inout),
60 fUnitCutFlag(cut),
61 fUnitSignalFlag(kBad),
62 fUnitDetectorFlag(det),
63 fUnitPx(px),
64 fUnitPy(py),
65 fUnitPz(pz),
66 fUnitMass(mass)
67{
68 // Constructor 2
69}
70
71AliJetUnitArray::~AliJetUnitArray()
72{
73 // Destructor
74}
75
76Bool_t AliJetUnitArray::operator>(AliJetUnitArray &unit) const
77{
78 // Greater than operator used by sort
79 if( fUnitEnergy > unit.GetUnitEnergy())
80 return kTRUE;
81 else
82 return kFALSE;
83}
84
85Bool_t AliJetUnitArray::operator<( AliJetUnitArray &unit) const
86{
87 // Less than operator used by sort
88 if( fUnitEnergy < unit.GetUnitEnergy())
89 return kTRUE;
90 else
91 return kFALSE;
92}
93
94Bool_t AliJetUnitArray::operator==( AliJetUnitArray &unit) const
95{
96 // equality operator used by sort
97 if( fUnitEnergy == unit.GetUnitEnergy())
98 return kTRUE;
99 else
100 return kFALSE;
101}