]>
Commit | Line | Data |
---|---|---|
1c5acb87 | 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 | /* $Id: AliAODPWG4ParticleCorrelation.h $ */ | |
17 | ||
18 | //------------------------------------------------------------------------- | |
19 | // AOD class for photon and other particles storage and | |
20 | // correlation studies | |
21 | // Author: Yves Schutz, CERN, Gustavo Conesa, INFN | |
22 | //------------------------------------------------------------------------- | |
23 | ||
24 | //-- ROOT system -- | |
25 | ||
26 | //-- Analysis system | |
27 | #include "AliAODPWG4ParticleCorrelation.h" | |
5e6a3170 | 28 | #include "AliAODJet.h" |
1c5acb87 | 29 | |
30 | ClassImp(AliAODPWG4ParticleCorrelation) | |
31 | ||
32 | ||
33 | //______________________________________________________________________________ | |
477d6cee | 34 | AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation() : |
35 | AliAODPWG4Particle(), fIsolated(kFALSE), | |
a3aebfff | 36 | fLeadingDetector(""), fLeading(), fCorrJet(), fCorrBkg(), fRefJet(0), |
591cc579 | 37 | fListOfObjArrays(new TList) |
1c5acb87 | 38 | { |
39 | // constructor | |
0da5958d | 40 | fListOfObjArrays->SetOwner(kTRUE); |
1c5acb87 | 41 | } |
42 | ||
43 | //______________________________________________________________________________ | |
44 | AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(Double_t px, Double_t py, Double_t pz, Double_t e): | |
477d6cee | 45 | AliAODPWG4Particle(), fIsolated(kFALSE), |
477d6cee | 46 | fLeadingDetector(""), fLeading(), fCorrJet(), |
591cc579 | 47 | fCorrBkg(), fRefJet(0), fListOfObjArrays(new TList) |
1c5acb87 | 48 | { |
49 | // constructor | |
477d6cee | 50 | SetMomentum(new TLorentzVector(px, py, pz, e)); |
0da5958d | 51 | fListOfObjArrays->SetOwner(kTRUE); |
52 | ||
1c5acb87 | 53 | } |
54 | ||
55 | //______________________________________________________________________________ | |
56 | AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(TLorentzVector & p): | |
477d6cee | 57 | AliAODPWG4Particle(p), fIsolated(kFALSE), |
591cc579 | 58 | fLeadingDetector(""), fLeading(), fCorrJet(), fCorrBkg(), fRefJet(0), fListOfObjArrays(new TList) |
1c5acb87 | 59 | { |
60 | // constructor | |
0da5958d | 61 | fListOfObjArrays->SetOwner(kTRUE); |
62 | ||
1c5acb87 | 63 | } |
64 | ||
65 | //______________________________________________________________________________ | |
66 | AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(AliAODPWG4Particle & p): | |
477d6cee | 67 | AliAODPWG4Particle(p), fIsolated(kFALSE), |
591cc579 | 68 | fLeadingDetector(""), fLeading(), fCorrJet(), fCorrBkg(),fRefJet(0), fListOfObjArrays(new TList) |
1c5acb87 | 69 | { |
70 | // constructor | |
0da5958d | 71 | fListOfObjArrays->SetOwner(kTRUE); |
72 | ||
1c5acb87 | 73 | } |
74 | ||
75 | //______________________________________________________________________________ | |
76 | AliAODPWG4ParticleCorrelation::~AliAODPWG4ParticleCorrelation() | |
77 | { | |
78 | // destructor | |
591cc579 | 79 | if(fListOfObjArrays){ |
80 | fListOfObjArrays->Clear(); | |
81 | delete fListOfObjArrays ; | |
a3aebfff | 82 | } |
1c5acb87 | 83 | } |
84 | ||
4695da48 | 85 | //______________________________________________________________________________ |
86 | void AliAODPWG4ParticleCorrelation::Clear(const Option_t* /*opt*/) | |
87 | { | |
88 | // Clear | |
032002d9 | 89 | |
90 | AliAODPWG4Particle::Clear(""); //delete fMomentum | |
91 | ||
4695da48 | 92 | if(fListOfObjArrays){ |
93 | fListOfObjArrays->Clear(); | |
94 | delete fListOfObjArrays ; | |
95 | } | |
96 | } | |
97 | ||
98 | ||
1c5acb87 | 99 | //______________________________________________________________________________ |
100 | AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(const AliAODPWG4ParticleCorrelation& part) : | |
477d6cee | 101 | AliAODPWG4Particle(part), fIsolated(part.fIsolated), |
477d6cee | 102 | fLeadingDetector(part.fLeadingDetector), fLeading(part.fLeading), |
a3aebfff | 103 | fCorrJet(part.fCorrJet), fCorrBkg(part.fCorrBkg), fRefJet(part.fRefJet), |
4695da48 | 104 | fListOfObjArrays(new TList) |
1c5acb87 | 105 | { |
106 | // Copy constructor | |
a3aebfff | 107 | |
1c5acb87 | 108 | } |
109 | ||
110 | //______________________________________________________________________________ | |
82679d84 | 111 | //AliAODPWG4ParticleCorrelation& AliAODPWG4ParticleCorrelation::operator=(const AliAODPWG4ParticleCorrelation& part) |
112 | //{ | |
113 | // // Assignment operator | |
114 | // if(this!=&part) { | |
115 | // | |
116 | // fIsolated = part.fIsolated; | |
117 | // fRefJet = part.fRefJet ; | |
118 | // fLeadingDetector =part.fLeadingDetector; | |
119 | // fLeading = part.fLeading; | |
120 | // fCorrJet = part.fCorrJet ; | |
121 | // fCorrBkg = part.fCorrBkg; | |
122 | // fListOfObjArrays = fListOfObjArrays; | |
123 | // | |
124 | // } | |
125 | // | |
126 | // return *this; | |
127 | //} | |
1c5acb87 | 128 | |
129 | //______________________________________________________________________________ | |
130 | void AliAODPWG4ParticleCorrelation::Print(Option_t* /*option*/) const | |
131 | { | |
132 | // Print information of all data members | |
133 | AliAODPWG4Particle::Print(""); | |
a3aebfff | 134 | |
1c5acb87 | 135 | if(fIsolated) printf("Isolated! \n"); |
a3aebfff | 136 | |
137 | if(GetJet()) GetJet()->Print(""); | |
138 | ||
1c5acb87 | 139 | printf("Leading Detector : %s\n",fLeadingDetector.Data()); |
a3aebfff | 140 | printf("Leading Particle 4-vector:\n"); |
141 | printf(" E = %13.3f", fLeading.E() ); | |
142 | printf(" Px = %13.3f", fLeading.Px()); | |
143 | printf(" Py = %13.3f", fLeading.Py()); | |
144 | printf(" Pz = %13.3f\n", fLeading.Pz()); | |
1c5acb87 | 145 | |
591cc579 | 146 | if( fListOfObjArrays) fListOfObjArrays->Print(""); |
1c5acb87 | 147 | } |