GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Vertex smearing in FairPrimaryGenerator
Vertex smearing in FairPrimaryGenerator [message #11893] Thu, 26 May 2011 10:57
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *
Dear all,
I have added some vertex smearing to the tdr macros, in order to follow the "shape" of the pellet target:

 FairPrimaryGenerator* primGen = new FairPrimaryGenerator();
  primGen->SetTarget(0., 0.0275.);
  primGen->SetBeam(0., 0., 0.0275, 0.0275);

The smearing on XY is done using a gaus function, but the smearing on Z is just an uniform distribution:

void FairPrimaryGenerator::MakeVertex()
  if (fSmearVertexZ) vz = gRandom->Uniform(vz - fTargetDz/2.,
                            vz + fTargetDz/2.);

Is it possible to add a gaus smearing function, so that:

  if (fSmearVertexZGaus) vz = gRandom->Gaus(vz, fTargetDz);

I cannot do it by myself because it is on the base folder. We need this change to start the production.
Many thanks in advance.

Read Message
Previous Topic: Strange behaviour of CINT
Next Topic: URGENT: Dirc geometry?
Goto Forum:

Current Time: Mon Apr 22 21:50:58 CEST 2024

Total time taken to generate the page: 0.00755 seconds