]>
Commit | Line | Data |
---|---|---|
1729d31f | 1 | #ifndef AliPWG4AODJETBACKGROUND_H |
2 | #define AliPWG4AODJETBACKGROUND_H | |
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 | ||
12 | #include "TObject.h" | |
13 | #include "TString.h"; | |
14 | ||
15 | ||
16 | class AliAODPWG4JetEventBackground : public TObject { | |
17 | ||
18 | public: | |
19 | AliAODPWG4JetEventBackground(); | |
20 | virtual ~AliAODPWG4JetEventBackground(); | |
21 | AliAODPWG4JetEventBackground(const AliAODPWG4JetEventBackground& jet); | |
22 | AliAODPWG4JetEventBackground& operator=(const AliAODPWG4JetEventBackground& jet); | |
23 | ||
24 | ||
25 | virtual void SetBackground(Int_t i,Double_t back){ | |
26 | fBackground[i] = back; | |
27 | } | |
28 | ||
29 | virtual Double_t GetBackground(Int_t i){ | |
30 | if(i>=0&&i<kMaxBackground)return fBackground[i]; | |
31 | return 0; | |
32 | } | |
33 | ||
34 | static const char* StdBranchName(){return fgkStdBranchName.Data();} | |
35 | virtual void Print(Option_t* /*option*/) const; | |
36 | ||
37 | enum { kSmallR = 0, | |
38 | kOnlyCharged, | |
39 | kOutOfCone, | |
40 | kStatistical, | |
41 | kMaxBackground}; | |
42 | ||
43 | private: | |
44 | static TString fgkStdBranchName; // Standard branch name | |
45 | Double32_t fBackground[kMaxBackground]; // Background from different schemes, normalized to area | |
46 | ClassDef(AliAODPWG4JetEventBackground,1); | |
47 | ||
48 | }; | |
49 | ||
50 | ||
51 | #endif |