]> git.uio.no Git - u/mrichter/AliRoot.git/blame - JETAN/AliCdfJetFinder.h
Added script to draw calibrated raw data
[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
16Double_t const kPI = TMath::Pi();
17// Double_t const kTWOPI = 2.*kPI;
18
19// structure of jet and particles container
20struct varContainer
21 {
22 Double_t pt; // pt of particle/jet
23 Double_t eta; // eta of particle/jet
24 Double_t phi; // phi of particle/jet
25 Int_t njet; // njet is multiplicity of jet or if particles are stored , njet is index number of jet
26 } ;
27
28class AliCdfJetHeader;
29
30class AliCdfJetFinder : public AliJetFinder
31 {
32 public:
33
34 AliCdfJetFinder();
35 virtual ~AliCdfJetFinder();
36
37 void CreateOutputObjects(TList * const histos);
38 void FindJets();
39 void InitData();
40 void FindCones();
41 void ComputeConesWeight();
42 void WriteJets() ;
43 void AnalizeJets();
44 void Clean();
45
46 virtual void FinishRun();
47
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
58 TRefArray *fRefArr ; // pointer to references array of tracks from AOD
59
60 Int_t fNJets; // counter of number of jets
61 Int_t fNPart; // number of particles in event
62
63 Double_t fRadius ; // radius of jet
64
65 Int_t fMinJetParticles; // leading jet must contain AT LEAST fMinJetParticles
66 Double_t fJetPtCut; // leading jet must have AT LEAST fJetPtCut
67
68 varContainer **fVectParticle; // container for Particles
69 varContainer **fVectJet; // container for Jets
70
71 Double_t *fPtArray; // momentum array
72 Int_t *fIdxArray; // index array of sorted pts
73
74
75 ClassDef(AliCdfJetFinder,1) };
76#endif
77