1 /**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 //-------------------------------------------------------------------------
17 // AOD class for jet backgrounds
18 // Author: Christian Klein-Boesing IKP Muenster
19 //-------------------------------------------------------------------------
22 #include "AliAODJetEventBackground.h"
24 ClassImp(AliAODJetEventBackground)
26 TString AliAODJetEventBackground::fgkStdBranchName("jeteventbackground");
30 //______________________________________________________________________________
31 AliAODJetEventBackground::AliAODJetEventBackground() :
35 for(int i = 0;i < kMaxBackground;++i){
43 //______________________________________________________________________________
44 AliAODJetEventBackground::~AliAODJetEventBackground()
51 //______________________________________________________________________________
52 AliAODJetEventBackground::AliAODJetEventBackground(const AliAODJetEventBackground& back) :
58 for(int i = 0;i < kMaxBackground;++i){
59 fBackground[i] = back.fBackground[i];
60 fSigma[i] = back.fSigma[i];
61 fMeanArea[i] = back.fMeanArea[i];
66 //______________________________________________________________________________
67 AliAODJetEventBackground& AliAODJetEventBackground::operator=(const AliAODJetEventBackground& back)
70 // Assignment operator
74 TNamed::operator=(back);
75 for(int i = 0;i < kMaxBackground;++i){
76 fBackground[i] = back.fBackground[i];
77 fSigma[i] = back.fSigma[i];
78 fMeanArea[i] = back.fMeanArea[i];
85 void AliAODJetEventBackground::Print(Option_t* /*option*/) const
88 // Print information of all data members
91 printf("Jet EventBackground :\n");
92 for(int i = 0;i < kMaxBackground;++i){
93 printf("%d: %3.E GeV Sigma %3.E Mean Area %3.E \n",i,fBackground[i],fSigma[i],fMeanArea[i]);
97 void AliAODJetEventBackground::Reset()
100 // reset information of all data members
102 for(int i = 0;i < kMaxBackground;++i){