]>
Commit | Line | Data |
---|---|---|
7c6659fc | 1 | #ifndef ALICDFJETFINDER_H |
2 | #define ALICDFJETFINDER_H | |
3 | ||
4 | /* | |
5 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. | |
6 | * See cxx source for full Copyright notice | |
7 | * | |
8 | */ | |
9 | ||
10 | // Definition of constants, structures and functions for jet finder | |
11 | ||
12 | #include "AliJetFinder.h" | |
13 | ||
14 | using namespace std ; | |
15 | ||
7c6659fc | 16 | |
17 | // structure of jet and particles container | |
18 | struct varContainer | |
19 | { | |
5cac8240 | 20 | Double_t pt; // pt of particle/jet |
21 | Double_t eta; // eta of particle/jet | |
22 | Double_t phi; // phi of particle/jet | |
23 | Int_t njet; // njet is multiplicity of jet or if particles are stored , njet is index number of jet | |
7c6659fc | 24 | } ; |
25 | ||
26 | class AliCdfJetHeader; | |
27 | ||
28 | class AliCdfJetFinder : public AliJetFinder | |
29 | { | |
30 | public: | |
31 | ||
32 | AliCdfJetFinder(); | |
33 | virtual ~AliCdfJetFinder(); | |
34 | ||
35 | void CreateOutputObjects(TList * const histos); | |
36 | void FindJets(); | |
37 | void InitData(); | |
38 | void FindCones(); | |
39 | void ComputeConesWeight(); | |
40 | void WriteJets() ; | |
41 | void AnalizeJets(); | |
42 | void Clean(); | |
5cac8240 | 43 | |
7c6659fc | 44 | virtual void FinishRun(); |
45 | ||
5cac8240 | 46 | void SetAnalyseJets(Bool_t flag = kTRUE) {fAnalyseJets = flag;} |
47 | ||
7c6659fc | 48 | protected: |
49 | AliCdfJetFinder ( const AliCdfJetFinder& jf ); | |
50 | AliCdfJetFinder& operator = ( const AliCdfJetFinder& jf ); | |
51 | ||
52 | TList *fHistos; // List of histograms | |
7c6659fc | 53 | |
54 | Bool_t fFromAod ; // is the data taken from AOD (or ESD filter) | |
55 | Bool_t fAODwrite ; // write jets to AOD | |
56 | Bool_t fAODtracksWrite ; // write jet tracks to AOD | |
5cac8240 | 57 | Bool_t fAnalyseJets; // analyse jets |
58 | ||
7c6659fc | 59 | TRefArray *fRefArr ; // pointer to references array of tracks from AOD |
60 | ||
61 | Int_t fNJets; // counter of number of jets | |
62 | Int_t fNPart; // number of particles in event | |
63 | ||
64 | Double_t fRadius ; // radius of jet | |
65 | ||
66 | Int_t fMinJetParticles; // leading jet must contain AT LEAST fMinJetParticles | |
67 | Double_t fJetPtCut; // leading jet must have AT LEAST fJetPtCut | |
68 | ||
93c327ab | 69 | varContainer **fVectParticle; // container for Particles |
70 | varContainer **fVectJet; // container for Jets | |
7c6659fc | 71 | |
93c327ab | 72 | Double_t *fPtArray; // momentum array |
73 | Int_t *fIdxArray; // index array of sorted pts | |
7c6659fc | 74 | |
75 | ||
93c327ab | 76 | ClassDef(AliCdfJetFinder,1) |
5cac8240 | 77 | }; |
7c6659fc | 78 | #endif |
79 |