AliPhysics  41af4b0 (41af4b0)
AliCaloTrackParticleCorrelation.cxx
Go to the documentation of this file.
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 
17 #include "AliAODJet.h"
18 
22 
23 //______________________________________________________________________________
29  fLeadingDetector(-1), fLeading(), fCorrJet(), fCorrBkg(), fRefJet(0),
30  fListOfObjArrays(0)
31 {
32 }
33 
34 //______________________________________________________________________________
47  fLeadingDetector(-1), fLeading(), fCorrJet(),
48  fCorrBkg(), fRefJet(0), fListOfObjArrays(new TList)
49 {
50  SetMomentum(new TLorentzVector(px, py, pz, e));
51 
52  fListOfObjArrays->SetOwner(kTRUE);
53 }
54 
55 //______________________________________________________________________________
66 {
67  fListOfObjArrays->SetOwner(kTRUE);
68 }
69 
70 //______________________________________________________________________________
81 {
82  fListOfObjArrays->SetOwner(kTRUE);
83 }
84 
85 //______________________________________________________________________________
90 {
92  {
93  fListOfObjArrays->Clear();
94  delete fListOfObjArrays ;
95  }
96 }
97 
98 //______________________________________________________________________________
103 {
104  AliCaloTrackParticle::Clear(""); //delete fMomentum
105 
106  if(fListOfObjArrays)
107  {
108  fListOfObjArrays->Clear();
109  delete fListOfObjArrays ;
110  }
111 }
112 
113 
114 //______________________________________________________________________________
120  fCorrJet(part.fCorrJet), fCorrBkg(part.fCorrBkg), fRefJet(part.fRefJet),
122 {
123 }
124 
125 //______________________________________________________________________________
129 //AliCaloTrackParticleCorrelation& AliCaloTrackParticleCorrelation::operator=(const AliCaloTrackParticleCorrelation& part)
130 //{
131 // if(this!=&part)
132 // {
133 // fRefJet = part.fRefJet ;
134 // fLeading = part.fLeading;
135 // fCorrJet = part.fCorrJet ;
136 // fCorrBkg = part.fCorrBkg;
137 // fListOfObjArrays = fListOfObjArrays;
138 // }
139 // return *this;
140 //}
141 
142 //______________________________________________________________________________
147 {
149 
150  if(GetJet()) GetJet()->Print("");
151 
152  printf("Leading Detector : %d\n",fLeadingDetector);
153  printf("Leading Particle 4-vector:\n");
154  printf(" E = %13.3f", fLeading.E() );
155  printf(" Px = %13.3f", fLeading.Px());
156  printf(" Py = %13.3f", fLeading.Py());
157  printf(" Pz = %13.3f\n", fLeading.Pz());
158 
159  if( fListOfObjArrays) fListOfObjArrays->Print("");
160 }
TRef fRefJet
Reference to jet found with JETAN and correlated with particle.
double Double_t
Definition: External.C:58
TLorentzVector fLeading
Leading Particle 4-momentum vector on opposite side of trigger particle.
Int_t fLeadingDetector
Detector where leading particle was measured.
Daughter of AliCaloTrackParticle that includes correlation part.
virtual void Print(Option_t *) const
Container for input particle information on CaloTrackCorr package.
TLorentzVector fCorrJet
Jet 4-momentum vector.
virtual void Clear(const Option_t *)
TLorentzVector fCorrBkg
Background 4-momentum vector.
TList * fListOfObjArrays
List with correlation reference arrays.
const char Option_t
Definition: External.C:48
virtual void SetMomentum(TLorentzVector *lv)