AliPhysics
96f6795 (96f6795)
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
AliReducedGeneratedParticle.cxx
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright(c) 1998-2015, 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
#include <TVector3.h>
16
#include "
AliReducedGeneratedParticle.h
"
17
19
ClassImp
(
HighPtTracks::AliReducedGeneratedParticle
)
21
22
namespace HighPtTracks {
23
27
AliReducedGeneratedParticle::AliReducedGeneratedParticle():
28
TObject
(),
29
fParticleID(-1),
30
fPDGCode(-10000),
31
fEnergy(-1.)
32
{
33
memset(
fPVec
, 0,
sizeof
(
Double_t
) * 3);
34
}
35
45
AliReducedGeneratedParticle::AliReducedGeneratedParticle
(
Int_t
id
,
Int_t
pdg
,
46
Double_t
px,
Double_t
py,
Double_t
pz,
Double_t
energy
):
47
TObject
(),
48
fParticleID(id),
49
fPDGCode(pdg),
50
fEnergy(energy)
51
{
52
fPVec
[0] = px;
53
fPVec
[1] = py;
54
fPVec
[2] = px;
55
}
56
60
AliReducedGeneratedParticle::~AliReducedGeneratedParticle
() {}
61
66
Double_t
AliReducedGeneratedParticle::Pt
()
const
{
67
TVector3 pvec(
fPVec
[0],
fPVec
[1],
fPVec
[2]);
68
return
pvec.Pt();
69
}
70
75
Double_t
AliReducedGeneratedParticle::Eta
()
const
{
76
TVector3 pvec(
fPVec
[0],
fPVec
[1],
fPVec
[2]);
77
return
pvec.Eta();
78
}
79
84
Double_t
AliReducedGeneratedParticle::Phi
()
const
{
85
TVector3 pvec(
fPVec
[0],
fPVec
[1],
fPVec
[2]);
86
return
pvec.Phi();
87
}
88
93
void
AliReducedGeneratedParticle::FillMomentumVector
(TVector3 &pvec)
const
{
94
pvec.SetXYZ(
fPVec
[0],
fPVec
[1],
fPVec
[2]);
95
}
96
97
98
}
/* namespace HighPtTracks */
99
pdg
Int_t pdg
Definition:
charmCutsOptimization.C:34
Double_t
double Double_t
Definition:
External.C:58
energy
energy
Definition:
HFPtSpectrum.C:44
HighPtTracks::AliReducedGeneratedParticle::~AliReducedGeneratedParticle
virtual ~AliReducedGeneratedParticle()
Definition:
AliReducedGeneratedParticle.cxx:60
HighPtTracks::AliReducedGeneratedParticle::FillMomentumVector
void FillMomentumVector(TVector3 &) const
Definition:
AliReducedGeneratedParticle.cxx:93
HighPtTracks::AliReducedGeneratedParticle::Pt
Double_t Pt() const
Definition:
AliReducedGeneratedParticle.cxx:66
HighPtTracks::AliReducedGeneratedParticle::AliReducedGeneratedParticle
AliReducedGeneratedParticle()
Definition:
AliReducedGeneratedParticle.cxx:27
Int_t
int Int_t
Definition:
External.C:63
HighPtTracks::AliReducedGeneratedParticle::Eta
Double_t Eta() const
Definition:
AliReducedGeneratedParticle.cxx:75
AliReducedGeneratedParticle.h
Declaration of class AliReducedGeneratedParticle.
HighPtTracks::AliReducedGeneratedParticle
Structure for reduced particle information at generator level.
Definition:
AliReducedGeneratedParticle.h:47
TObject
Definition:
External.C:76
ClassImp
ClassImp(AliAnalysisTaskDeltaPt) AliAnalysisTaskDeltaPt
Definition:
AliAnalysisTaskDeltaPt.cxx:27
HighPtTracks::AliReducedGeneratedParticle::fPVec
Double_t fPVec[3]
Particle momentum vector.
Definition:
AliReducedGeneratedParticle.h:134
HighPtTracks::AliReducedGeneratedParticle::Phi
Double_t Phi() const
Definition:
AliReducedGeneratedParticle.cxx:84
PWGJE
EMCALJetTasks
Tracks
AliReducedGeneratedParticle.cxx
Generated on Sun Jul 23 2017 16:21:25 for AliPhysics by
1.8.6