]> git.uio.no Git - u/mrichter/AliRoot.git/blame - JETAN/AliUA1JetFinderV2.h
Adding new macro, loadFromOCDB.C, for loading magnetic field, mapping and
[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,
ee7de0dd 38 Int_t& nJets, Float_t* etJet,Float_t* etaJet, Float_t* phiJet,
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,
47 const Float_t* etaT, const Float_t* phiT, const Float_t* cFlagT, const Float_t* cFlag2T,
48 const Float_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,
52 Float_t* ptT, Float_t* etaT, const Float_t* phiT, const Float_t* cFlagT, const Float_t* sFlagT,
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,
57 Float_t* ptT, Float_t* etaT, const Float_t* phiT, const Float_t* cFlagT, const Float_t* sFlagT,
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,
62 const Float_t* ptT, const Float_t* etaT, const Float_t* phiT, const Float_t* cFlagT,
63 const Float_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);
ee7de0dd 67 void WriteJHeaderToFile();
ee7de0dd 68 protected:
69 AliUA1JetFinderV2(const AliUA1JetFinderV2& rJetF1);
70 AliUA1JetFinderV2& operator = (const AliUA1JetFinderV2& rhsf);
be6e5811 71 TH2F * fLego; // Lego Histo
72 Int_t fDebug; // Debug option
73 Int_t fOpt; // Detector option (charged only or charged+neutral)
ee7de0dd 74
75 ClassDef(AliUA1JetFinderV2,1)
76};
77
78#endif