]>
Commit | Line | Data |
---|---|---|
1729d31f | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | //------------------------------------------------------------------------- | |
b8bf1e90 | 17 | // AOD class for jet backgrounds |
1729d31f | 18 | // Author: Christian Klein-Boesing IKP Muenster |
19 | //------------------------------------------------------------------------- | |
20 | ||
21 | ||
b8bf1e90 | 22 | #include "AliAODJetEventBackground.h" |
1729d31f | 23 | |
b8bf1e90 | 24 | ClassImp(AliAODJetEventBackground) |
1729d31f | 25 | |
b8bf1e90 | 26 | TString AliAODJetEventBackground::fgkStdBranchName("jeteventbackground"); |
1729d31f | 27 | |
28 | ||
29 | ||
30 | //______________________________________________________________________________ | |
b8bf1e90 | 31 | AliAODJetEventBackground::AliAODJetEventBackground() : |
4cfb4007 | 32 | TNamed() |
1729d31f | 33 | { |
aa7e002c | 34 | // Constructor |
1729d31f | 35 | for(int i = 0;i < kMaxBackground;++i){ |
36 | fBackground[i] = 0; | |
2ffbc0da | 37 | fSigma[i] = 0; |
38 | fMeanArea[i] = 0; | |
39 | ||
1729d31f | 40 | } |
41 | } | |
42 | ||
43 | //______________________________________________________________________________ | |
b8bf1e90 | 44 | AliAODJetEventBackground::~AliAODJetEventBackground() |
1729d31f | 45 | { |
46 | // | |
47 | // destructor | |
48 | // | |
49 | } | |
50 | ||
51 | //______________________________________________________________________________ | |
b8bf1e90 | 52 | AliAODJetEventBackground::AliAODJetEventBackground(const AliAODJetEventBackground& back) : |
4cfb4007 | 53 | TNamed(back) |
1729d31f | 54 | { |
55 | // | |
56 | // Copy constructor | |
57 | // | |
58 | for(int i = 0;i < kMaxBackground;++i){ | |
59 | fBackground[i] = back.fBackground[i]; | |
2ffbc0da | 60 | fSigma[i] = back.fSigma[i]; |
61 | fMeanArea[i] = back.fMeanArea[i]; | |
1729d31f | 62 | } |
63 | ||
64 | } | |
65 | ||
66 | //______________________________________________________________________________ | |
b8bf1e90 | 67 | AliAODJetEventBackground& AliAODJetEventBackground::operator=(const AliAODJetEventBackground& back) |
1729d31f | 68 | { |
69 | // | |
4cfb4007 | 70 | // Assignment operator |
1729d31f | 71 | // |
72 | ||
73 | if(this!=&back) { | |
4cfb4007 | 74 | TNamed::operator=(back); |
1729d31f | 75 | for(int i = 0;i < kMaxBackground;++i){ |
76 | fBackground[i] = back.fBackground[i]; | |
2ffbc0da | 77 | fSigma[i] = back.fSigma[i]; |
78 | fMeanArea[i] = back.fMeanArea[i]; | |
1729d31f | 79 | } |
80 | } | |
81 | ||
82 | return *this; | |
83 | } | |
84 | ||
b8bf1e90 | 85 | void AliAODJetEventBackground::Print(Option_t* /*option*/) const |
1729d31f | 86 | { |
87 | // | |
88 | // Print information of all data members | |
89 | // | |
90 | ||
91 | printf("Jet EventBackground :\n"); | |
92 | for(int i = 0;i < kMaxBackground;++i){ | |
2ffbc0da | 93 | printf("%d: %3.E GeV Sigma %3.E Mean Area %3.E \n",i,fBackground[i],fSigma[i],fMeanArea[i]); |
1729d31f | 94 | } |
95 | } | |
4cfb4007 | 96 | |
97 | void AliAODJetEventBackground::Reset() | |
98 | { | |
99 | // | |
100 | // reset information of all data members | |
101 | // | |
102 | for(int i = 0;i < kMaxBackground;++i){ | |
103 | fBackground[i] = 0; | |
2ffbc0da | 104 | fSigma[i] = 0; |
105 | fMeanArea[i] = 0; | |
4cfb4007 | 106 | } |
107 | } |