GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » EMC » Uniform particle generation in solid angle
Uniform particle generation in solid angle [message #11678] Mon, 18 April 2011 09:07 Go to previous message
HosseinMoeini is currently offline  HosseinMoeini
Messages: 10
Registered: May 2007
Location: KVI Groningen
occasional visitor

From: *KVI.nl
Dear all,

I was wondering if there's an easy way to generate particles along a unit 3-vector. As I noticed, the box generator in emc_complete.c doesn't do this. Apparently, it draws a random number within the specified ranges of theta and phi. What I need is something like G4RandomDirection function. I hit the problem when I roughly calculated the solid angle coverage of the full EMC to be about 92%. Whereas, the efficiency calculation using the box generator gives me something around 85% which indicates a bigger probability for particle generation at the poles (entrance and exit holes of the EMC)! Am I missing something here or there is other alternative to the box generator?

Best regards
 
Read Message
Read Message
Read Message
Previous Topic: EmcDigiPositionDepth for Shashlyk
Next Topic: Access to clusters properties
Goto Forum:
  


Current Time: Fri Oct 04 13:12:40 CEST 2024

Total time taken to generate the page: 0.01748 seconds