GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Target size in pandaroot
Re: Target size in pandaroot [message #15877 is a reply to message #15876] Mon, 17 February 2014 15:19 Go to previous messageGo to previous message
Stefan Pflueger is currently offline  Stefan Pflueger
Messages: 99
Registered: February 2012
continuous participant
From: *kph.uni-mainz.de
Hi,

You can change the IP distribution within FairPrimaryGenerator. Additionally beam tilts/gradiants can be adjusted here. In principle you have the choice between a gaussian or box distribution and their width/mean position for x,y and z. More general distributions are not supported atm I believe.

Check out:
https://subversion.gsi.de/trac/fairroot/browser/fairbase/tags/v-13.12/ba se/sim/FairPrimaryGenerator.h

Here is some example code:

//particle generator
FairPrimaryGenerator* primGen = new FairPrimaryGenerator();
primGen->SmearTypeVertexXY(1);
primGen->SetBeam(beam_X0, beam_Y0, beam_width_sigma_X, beam_width_sigma_Y);
primGen->SmearTypeVertexZ(2);
primGen->SetTarget(target_Z0, target_width_Z);
}
if (beam_grad_sigma_X > 0.0 || beam_grad_sigma_Y > 0.0) {
primGen->SetBeamAngle(beam_grad_X, beam_grad_Y, beam_grad_sigma_X,
beam_grad_sigma_Y);
}

You only have to be careful with the fairbase tag that is linked into pandaroot, which can be something older and then this code is not compatible.

Regards,

Stefan
 
Read Message
Read Message
Read Message
Previous Topic: PandaRoot developer groups
Next Topic: RICH and TOF geometry in simulation
Goto Forum:
  


Current Time: Fri Apr 19 19:00:00 CEST 2024

Total time taken to generate the page: 0.01351 seconds