ROOT logo
#ifndef AliAODJETBACKGROUND_H
#define AliAODJETBACKGROUND_H
/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

//-------------------------------------------------------------------------
//     AOD jet background class
//     Stores Different background calculations on an event by event level
//     Author: Christian Klein-Boesing, IKP Muenster
//-------------------------------------------------------------------------

#include "TNamed.h"
#include "TString.h"


class AliAODJetEventBackground : public TNamed {

 public:
    AliAODJetEventBackground();
    virtual ~AliAODJetEventBackground();
    AliAODJetEventBackground(const AliAODJetEventBackground& jet); 
    AliAODJetEventBackground& operator=(const AliAODJetEventBackground& jet);

    virtual void SetBackground(Int_t i,Double_t back,Double_t sigma,Double_t meanarea){
      fBackground[i] = back;
      fSigma[i]=sigma;
      fMeanArea[i]=meanarea;
    }

    virtual Double_t GetBackground(Int_t i){
      if(i>=0&&i<kMaxBackground)return fBackground[i];
      return 0;
    }


    virtual Double_t GetSigma(Int_t i){
      if(i>=0&&i<kMaxBackground)return fSigma[i];
      return 0;
    }

    virtual Double_t GetMeanarea(Int_t i){     
      if(i>=0&&i<kMaxBackground)return fMeanArea[i];     
      return 0;
    }


    static const char* StdBranchName(){return fgkStdBranchName.Data();}
    virtual void       Print(Option_t* /*option*/) const;
    virtual void       Reset();

    enum { kSmallR = 0,
	   kOnlyCharged,
	   kOutOfCone,
	   kStatistical,
	   kMaxBackground};

 private:
    static TString fgkStdBranchName;                    // Standard branch name
    Double32_t      fBackground[kMaxBackground];        // Background from different schemes, normalized to area

    Double32_t      fSigma[kMaxBackground];             // Sigma
    Double32_t      fMeanArea[kMaxBackground];          // Mean area 
    ClassDef(AliAODJetEventBackground,3);

};


#endif
 AliAODJetEventBackground.h:1
 AliAODJetEventBackground.h:2
 AliAODJetEventBackground.h:3
 AliAODJetEventBackground.h:4
 AliAODJetEventBackground.h:5
 AliAODJetEventBackground.h:6
 AliAODJetEventBackground.h:7
 AliAODJetEventBackground.h:8
 AliAODJetEventBackground.h:9
 AliAODJetEventBackground.h:10
 AliAODJetEventBackground.h:11
 AliAODJetEventBackground.h:12
 AliAODJetEventBackground.h:13
 AliAODJetEventBackground.h:14
 AliAODJetEventBackground.h:15
 AliAODJetEventBackground.h:16
 AliAODJetEventBackground.h:17
 AliAODJetEventBackground.h:18
 AliAODJetEventBackground.h:19
 AliAODJetEventBackground.h:20
 AliAODJetEventBackground.h:21
 AliAODJetEventBackground.h:22
 AliAODJetEventBackground.h:23
 AliAODJetEventBackground.h:24
 AliAODJetEventBackground.h:25
 AliAODJetEventBackground.h:26
 AliAODJetEventBackground.h:27
 AliAODJetEventBackground.h:28
 AliAODJetEventBackground.h:29
 AliAODJetEventBackground.h:30
 AliAODJetEventBackground.h:31
 AliAODJetEventBackground.h:32
 AliAODJetEventBackground.h:33
 AliAODJetEventBackground.h:34
 AliAODJetEventBackground.h:35
 AliAODJetEventBackground.h:36
 AliAODJetEventBackground.h:37
 AliAODJetEventBackground.h:38
 AliAODJetEventBackground.h:39
 AliAODJetEventBackground.h:40
 AliAODJetEventBackground.h:41
 AliAODJetEventBackground.h:42
 AliAODJetEventBackground.h:43
 AliAODJetEventBackground.h:44
 AliAODJetEventBackground.h:45
 AliAODJetEventBackground.h:46
 AliAODJetEventBackground.h:47
 AliAODJetEventBackground.h:48
 AliAODJetEventBackground.h:49
 AliAODJetEventBackground.h:50
 AliAODJetEventBackground.h:51
 AliAODJetEventBackground.h:52
 AliAODJetEventBackground.h:53
 AliAODJetEventBackground.h:54
 AliAODJetEventBackground.h:55
 AliAODJetEventBackground.h:56
 AliAODJetEventBackground.h:57
 AliAODJetEventBackground.h:58
 AliAODJetEventBackground.h:59
 AliAODJetEventBackground.h:60
 AliAODJetEventBackground.h:61
 AliAODJetEventBackground.h:62
 AliAODJetEventBackground.h:63
 AliAODJetEventBackground.h:64
 AliAODJetEventBackground.h:65
 AliAODJetEventBackground.h:66
 AliAODJetEventBackground.h:67
 AliAODJetEventBackground.h:68