Corrected protection.
[u/mrichter/AliRoot.git] / STEER / AliAODJetEventBackground.h
CommitLineData
b8bf1e90 1#ifndef AliAODJETBACKGROUND_H
2#define AliAODJETBACKGROUND_H
1729d31f 3/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//-------------------------------------------------------------------------
7// AOD jet background class
8// Stores Different background calculations on an event by event level
9// Author: Christian Klein-Boesing, IKP Muenster
10//-------------------------------------------------------------------------
11
4cfb4007 12#include "TNamed.h"
cc30af18 13#include "TString.h"
1729d31f 14
15
4cfb4007 16class AliAODJetEventBackground : public TNamed {
1729d31f 17
18 public:
b8bf1e90 19 AliAODJetEventBackground();
20 virtual ~AliAODJetEventBackground();
21 AliAODJetEventBackground(const AliAODJetEventBackground& jet);
22 AliAODJetEventBackground& operator=(const AliAODJetEventBackground& jet);
1729d31f 23
2ffbc0da 24 virtual void SetBackground(Int_t i,Double_t back,Double_t sigma,Double_t meanarea){
1729d31f 25 fBackground[i] = back;
2ffbc0da 26 fSigma[i]=sigma;
27 fMeanArea[i]=meanarea;
1729d31f 28 }
29
30 virtual Double_t GetBackground(Int_t i){
31 if(i>=0&&i<kMaxBackground)return fBackground[i];
32 return 0;
33 }
34
2ffbc0da 35
36 virtual Double_t GetSigma(Int_t i){
37 if(i>=0&&i<kMaxBackground)return fSigma[i];
38 return 0;
39 }
40
41 virtual Double_t GetMeanarea(Int_t i){
42 if(i>=0&&i<kMaxBackground)return fMeanArea[i];
43 return 0;
44 }
45
46
1729d31f 47 static const char* StdBranchName(){return fgkStdBranchName.Data();}
48 virtual void Print(Option_t* /*option*/) const;
4cfb4007 49 virtual void Reset();
1729d31f 50
51 enum { kSmallR = 0,
52 kOnlyCharged,
53 kOutOfCone,
54 kStatistical,
55 kMaxBackground};
56
57 private:
58 static TString fgkStdBranchName; // Standard branch name
59 Double32_t fBackground[kMaxBackground]; // Background from different schemes, normalized to area
2ffbc0da 60
61 Double32_t fSigma[kMaxBackground];
62 Double32_t fMeanArea[kMaxBackground];
63 ClassDef(AliAODJetEventBackground,3);
1729d31f 64
65};
66
67
68#endif