Line data Source code
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 : //-------------------------------------------------------------------------
17 : // AOD class for jet backgrounds
18 : // Author: Christian Klein-Boesing IKP Muenster
19 : //-------------------------------------------------------------------------
20 :
21 :
22 : #include "AliAODJetEventBackground.h"
23 :
24 170 : ClassImp(AliAODJetEventBackground)
25 :
26 170 : TString AliAODJetEventBackground::fgkStdBranchName("jeteventbackground");
27 :
28 :
29 :
30 : //______________________________________________________________________________
31 : AliAODJetEventBackground::AliAODJetEventBackground() :
32 0 : TNamed()
33 0 : {
34 : // Constructor
35 0 : for(int i = 0;i < kMaxBackground;++i){
36 0 : fBackground[i] = 0;
37 0 : fSigma[i] = 0;
38 0 : fMeanArea[i] = 0;
39 :
40 : }
41 0 : }
42 :
43 : //______________________________________________________________________________
44 : AliAODJetEventBackground::~AliAODJetEventBackground()
45 0 : {
46 : //
47 : // destructor
48 : //
49 0 : }
50 :
51 : //______________________________________________________________________________
52 : AliAODJetEventBackground::AliAODJetEventBackground(const AliAODJetEventBackground& back) :
53 0 : TNamed(back)
54 0 : {
55 : //
56 : // Copy constructor
57 : //
58 0 : for(int i = 0;i < kMaxBackground;++i){
59 0 : fBackground[i] = back.fBackground[i];
60 0 : fSigma[i] = back.fSigma[i];
61 0 : fMeanArea[i] = back.fMeanArea[i];
62 : }
63 :
64 0 : }
65 :
66 : //______________________________________________________________________________
67 : AliAODJetEventBackground& AliAODJetEventBackground::operator=(const AliAODJetEventBackground& back)
68 : {
69 : //
70 : // Assignment operator
71 : //
72 :
73 0 : if(this!=&back) {
74 0 : TNamed::operator=(back);
75 0 : for(int i = 0;i < kMaxBackground;++i){
76 0 : fBackground[i] = back.fBackground[i];
77 0 : fSigma[i] = back.fSigma[i];
78 0 : fMeanArea[i] = back.fMeanArea[i];
79 : }
80 0 : }
81 :
82 0 : return *this;
83 : }
84 :
85 : void AliAODJetEventBackground::Print(Option_t* /*option*/) const
86 : {
87 : //
88 : // Print information of all data members
89 : //
90 :
91 0 : printf("Jet EventBackground :\n");
92 0 : for(int i = 0;i < kMaxBackground;++i){
93 0 : printf("%d: %3.E GeV Sigma %3.E Mean Area %3.E \n",i,fBackground[i],fSigma[i],fMeanArea[i]);
94 : }
95 0 : }
96 :
97 : void AliAODJetEventBackground::Reset()
98 : {
99 : //
100 : // reset information of all data members
101 : //
102 0 : for(int i = 0;i < kMaxBackground;++i){
103 0 : fBackground[i] = 0;
104 0 : fSigma[i] = 0;
105 0 : fMeanArea[i] = 0;
106 : }
107 0 : }
|