Re: Target size in pandaroot [message #15877 is a reply to message #15876] |
Mon, 17 February 2014 15:19 |
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
|
|
|