GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Target size in pandaroot
Target size in pandaroot [message #15876] Mon, 17 February 2014 14:58 Go to next message
Karin Schönning
Messages: 65
Registered: August 2012
Location: Uppsala University
continuous participant
From: *physics.uu.se
Hej, I would like to simulate some reactions with extended targets, reproducing e.g. cluster jet and pellet sizes. Where do I change the size of the interaction region?
/Karin
Re: Target size in pandaroot [message #15877 is a reply to message #15876] Mon, 17 February 2014 15:19 Go to previous messageGo to next 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
Re: Target size in pandaroot [message #15879 is a reply to message #15877] Mon, 17 February 2014 18:04 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Some documentation here:

https://panda-wiki.gsi.de/foswiki/bin/view/Computing/VertexSmearing
Previous Topic: PandaRoot developer groups
Next Topic: RICH and TOF geometry in simulation
Goto Forum:
  


Current Time: Thu Apr 18 10:58:41 CEST 2024

Total time taken to generate the page: 0.01413 seconds