]> git.uio.no Git - u/mrichter/AliRoot.git/blame - JETAN/AliCdfJetFinder.h
Adding helper functions to define 2012 pp data PS and online trigger selection
[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
139cbd96 10/* $Id$ */
11
7c6659fc 12// Definition of constants, structures and functions for jet finder
13
14#include "AliJetFinder.h"
15
16using namespace std ;
17
7c6659fc 18
19// structure of jet and particles container
20struct varContainer
139cbd96 21{
22 Double_t pt; // pt of particle/jet
5cac8240 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
139cbd96 26};
7c6659fc 27
28class AliCdfJetHeader;
29
30class AliCdfJetFinder : public AliJetFinder
139cbd96 31{
32 public:
33 AliCdfJetFinder();
34 virtual ~AliCdfJetFinder();
35
36 void CreateOutputObjects(TList * const histos);
37 void FindJets();
38 void InitData();
39 void FindCones();
40 void ComputeConesWeight();
41 void WriteJets() ;
42 void AnalizeJets();
43 void Clean();
5cac8240 44
139cbd96 45 protected:
46 AliCdfJetFinder ( const AliCdfJetFinder& jf );
47 AliCdfJetFinder& operator = ( const AliCdfJetFinder& jf );
7c6659fc 48
139cbd96 49 TList* fHistos; // List of histograms
7c6659fc 50
139cbd96 51 Bool_t fAODwrite ; // write jets to AOD
52 Bool_t fAODtracksWrite; // write jet tracks to AOD
53 Bool_t fAnalyseJets; // analyse jets
5cac8240 54
139cbd96 55 Int_t fNJets; //! counter of number of jets
56 Int_t fNPart; //! number of particles in event
57 Int_t fNInC; //! number of charged particles in event
58 Int_t fNInN; //! number of neutral cells in event
7c6659fc 59
139cbd96 60 Double_t fRadius; // radius of jet
7c6659fc 61
139cbd96 62 Int_t fMinJetParticles; // leading jet must contain AT LEAST fMinJetParticles
63 Double_t fJetPtCut; // leading jet must have AT LEAST fJetPtCut
7c6659fc 64
139cbd96 65 varContainer** fVectParticle; //! container for Particles
66 varContainer** fVectJet; //! container for Jets
7c6659fc 67
139cbd96 68 Double_t* fPtArray; //! momentum array
69 Int_t* fIdxArray; //! index array of sorted pts
7c6659fc 70
139cbd96 71 ClassDef(AliCdfJetFinder,3) // CDF jet finder
7c6659fc 72
139cbd96 73};
7c6659fc 74#endif
75