New classes for the fastjet interface. (Elena Bruna)
[u/mrichter/AliRoot.git] / JETAN / AliJetBkg.h
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
15 class AliJetFinder;
16 class AliESDEvent;
17 class TTree;
18 class TChain;
19 class TString;
20 class AliAODEvent;
21 class AliJetHistos;
22 class AliFastJetInput;
23
24 class 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;}
34     Float_t BkgFastJet();
35     Float_t BkgChargedFastJet();
36     Float_t BkgStat();
37     Float_t BkgFastJetCone(TClonesArray* fAODJets);
38     Float_t BkgRemoveJetLeading(TClonesArray* fAODJets);
39     Float_t BkgRemoveJetLeadingFromUArray(TClonesArray* fAODJets);
40     Float_t EtaToTheta(Float_t arg);
41     Bool_t EmcalAcceptance(const Float_t eta, const Float_t phi, const Float_t radius);
42     static Double_t BkgFunction(Double_t *x,Double_t *par);
43     
44  private:
45     Double_t CalcRho(vector<fastjet::PseudoJet> input_particles,Double_t RparamBkg,TString method);
46
47     AliJetReader *fReader;   //! reader
48     AliJetHeader *fHeader;   //! header
49     AliFastJetInput *fInputFJ; //! input particles
50
51   ClassDef(AliJetBkg, 1); // Analysis task for standard jet analysis
52 };
53  
54 #endif