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 AliHLTJets.h
13 @author Jochen Thaeder
15 @brief Container holding produced Jets
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 "TClonesArray.h"
27 #include "AliAODJet.h"
29 #include "AliHLTLogging.h"
33 * This class contains AliAODJets and comments
38 class AliHLTJets : public TObject, public AliHLTLogging {
42 * ---------------------------------------------------------------------------------
43 * Constructor / Destructor
44 * ---------------------------------------------------------------------------------
54 * ---------------------------------------------------------------------------------
56 * ---------------------------------------------------------------------------------
59 /** Reset output array */
62 /** Reset output array */
66 * ---------------------------------------------------------------------------------
68 * ---------------------------------------------------------------------------------
72 TString GetComment() const { return fComment; }
74 /** Get number of AliAODJets */
75 Int_t GetNAODJets() const { return fNAODJets; }
77 /** Get ptr to TClonesArray of AliAODJets */
78 TClonesArray* GetAODJets() const { return fAODJets; }
80 /** Get AliAODJet with idx iter */
81 AliAODJet* GetJet( Int_t iter ) const;
83 /** Get next AliAODJet
84 * @return Ptr to Jet, NULL if no next jet is present
89 * ---------------------------------------------------------------------------------
91 * ---------------------------------------------------------------------------------
95 * @param comment arguments of jet finder
97 void SetComment( const Char_t* comment ) { fComment = TString(comment); }
100 * @param comment arguments of jet finder
102 void SetComment( TString comment ) { fComment = TString(comment); }
104 /** Add Jet to Container
110 void AddJet( Float_t eta, Float_t phi, Float_t pt, Float_t et );
112 /** Add Jet to Container
113 * @param jet Ptr to AliAODJet
115 void AddJet( AliAODJet* jet );
118 * ---------------------------------------------------------------------------------
120 * ---------------------------------------------------------------------------------
123 /** Sort Jets with decreasing Et */
126 ///////////////////////////////////////////////////////////////////////////////////
130 /** copy constructor prohibited */
131 AliHLTJets(const AliHLTJets&);
133 /** assignment operator prohibited */
134 AliHLTJets& operator=(const AliHLTJets&);
137 * ---------------------------------------------------------------------------------
139 * ---------------------------------------------------------------------------------
142 /** String containing comment */
143 TString fComment; // see above
145 /** Current Jet index */
146 Int_t fCurrentJetIndex; //! transient
148 /** Number of AOD jets */
149 Int_t fNAODJets; // see above
151 /** Array of AOD jets */
152 TClonesArray *fAODJets; // see above
154 ClassDef(AliHLTJets, 1)