Debug option moved to the base class
[u/mrichter/AliRoot.git] / JETAN / AliUA1JetFinderV2.h
CommitLineData
ee7de0dd 1#ifndef ALIUA1JETFINDERV2_H
2#define ALIUA1JETFINDERV2_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7
8//---------------------------------------------------------------------
9// UA1 Cone Algorithm Finder V1
10// manages the search for jets
11// Author: Rafael.Diaz.Valdes@cern.ch
12// (version in c++)
ee7de0dd 13//---------------------------------------------------------------------
14
15#include "AliJetFinder.h"
be6e5811 16
ee7de0dd 17class AliUA1JetHeaderV1;
18class TH2F;
8838ab7a 19class TChain;
ee7de0dd 20
21class AliUA1JetFinderV2 : public AliJetFinder
22{
23 public:
24
25 AliUA1JetFinderV2();
26 ~AliUA1JetFinderV2();
27
28 // others
8838ab7a 29 void FindJetsC();
ee7de0dd 30 void FindJets();
8838ab7a 31 void RunAlgoritmC(Float_t EtbgTotal, Double_t dEtTotal, Int_t& nJets,
32 Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
33 Float_t* etallJet, Int_t* ncellsJet);
ee7de0dd 34
35 void RunAlgoritm(Int_t nIn, Float_t* etCell, Float_t* etaCell, Float_t* phiCell,
be6e5811 36 Int_t* flagCell, const Float_t* etCell2, const Float_t* etaCell2, const Float_t* phiCell2,
37 const Int_t* flagCell2, Float_t etbgTotal, Double_t dEtTotal,
446dbc09 38 Int_t& nJets, Float_t* etJet, Float_t* etaJet, Float_t* phiJet,
ee7de0dd 39 Float_t* etallJet, Int_t* ncellsJet);
8838ab7a 40
be6e5811 41 void SubtractBackgC(const Int_t& nIn, const Int_t&nJ, Float_t&EtbgTotalN,
42 const Float_t* ptT, const Float_t* etaT, const Float_t* phiT,
43 Float_t* etJet, const Float_t* etaJet, const Float_t* phiJet,
ee7de0dd 44 Float_t* etsigJet,Int_t* multJet, Int_t* injet);
45
be6e5811 46 void SubtractBackg(const Int_t& nIn, const Int_t&nJ, Float_t&EtbgTotalN, const Float_t* ptT, const Int_t* vectT,
446dbc09 47 const Float_t* etaT, const Float_t* phiT, const Int_t* cFlagT, const Int_t* cFlag2T,
48 const Int_t* sFlagT, Float_t* etJet, const Float_t* etaJet, const Float_t* phiJet,
8838ab7a 49 Float_t* etsigJet, Int_t* multJet, Int_t* injet);
50
be6e5811 51 void SubtractBackgCone(const Int_t& nIn, const Int_t&nJ,Float_t& EtbgTotalN,
446dbc09 52 Float_t* ptT, Float_t* etaT, const Float_t* phiT, const Int_t* cFlagT, const Int_t* sFlagT,
be6e5811 53 Float_t* etJet, const Float_t* etaJet, const Float_t* phiJet,
ee7de0dd 54 Float_t* etsigJet, Int_t* multJet, Int_t* injet);
55
be6e5811 56 void SubtractBackgRatio(const Int_t& nIn, const Int_t&nJ,Float_t& EtbgTotalN,
446dbc09 57 Float_t* ptT, Float_t* etaT, const Float_t* phiT, const Int_t* cFlagT, const Int_t* sFlagT,
be6e5811 58 Float_t* etJet, const Float_t* etaJet, const Float_t* phiJet,
ee7de0dd 59 Float_t* etsigJet, Int_t* multJet, Int_t* injet);
60
be6e5811 61 void SubtractBackgStat(const Int_t& nIn, const Int_t&nJ,Float_t&EtbgTotalN,
446dbc09 62 const Float_t* ptT, const Float_t* etaT, const Float_t* phiT, const Int_t* cFlagT,
63 const Int_t* sFlagT, Float_t* etJet, const Float_t* etaJet, const Float_t* phiJet,
ee7de0dd 64 Float_t* etsigJet, Int_t* multJet, Int_t* injet);
65 void Reset();
8838ab7a 66 void InitTask(TChain* tree);
446dbc09 67 void WriteJHeaderToFile() const;
ee7de0dd 68 protected:
69 AliUA1JetFinderV2(const AliUA1JetFinderV2& rJetF1);
70 AliUA1JetFinderV2& operator = (const AliUA1JetFinderV2& rhsf);
be6e5811 71 TH2F * fLego; // Lego Histo
be6e5811 72 Int_t fOpt; // Detector option (charged only or charged+neutral)
ee7de0dd 73
74 ClassDef(AliUA1JetFinderV2,1)
75};
76
77#endif