cf54fe47ad22a53d5b87c4d29cf3fa0051de61dc
[u/mrichter/AliRoot.git] / JETAN / AliUA1JetFinderV1.h
1 #ifndef ALIUA1JETFINDERV1_H
2 #define ALIUA1JETFINDERV1_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++)
13 //---------------------------------------------------------------------
14
15 #include "AliJetFinder.h"
16 class AliUA1JetHeaderV1;
17 class TH2F;
18
19 class AliUA1JetFinderV1 : public AliJetFinder
20 {
21  public:
22
23   AliUA1JetFinderV1();
24   ~AliUA1JetFinderV1();
25
26   // getters
27
28   // setters
29   void SetJetHeader(AliUA1JetHeaderV1* h) {fHeader= h;}
30   // others
31   void FindJets();
32   void RunAlgoritm(Float_t EtbgTotal, Double_t dEtTotal, Int_t& nJets,
33                    Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
34                    Float_t* etallJet, Int_t* ncellsJet);
35
36   void SubtractBackg(Int_t& nIn, Int_t&nJ, Float_t&EtbgTotalN,
37                       Float_t* ptT, Float_t* etaT, Float_t* phiT,
38                       Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
39                       Float_t* etsigJet,Int_t* multJet, Int_t* injet);
40
41   void SubtractBackgCone(Int_t& nIn, Int_t&nJ,Float_t& EtbgTotalN,
42                       Float_t* ptT, Float_t* etaT, Float_t* phiT,
43                       Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
44                       Float_t* etsigJet, Int_t* multJet, Int_t* injet);
45
46   void SubtractBackgRatio(Int_t& nIn, Int_t&nJ,Float_t& EtbgTotalN,
47                       Float_t* ptT, Float_t* etaT, Float_t* phiT,
48                       Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
49                       Float_t* etsigJet, Int_t* multJet, Int_t* injet);
50
51   void SubtractBackgStat(Int_t& nIn, Int_t&nJ,Float_t&EtbgTotalN,
52                       Float_t* ptT, Float_t* etaT, Float_t* phiT,
53                       Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
54                       Float_t* etsigJet, Int_t* multJet, Int_t* injet);
55   void Reset();
56   void Init();
57   void WriteJHeaderToFile();
58
59  protected:
60   AliUA1JetFinderV1(const AliUA1JetFinderV1& rJetF1);
61   AliUA1JetFinderV1& operator = (const AliUA1JetFinderV1& rhsf);
62
63   AliUA1JetHeaderV1* fHeader;         // pointer to jet header
64   TH2F           * fLego;           //! Lego Histo
65
66   ClassDef(AliUA1JetFinderV1,1)
67 };
68
69 #endif