correcting baryon mass subtraction for visible energy in MC
[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,
c345674e 32 Float_t* const etJet,Float_t* const etaJet, Float_t* const phiJet,
33 Float_t* const etallJet, Int_t* const ncellsJet);
ee7de0dd 34
c345674e 35 void RunAlgoritm(Int_t nIn, Float_t* etCell, Float_t* const etaCell, Float_t* phiCell,
36 Int_t* const flagCell, const Float_t* etCell2, const Float_t* etaCell2, const Float_t* phiCell2,
be6e5811 37 const Int_t* flagCell2, Float_t etbgTotal, Double_t dEtTotal,
c345674e 38 Int_t& nJets, Float_t* const etJet, Float_t* const etaJet, Float_t* const phiJet,
39 Float_t* const etallJet, Int_t* const 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,
c345674e 43 Float_t* const etJet, const Float_t* etaJet, const Float_t* phiJet,
44 Float_t* const etsigJet,Int_t* const multJet, Int_t* const injet);
ee7de0dd 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,
c345674e 48 const Int_t* sFlagT, Float_t* const etJet, const Float_t* etaJet, const Float_t* phiJet,
49 Float_t* const etsigJet, Int_t* const multJet, Int_t* const injet);
8838ab7a 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,
c345674e 53 Float_t* const etJet, const Float_t* etaJet, const Float_t* phiJet,
54 Float_t* const etsigJet, Int_t* const multJet, Int_t* const injet);
ee7de0dd 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,
c345674e 58 Float_t* const etJet, const Float_t* etaJet, const Float_t* phiJet,
59 Float_t* const etsigJet, Int_t* const multJet, Int_t* const injet);
ee7de0dd 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,
c345674e 63 const Int_t* sFlagT, Float_t* const etJet, const Float_t* etaJet, const Float_t* phiJet,
64 Float_t* const etsigJet, Int_t* const multJet, Int_t* const injet);
ee7de0dd 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