3 // $Id: AliHLTJETConeEtaPhiCell.h $
5 #ifndef ALIHLTJETCONEETAPHICELL_H
6 #define ALIHLTJETCONEETAPHICELL_H
8 /* This file is property of and copyright by the ALICE HLT Project *
9 * ALICE Experiment at CERN, All rights reserved. *
10 * See cxx source for full Copyright notice */
12 /** @file AliHLTJETConeEtaPhiCell.h
13 @author Jochen Thaeder
15 @brief Cell in eta-phi space of the cone finder
18 // see below for class documentation
20 // refer to README to build package
22 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
24 #include "TObjArray.h"
25 #include "TParticle.h"
27 #include "AliESDtrack.h"
29 #include "AliHLTLogging.h"
30 #include "AliHLTJETBase.h"
33 * @class AliHLTJETConeEtaPhiCell
34 * This class contains one cell in the eta-phi space for the cone finder
36 * @ingroup alihlt_jet_cone
39 class AliHLTJETConeEtaPhiCell : public TObject, public AliHLTLogging {
44 * ---------------------------------------------------------------------------------
45 * Constructor / Destructor
46 * ---------------------------------------------------------------------------------
49 /** Constructor for ESD tracks */
50 AliHLTJETConeEtaPhiCell( Int_t etaIdx, Int_t phiIdx, AliESDtrack* track );
52 /** Constructor for MC particles */
53 AliHLTJETConeEtaPhiCell( Int_t etaIdx, Int_t phiIdx, TParticle* particle );
56 ~AliHLTJETConeEtaPhiCell();
58 /** A destructor like class, called by TClonesArray->Clear("C") */
59 void Clear(Option_t* option = "");
62 * ---------------------------------------------------------------------------------
64 * ---------------------------------------------------------------------------------
67 /** Get cell eta index */
68 Int_t GetEtaIdx() { return fEtaIdx; }
70 /** Get cell phi index */
71 Int_t GetPhiIdx() { return fPhiIdx; }
73 /** Get summed pt of cell */
74 Float_t GetPt() { return fPt; }
76 /** Get summed eta of cell */
77 Float_t GetEta() { return fEta; }
79 /** Get summed phi of cell */
80 Float_t GetPhi() { return fPhi; }
82 /** Get N of tracks in cell */
83 Int_t GetNTracks() { return fNTracks; }
85 /** Get List of tracks in cell */
86 TObjArray* GetTrackList() { return fTrackList; }
88 /** Get type of tracks (TrackType_t) */
89 Int_t GetTrackType() { return fTrackType; }
93 * ---------------------------------------------------------------------------------
95 * ---------------------------------------------------------------------------------
98 /** Add Track to cell, using ESD track */
99 void AddTrack( AliESDtrack* track );
101 /** Add Track to cell, using MC particle */
102 void AddTrack( TParticle* particle );
104 ///////////////////////////////////////////////////////////////////////////////////
108 /** Standard constructor prohibited */
109 AliHLTJETConeEtaPhiCell();
111 /** copy constructor prohibited */
112 AliHLTJETConeEtaPhiCell(const AliHLTJETConeEtaPhiCell&);
114 /** assignment operator prohibited */
115 AliHLTJETConeEtaPhiCell& operator=(const AliHLTJETConeEtaPhiCell&);
118 * ---------------------------------------------------------------------------------
120 * ---------------------------------------------------------------------------------
123 // -- cell index parameters --
125 /** cell eta index */
126 Int_t fEtaIdx; // see above
128 /** cell phi index */
129 Int_t fPhiIdx; // see above
131 // -- summed parameters --
133 /** Summed pt of cell */
134 Float_t fPt; // see above
136 /** Summed eta of cell */
137 Float_t fEta; // see above
139 /** Summed phi of cell */
140 Float_t fPhi; // see above
142 /** N of tracks in cell */
143 UInt_t fNTracks; // see above
147 /** TObjArray of tracks in the cell */
148 TObjArray* fTrackList; //! transient
150 /** Type of tracks (TrackType_t) */
151 Int_t fTrackType; // see above
153 ClassDef(AliHLTJETConeEtaPhiCell, 1)