#include <BetafuncEvtVtxGenerator.h>
Public Member Functions | |
void | Alpha (double m=0) |
angle between crossing plane and horizontal plane More... | |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
virtual void | beginRun (const edm::Run &, const edm::EventSetup &) override |
BetafuncEvtVtxGenerator (const edm::ParameterSet &p) | |
double | BetaFunction (double z, double z0) |
beta function More... | |
void | betastar (double m=0) |
set beta_star More... | |
void | emittance (double m=0) |
emittance (no the normalized) More... | |
virtual TMatrixD * | GetInvLorentzBoost () |
virtual HepMC::FourVector * | newVertex () |
return a new event vertex More... | |
void | Phi (double m=0) |
set half crossing angle More... | |
void | sigmaZ (double s=1.0) |
set resolution in Z in cm More... | |
void | X0 (double m=0) |
set mean in X in cm More... | |
void | Y0 (double m=0) |
set mean in Y in cm More... | |
void | Z0 (double m=0) |
set mean in Z in cm More... | |
virtual | ~BetafuncEvtVtxGenerator () |
Public Member Functions inherited from BaseEvtVtxGenerator | |
BaseEvtVtxGenerator (const edm::ParameterSet &) | |
virtual HepMC::FourVector * | lastVertex () |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
virtual | ~BaseEvtVtxGenerator () |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
BetafuncEvtVtxGenerator (const BetafuncEvtVtxGenerator &p) | |
BetafuncEvtVtxGenerator & | operator= (const BetafuncEvtVtxGenerator &rhs) |
void | update (const edm::EventSetup &iEventSetup) |
Private Attributes | |
double | alpha_ |
double | fbetastar |
double | femittance |
CLHEP::RandGaussQ * | fRandom |
double | fSigmaZ |
double | fTimeOffset |
double | fX0 |
double | fY0 |
double | fZ0 |
edm::ESWatcher < SimBeamSpotObjectsRcd > | parameterWatcher_ |
double | phi_ |
bool | readDB_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from BaseEvtVtxGenerator | |
CLHEP::HepRandomEngine & | getEngine () |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Protected Attributes inherited from BaseEvtVtxGenerator | |
TMatrixD * | boost_ |
double | fTimeOffset |
HepMC::FourVector * | fVertex |
Definition at line 30 of file BetafuncEvtVtxGenerator.h.
BetafuncEvtVtxGenerator::BetafuncEvtVtxGenerator | ( | const edm::ParameterSet & | p | ) |
Definition at line 41 of file BetafuncEvtVtxGenerator.cc.
References alpha_, edm::hlt::Exception, fbetastar, femittance, fRandom, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, BaseEvtVtxGenerator::getEngine(), edm::ParameterSet::getParameter(), phi_, and readDB_.
|
virtual |
|
private |
Copy constructor
|
inline |
angle between crossing plane and horizontal plane
Definition at line 59 of file BetafuncEvtVtxGenerator.h.
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 74 of file BetafuncEvtVtxGenerator.cc.
References update().
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 77 of file BetafuncEvtVtxGenerator.cc.
References update().
double BetafuncEvtVtxGenerator::BetaFunction | ( | double | z, |
double | z0 | ||
) |
beta function
Definition at line 131 of file BetafuncEvtVtxGenerator.cc.
References fbetastar, femittance, and mathSSE::sqrt().
Referenced by newVertex().
|
inline |
|
inline |
emittance (no the normalized)
Definition at line 64 of file BetafuncEvtVtxGenerator.h.
References femittance, and m.
|
virtual |
Implements BaseEvtVtxGenerator.
Definition at line 150 of file BetafuncEvtVtxGenerator.cc.
References alpha_, BaseEvtVtxGenerator::boost_, funct::cos(), phi_, funct::sin(), and funct::tan().
|
virtual |
return a new event vertex
Implements BaseEvtVtxGenerator.
Definition at line 104 of file BetafuncEvtVtxGenerator.cc.
References BetaFunction(), fRandom, fSigmaZ, fTimeOffset, BaseEvtVtxGenerator::fVertex, fX0, fY0, fZ0, mathSSE::sqrt(), X, and Gflash::Z.
|
private |
Copy assignment operator
|
inline |
void BetafuncEvtVtxGenerator::sigmaZ | ( | double | s = 1.0 | ) |
set resolution in Z in cm
Definition at line 138 of file BetafuncEvtVtxGenerator.cc.
References edm::hlt::Exception, fSigmaZ, and alignCSCRings::s.
|
private |
Definition at line 81 of file BetafuncEvtVtxGenerator.cc.
References alpha_, BaseEvtVtxGenerator::boost_, edm::ESWatcher< T >::check(), fbetastar, femittance, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, edm::EventSetup::get(), parameterWatcher_, phi_, and readDB_.
Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.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(), relval_steps.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().
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 79 of file BetafuncEvtVtxGenerator.h.
Referenced by Alpha(), BetafuncEvtVtxGenerator(), GetInvLorentzBoost(), and update().
|
private |
Definition at line 85 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), betastar(), and update().
|
private |
Definition at line 85 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), emittance(), and update().
|
private |
Definition at line 89 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), and ~BetafuncEvtVtxGenerator().
|
private |
Definition at line 83 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), sigmaZ(), and update().
|
private |
Definition at line 87 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), and update().
|
private |
Definition at line 82 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and X0().
|
private |
Definition at line 82 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and Y0().
|
private |
Definition at line 82 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and Z0().
|
private |
Definition at line 92 of file BetafuncEvtVtxGenerator.h.
Referenced by update().
|
private |
Definition at line 79 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), GetInvLorentzBoost(), Phi(), and update().
|
private |
Definition at line 77 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), and update().