Skip to content
Snippets Groups Projects
Commit 6e43e3df authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (ParticleDecayer-00-00-19)

        * fix a bug in the particle decay vertex time
	                * tag as ParticleDecayer-00-00-19

2014-12-11 Antonio Policicchio <Antonio.Policicchio@cern.ch>
        * fix a bug in the particle decay vertex time
	        * tag as ParticleDecayer-00-00-18
parent 21cc67a4
No related branches found
No related tags found
No related merge requests found
################################################################################
# Package: ParticleDecayer
################################################################################
# Declare the package name:
atlas_subdir( ParticleDecayer )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Control/AthenaKernel
Generators/GeneratorModules
PRIVATE
GaudiKernel
Generators/GeneratorObjects )
# External dependencies:
find_package( CLHEP )
find_package( HepMC )
find_package( HepPDT )
# Remove the --as-needed linker flags:
atlas_disable_as_needed()
# Component(s) in the package:
atlas_add_component( ParticleDecayer
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${HEPPDT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS}
LINK_LIBRARIES ${HEPPDT_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} AthenaKernel GeneratorModulesLib GaudiKernel GeneratorObjects )
# Install files from the package:
atlas_install_headers( ParticleDecayer )
atlas_install_joboptions( share/*.py )
......@@ -211,7 +211,7 @@ StatusCode ParticleDecayer::setDecayPosition( HepMC::GenParticle* genpart, HepMC
double pz = genpart->momentum().pz();
double p = sqrt(px*px + py*py + pz*pz);
const CLHEP::HepLorentzVector posLV(((ctg*px/p)+(vtxp->position().x())), ((ctg*py/p)+(vtxp->position().y())), ((ctg*pz/p)+(vtxp->position().z())), ((0.001*ctg/(CLHEP::c_light))+(vtxp->position().t())));
const CLHEP::HepLorentzVector posLV(((ctg*px/p)+(vtxp->position().x())), ((ctg*py/p)+(vtxp->position().y())), ((ctg*pz/p)+(vtxp->position().z())), ((ctg)+(vtxp->position().t())));
//set the decay vertex position of the particle
//Create a HepMC vertex at the decay position of the particle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment