GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » box generator  () 1 Vote
box generator [message #4264] Wed, 16 May 2007 17:24 Go to previous message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
hi I want to use the box generator
to simulate one uniforme momentum distribution
my detector is at a Z-distance -76.5 cm
from the center of Panda.

I do the following selection


boxGen->SetPRange(.1,1.); // GeV/c
// boxGen->SetPtRange(1.,1.); // GeV/c
boxGen->SetPhiRange(0., 360.); // Azimuth angle range [degree]
boxGen->SetThetaRange(0., 180.); // Polar angle in lab system range [degree]
boxGen->SetXYZ(0.,10., -760.); // vertex coordinates [mm]
primGen->AddGenerator(boxGen);


but I get any hit in the detector.
is it something wrong with
the parameters.
thanks a lot
alicia
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Addressing Hits by Array-index
Next Topic: decay off in geant4
Goto Forum:
  


Current Time: Fri Mar 29 10:10:55 CET 2024

Total time taken to generate the page: 0.01215 seconds