git://git.uio.no
/
u
/
mrichter
/
AliRoot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use MC particle mass
[u/mrichter/AliRoot.git]
/
EVGEN
/
AliGenFLUKAsource.cxx
diff --git
a/EVGEN/AliGenFLUKAsource.cxx
b/EVGEN/AliGenFLUKAsource.cxx
index 2e35f0bd8b87c5a5fe184be4bc2a11532b299e99..262ed422b594a1a7c4c2fca032eba2f2a10b7e19 100644
(file)
--- a/
EVGEN/AliGenFLUKAsource.cxx
+++ b/
EVGEN/AliGenFLUKAsource.cxx
@@
-226,7
+226,7
@@
void AliGenFLUKAsource::Generate()
part=kIfluge[int(ifip)-1];
//
// Calculate momentum from kinetic energy and mass of the particle
-
amass = (TDatabasePDG::Instance())->GetParticle(part)->Mass(
);
+
amass = gMC->ParticleMass(part
);
prwn=fEkin*sqrt(1. + 2.*amass/fEkin);