]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliUA1JetFinderV1.h
Dixed a crash when no proper files/data to display (Mikolaj)
[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   // others
27   void FindJets();
28   void RunAlgoritm(Float_t EtbgTotal, Double_t dEtTotal, Int_t& nJets,
29                    Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
30                    Float_t* etallJet, Int_t* ncellsJet);
31
32   void SubtractBackg(Int_t& nIn, Int_t&nJ, Float_t&EtbgTotalN,
33                       Float_t* ptT, Float_t* etaT, Float_t* phiT,
34                       Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
35                       Float_t* etsigJet,Int_t* multJet, Int_t* injet);
36
37   void SubtractBackgCone(Int_t& nIn, Int_t&nJ,Float_t& EtbgTotalN,
38                       Float_t* ptT, Float_t* etaT, Float_t* phiT,
39                       Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
40                       Float_t* etsigJet, Int_t* multJet, Int_t* injet);
41
42   void SubtractBackgRatio(Int_t& nIn, Int_t&nJ,Float_t& EtbgTotalN,
43                       Float_t* ptT, Float_t* etaT, Float_t* phiT,
44                       Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
45                       Float_t* etsigJet, Int_t* multJet, Int_t* injet);
46
47   void SubtractBackgStat(Int_t& nIn, Int_t&nJ,Float_t&EtbgTotalN,
48                       Float_t* ptT, Float_t* etaT, Float_t* phiT,
49                       Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
50                       Float_t* etsigJet, Int_t* multJet, Int_t* injet);
51   void Reset();
52   void Init();
53   void WriteJHeaderToFile();
54
55  protected:
56   AliUA1JetFinderV1(const AliUA1JetFinderV1& rJetF1);
57   AliUA1JetFinderV1& operator = (const AliUA1JetFinderV1& rhsf);
58   TH2F           * fLego;           //Lego Histo
59   ClassDef(AliUA1JetFinderV1,1)
60 };
61
62 #endif