Skip to content

Commit

Permalink
divide widths by sqrt(2) to get beamspot width correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Burkett committed Mar 8, 2011
1 parent 7bb509d commit 0653e2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion IOMC/EventVertexGenerators/src/BetafuncEvtVtxGenerator.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

// $Id: BetafuncEvtVtxGenerator.cc,v 1.10 2009/05/25 12:46:04 fabiocos Exp $
// $Id: BetafuncEvtVtxGenerator.cc,v 1.11 2010/12/06 10:57:25 yumiceva Exp $
/*
________________________________________________________________________
Expand Down Expand Up @@ -74,9 +74,13 @@ HepMC::FourVector* BetafuncEvtVtxGenerator::newVertex() {
Z = tmp_sigz + fZ0;

double tmp_sigx = BetaFunction(Z,fZ0);
// need sqrt(2) for beamspot width relative to single beam width
tmp_sigx /= sqrt(2.0);
X = fRandom->fire(0.,tmp_sigx) + fX0; // + Z*fdxdz ;

double tmp_sigy = BetaFunction(Z,fZ0);
// need sqrt(2) for beamspot width relative to single beam width
tmp_sigy /= sqrt(2.0);
Y = fRandom->fire(0.,tmp_sigy) + fY0; // + Z*fdydz;

double tmp_sigt = fRandom->fire(0., fSigmaZ);
Expand Down

0 comments on commit 0653e2e

Please sign in to comment.