]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliAODJetEventBackground.cxx
Fix Coverity 15062, 15063
[u/mrichter/AliRoot.git] / STEER / AliAODJetEventBackground.cxx
CommitLineData
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
24using namespace std;
25
b8bf1e90 26ClassImp(AliAODJetEventBackground)
1729d31f 27
b8bf1e90 28TString AliAODJetEventBackground::fgkStdBranchName("jeteventbackground");
1729d31f 29
30
31
32//______________________________________________________________________________
b8bf1e90 33AliAODJetEventBackground::AliAODJetEventBackground() :
4cfb4007 34 TNamed()
1729d31f 35{
36 for(int i = 0;i < kMaxBackground;++i){
37 fBackground[i] = 0;
2ffbc0da 38 fSigma[i] = 0;
39 fMeanArea[i] = 0;
40
1729d31f 41 }
42}
43
44//______________________________________________________________________________
b8bf1e90 45AliAODJetEventBackground::~AliAODJetEventBackground()
1729d31f 46{
47 //
48 // destructor
49 //
50}
51
52//______________________________________________________________________________
b8bf1e90 53AliAODJetEventBackground::AliAODJetEventBackground(const AliAODJetEventBackground& back) :
4cfb4007 54 TNamed(back)
1729d31f 55{
56 //
57 // Copy constructor
58 //
59 for(int i = 0;i < kMaxBackground;++i){
60 fBackground[i] = back.fBackground[i];
2ffbc0da 61 fSigma[i] = back.fSigma[i];
62 fMeanArea[i] = back.fMeanArea[i];
1729d31f 63 }
64
65}
66
67//______________________________________________________________________________
b8bf1e90 68AliAODJetEventBackground& AliAODJetEventBackground::operator=(const AliAODJetEventBackground& back)
1729d31f 69{
70 //
4cfb4007 71 // Assignment operator
1729d31f 72 //
73
74 if(this!=&back) {
4cfb4007 75 TNamed::operator=(back);
1729d31f 76 for(int i = 0;i < kMaxBackground;++i){
77 fBackground[i] = back.fBackground[i];
2ffbc0da 78 fSigma[i] = back.fSigma[i];
79 fMeanArea[i] = back.fMeanArea[i];
1729d31f 80 }
81 }
82
83 return *this;
84}
85
b8bf1e90 86void AliAODJetEventBackground::Print(Option_t* /*option*/) const
1729d31f 87{
88 //
89 // Print information of all data members
90 //
91
92 printf("Jet EventBackground :\n");
93 for(int i = 0;i < kMaxBackground;++i){
2ffbc0da 94 printf("%d: %3.E GeV Sigma %3.E Mean Area %3.E \n",i,fBackground[i],fSigma[i],fMeanArea[i]);
1729d31f 95 }
96}
4cfb4007 97
98void AliAODJetEventBackground::Reset()
99{
100 //
101 // reset information of all data members
102 //
103 for(int i = 0;i < kMaxBackground;++i){
104 fBackground[i] = 0;
2ffbc0da 105 fSigma[i] = 0;
106 fMeanArea[i] = 0;
4cfb4007 107 }
108}