Skip to content

Commit

Permalink
now reproduces zt distribution of latest HL-LHC beamspot
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Dec 9, 2016
1 parent eed59ba commit 5f33356
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
6 changes: 3 additions & 3 deletions IOMC/EventVertexGenerators/interface/HLLHCEvtVtxGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ class HLLHCEvtVtxGenerator : public BaseEvtVtxGenerator
//bunch length
const double sigs;

// fraction of crab cavity voltage
const double oncc;

//crabbing angle crossing
const double alphax;

//crabbing angle separation
const double alphay;

// ratio of crabbing angle to crossing angle
const double oncc;

//normalized crossing emittance
const double epsx;

Expand Down
7 changes: 3 additions & 4 deletions IOMC/EventVertexGenerators/python/VtxSmearedParameters_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,9 @@
RF800 = cms.bool(False),
BetaCrossingPlaneInm = cms.double(0.20),
BetaSeparationPlaneInm = cms.double(0.20),
HorizontalEmittance = cms.double(2.54924131e-06),
VerticalEmittance = cms.double(2.19302467e-06),
BunchLengthInm = cms.double(0.081),
CrabCavityVoltage = cms.double(1.0),
HorizontalEmittance = cms.double(2.5e-06),
VerticalEmittance = cms.double(2.05e-06),
BunchLengthInm = cms.double(0.09),
CrabbingAngleCrossingInurad = cms.double(380.0),
CrabbingAngleSeparationInurad = cms.double(0.0)
)
Expand Down
19 changes: 9 additions & 10 deletions IOMC/EventVertexGenerators/src/HLLHCEvtVtxGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ void HLLHCEvtVtxGenerator::fillDescriptions(edm::ConfigurationDescriptions &desc
desc.add<bool>("RF800", false);
desc.add<double>("BetaCrossingPlaneInm", 0.20);
desc.add<double>("BetaSeparationPlaneInm", 0.20);
desc.add<double>("HorizontalEmittance", 2.54924131e-06);
desc.add<double>("VerticalEmittance", 2.19302467e-06);
desc.add<double>("BunchLengthInm", 0.081);
desc.add<double>("CrabCavityVoltage", 1.0);
desc.add<double>("HorizontalEmittance", 2.5e-06);
desc.add<double>("VerticalEmittance", 2.05e-06);
desc.add<double>("BunchLengthInm", 0.09);
desc.add<edm::InputTag>("src");
desc.add<bool>("readDB");
descriptions.add("HLLHCEvtVtxGenerator",desc);
Expand All @@ -66,10 +65,10 @@ HLLHCEvtVtxGenerator::HLLHCEvtVtxGenerator(const edm::ParameterSet & p )
bets(p.getParameter<double>("BetaSeparationPlaneInm")),
epsxn(p.getParameter<double>("HorizontalEmittance")),
epssn(p.getParameter<double>("VerticalEmittance")),
sigs(p.getParameter<double>("BunchLengthInm")),
oncc(p.getParameter<double>("CrabCavityVoltage")),
alphax(oncc*p.getParameter<double>("CrabbingAngleCrossingInurad")*1e-6),
alphay(oncc*p.getParameter<double>("CrabbingAngleSeparationInurad")*1e-6),
sigs(p.getParameter<double>("BunchLengthInm")),
alphax(p.getParameter<double>("CrabbingAngleCrossingInurad")*1e-6),
alphay(p.getParameter<double>("CrabbingAngleSeparationInurad")*1e-6),
oncc(alphax/phi),
epsx(epsxn/(betagamma)),
epss(epsx),
sigx(std::sqrt(epsx*betx)),
Expand Down Expand Up @@ -171,9 +170,9 @@ double HLLHCEvtVtxGenerator::intensity(double x,
const double dx_plus = (z-t*ct)*(cax*st_plus-sax_plus*ct) - (x-t*st_plus)*(sax_plus*st_plus+cax*ct);
const double dx_minus = (z+t*ct)*(cax*st_minus-sax_minus*ct) - (x+t*st_minus)*(sax_minus*st_minus+cax*ct);

const double dx=-(z-t)*sax_plus -x*cax;
const double dx=/*-(z-t)*sax_plus*/ -x*cax;

const double dy=-(z-t)*say-y*cay;
const double dy=/*-(z-t)*say*/-y*cay;

const double zrho=rhozt(z,t);

Expand Down

0 comments on commit 5f33356

Please sign in to comment.