#include <BetafuncEvtVtxGenerator.h>
Definition at line 29 of file BetafuncEvtVtxGenerator.h.
Definition at line 40 of file BetafuncEvtVtxGenerator.cc.
References Exception, fbetastar, femittance, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, edm::ParameterSet::getParameter(), readDB_, and setBoost().
58 <<
"Error in BetafuncEvtVtxGenerator: " 59 <<
"Illegal resolution in Z (SigmaZ is negative)";
T getParameter(std::string const &) const
void setBoost(double alpha, double phi)
BaseEvtVtxGenerator(const edm::ParameterSet &)
BetafuncEvtVtxGenerator::~BetafuncEvtVtxGenerator |
( |
| ) |
|
|
override |
double BetafuncEvtVtxGenerator::BetaFunction |
( |
double |
z, |
|
|
double |
z0 |
|
) |
| const |
void BetafuncEvtVtxGenerator::betastar |
( |
double |
m = 0 | ) |
|
|
inline |
void BetafuncEvtVtxGenerator::emittance |
( |
double |
m = 0 | ) |
|
|
inline |
TMatrixD const * BetafuncEvtVtxGenerator::GetInvLorentzBoost |
( |
| ) |
const |
|
overridevirtual |
This method - and the comment - is a left-over from COBRA-OSCAR time : return the last generated event vertex. If no vertex has been generated yet, a NULL pointer is returned.
Implements BaseEvtVtxGenerator.
Definition at line 169 of file BetafuncEvtVtxGenerator.cc.
References boost_.
HepMC::FourVector BetafuncEvtVtxGenerator::newVertex |
( |
CLHEP::HepRandomEngine * |
engine | ) |
const |
|
overridevirtual |
return a new event vertex
Implements BaseEvtVtxGenerator.
Definition at line 93 of file BetafuncEvtVtxGenerator.cc.
References BetaFunction(), fSigmaZ, fTimeOffset, fX0, fY0, fZ0, mathSSE::sqrt(), X, DOFs::Y, and DOFs::Z.
98 double tmp_sigz = CLHEP::RandGaussQ::shoot(engine, 0.,
fSigmaZ);
103 tmp_sigx /=
sqrt(2.0);
104 X = CLHEP::RandGaussQ::shoot(engine, 0., tmp_sigx) +
fX0;
108 tmp_sigy /=
sqrt(2.0);
109 Y = CLHEP::RandGaussQ::shoot(engine, 0., tmp_sigy) +
fY0;
111 double tmp_sigt = CLHEP::RandGaussQ::shoot(engine, 0.,
fSigmaZ);
114 return HepMC::FourVector(X,Y,Z,T);
double BetaFunction(double z, double z0) const
beta function
void BetafuncEvtVtxGenerator::setBoost |
( |
double |
alpha, |
|
|
double |
phi |
|
) |
| |
|
private |
void BetafuncEvtVtxGenerator::sigmaZ |
( |
double |
s = 1.0 | ) |
|
void BetafuncEvtVtxGenerator::update |
( |
const edm::EventSetup & |
iEventSetup | ) |
|
|
private |
Definition at line 75 of file BetafuncEvtVtxGenerator.cc.
References edm::ESWatcher< T >::check(), SimBeamSpotObjects::fAlpha, SimBeamSpotObjects::fbetastar, fbetastar, SimBeamSpotObjects::femittance, femittance, SimBeamSpotObjects::fPhi, SimBeamSpotObjects::fSigmaZ, fSigmaZ, SimBeamSpotObjects::fTimeOffset, fTimeOffset, SimBeamSpotObjects::fX0, fX0, SimBeamSpotObjects::fY0, fY0, SimBeamSpotObjects::fZ0, fZ0, edm::EventSetup::get(), parameterWatcher_, readDB_, and setBoost().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), beginLuminosityBlock(), beginRun(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
void setBoost(double alpha, double phi)
edm::ESWatcher< SimBeamSpotObjectsRcd > parameterWatcher_
bool check(const edm::EventSetup &iSetup)
void BetafuncEvtVtxGenerator::X0 |
( |
double |
m = 0 | ) |
|
|
inline |
void BetafuncEvtVtxGenerator::Y0 |
( |
double |
m = 0 | ) |
|
|
inline |
void BetafuncEvtVtxGenerator::Z0 |
( |
double |
m = 0 | ) |
|
|
inline |
TMatrixD BetafuncEvtVtxGenerator::boost_ |
|
private |
double BetafuncEvtVtxGenerator::fbetastar |
|
private |
double BetafuncEvtVtxGenerator::femittance |
|
private |
double BetafuncEvtVtxGenerator::fSigmaZ |
|
private |
double BetafuncEvtVtxGenerator::fTimeOffset |
|
private |
double BetafuncEvtVtxGenerator::fX0 |
|
private |
double BetafuncEvtVtxGenerator::fY0 |
|
private |
double BetafuncEvtVtxGenerator::fZ0 |
|
private |
bool BetafuncEvtVtxGenerator::readDB_ |
|
private |