]> git.uio.no Git - u/mrichter/AliRoot.git/blame - JETAN/AliCdfJetFinder.h
Names of deprecated functions modified
[u/mrichter/AliRoot.git] / JETAN / AliCdfJetFinder.h
CommitLineData
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
14using namespace std ;
15
7c6659fc 16
17// structure of jet and particles container
18struct 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
26class AliCdfJetHeader;
27
28class 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
53 Bool_t fDebug; // enables debugging
54
55 Bool_t fFromAod ; // is the data taken from AOD (or ESD filter)
56 Bool_t fAODwrite ; // write jets to AOD
57 Bool_t fAODtracksWrite ; // write jet tracks to AOD
5cac8240 58 Bool_t fAnalyseJets; // analyse jets
59
7c6659fc 60 TRefArray *fRefArr ; // pointer to references array of tracks from AOD
61
62 Int_t fNJets; // counter of number of jets
63 Int_t fNPart; // number of particles in event
64
65 Double_t fRadius ; // radius of jet
66
67 Int_t fMinJetParticles; // leading jet must contain AT LEAST fMinJetParticles
68 Double_t fJetPtCut; // leading jet must have AT LEAST fJetPtCut
69
70 varContainer **fVectParticle; // container for Particles
71 varContainer **fVectJet; // container for Jets
72
73 Double_t *fPtArray; // momentum array
5cac8240 74 Int_t *fIdxArray; // index array of sorted pts
7c6659fc 75
76
5cac8240 77 ClassDef(AliCdfJetFinder,1)
78 };
7c6659fc 79#endif
80