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