1 #ifndef ALICDFJETFINDER_H
2 #define ALICDFJETFINDER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 #include "AliJetFinder.h"
11 // Definition of constants, structures and functions
16 const Double_t pi = TMath::Pi();
18 struct varContainer // container for Particle and Jets
19 { // variables of container struct
20 Double_t pt; Double_t eta; Double_t phi;
21 Int_t njet; // if jets are stored in varContainer njet is multiplicity of jet
22 // if particles are stored , njet is index number of jet
27 class AliCdfJetHeader;
29 class AliCdfJetFinder : public AliJetFinder
34 virtual ~AliCdfJetFinder();
36 void CreateOutputObjects(TList *histos);
40 void ComputeConesWeight();
45 virtual void FinishRun();
47 Double_t DeltaPhiNorm (Double_t dphi)
49 if ( dphi < - pi ) { dphi = -dphi - 2.0 * pi ; }
50 if ( dphi > pi ) { dphi = -dphi + 2.0 * pi ; }
54 inline long double Distance (long double x, long double y)
55 { return TMath::Sqrt ( pow(x,2) + pow(y,2) ); }
60 AliCdfJetFinder ( const AliCdfJetFinder& jf );
61 AliCdfJetFinder& operator = ( const AliCdfJetFinder& jf );
63 TList *fHistos; // List of histograms
65 Bool_t fDebug; // enables debugging
68 Bool_t fAODwrite; // write jets to AOD
69 Bool_t fAODtracksWrite; // write jet tracks to AOD
70 TRefArray *fRefArr ; // pointer to references array of tracks from AOD
73 Int_t fNJets; // counter of number of jets
74 Int_t fNPart; // number of particles in event
78 Int_t fMinJetParticles;
81 varContainer **fVectParticle; // container for Particles
82 varContainer **fVectJet; // container for Jets
84 Double_t *fPtArray; // momentum array
85 Int_t *fIdxArray; // index array of sorted pts
92 ClassDef ( AliCdfJetFinder, 1 )