Protections for coverity: DIVIDE_BY_ZERO
[u/mrichter/AliRoot.git] / JETAN / AliJetBkg.h
CommitLineData
50c7d9f7 1#ifndef ALIJETBKG_H
2#define ALIJETBKG_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 //---------------------------------------------------------------------
7// Class to calculate the background per unit area
8// manages the search for jets
9// Authors: Elena Bruna elena.bruna@yale.edu
10// Sevil Salur ssalur@lbl.gov
11//
12//---------------------------------------------------------------------
13
14
15class AliJetFinder;
16class AliESDEvent;
17class TTree;
18class TChain;
19class TString;
20class AliAODEvent;
21class AliJetHistos;
22class AliFastJetInput;
23
24class AliJetBkg : public TObject
25{
26 public:
27 AliJetBkg();
28 AliJetBkg(const AliJetBkg &input);
29 AliJetBkg& operator=(const AliJetBkg& source);
30 virtual ~AliJetBkg() {;}
31 void SetHeader(AliJetHeader *header) {fHeader=header;}
32 void SetReader(AliJetReader *reader) {fReader=reader;}
33 void SetFastJetInput(AliFastJetInput *fjinput) {fInputFJ=fjinput;}
294056ab 34 void BkgFastJetb(Double_t& x,Double_t& y, Double_t& z);
35 void BkgFastJetWoHardest(Double_t& x,Double_t& y, Double_t& z);
50c7d9f7 36 Float_t BkgFastJet();
37 Float_t BkgChargedFastJet();
38 Float_t BkgStat();
39 Float_t BkgFastJetCone(TClonesArray* fAODJets);
1dfd2819 40// Float_t BkgRemoveJetLeading(TClonesArray* fAODJets);
50c7d9f7 41 Float_t BkgRemoveJetLeadingFromUArray(TClonesArray* fAODJets);
42 Float_t EtaToTheta(Float_t arg);
1240edf5 43 Bool_t EmcalAcceptance(const Float_t eta, const Float_t phi, const Float_t radius) const;
50c7d9f7 44 static Double_t BkgFunction(Double_t *x,Double_t *par);
45
46 private:
47 Double_t CalcRho(vector<fastjet::PseudoJet> input_particles,Double_t RparamBkg,TString method);
294056ab 48 void CalcRhob(Double_t& median, Double_t& sigma, Double_t&
49meanarea,vector<fastjet::PseudoJet> input_particles,Double_t RparamBkg,TString
50method);
51 void CalcRhoWoHardest(Double_t& median, Double_t& sigma, Double_t&
52meanarea,vector<fastjet::PseudoJet> input_particles,Double_t RparamBkg,TString
53method);
50c7d9f7 54 AliJetReader *fReader; //! reader
55 AliJetHeader *fHeader; //! header
56 AliFastJetInput *fInputFJ; //! input particles
57
58 ClassDef(AliJetBkg, 1); // Analysis task for standard jet analysis
59};
60
61#endif