#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 (CLHEP::HepRandomEngine *) |
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 () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) 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 |
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 |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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 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 29 of file BetafuncEvtVtxGenerator.h.
BetafuncEvtVtxGenerator::BetafuncEvtVtxGenerator | ( | const edm::ParameterSet & | p | ) |
Definition at line 40 of file BetafuncEvtVtxGenerator.cc.
References alpha_, Exception, fbetastar, femittance, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, edm::ParameterSet::getParameter(), phi_, and readDB_.
|
virtual |
Definition at line 63 of file BetafuncEvtVtxGenerator.cc.
|
private |
Copy constructor
|
inline |
angle between crossing plane and horizontal plane
Definition at line 58 of file BetafuncEvtVtxGenerator.h.
References alpha_, and visualization-live-secondInstance_cfg::m.
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 67 of file BetafuncEvtVtxGenerator.cc.
References update().
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 70 of file BetafuncEvtVtxGenerator.cc.
References update().
double BetafuncEvtVtxGenerator::BetaFunction | ( | double | z, |
double | z0 | ||
) |
beta function
Definition at line 124 of file BetafuncEvtVtxGenerator.cc.
References fbetastar, femittance, and mathSSE::sqrt().
Referenced by newVertex().
|
inline |
set beta_star
Definition at line 61 of file BetafuncEvtVtxGenerator.h.
References fbetastar, and visualization-live-secondInstance_cfg::m.
|
inline |
emittance (no the normalized)
Definition at line 63 of file BetafuncEvtVtxGenerator.h.
References femittance, and visualization-live-secondInstance_cfg::m.
|
virtual |
Implements BaseEvtVtxGenerator.
Definition at line 143 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 97 of file BetafuncEvtVtxGenerator.cc.
References BetaFunction(), fSigmaZ, fTimeOffset, BaseEvtVtxGenerator::fVertex, fX0, fY0, fZ0, mathSSE::sqrt(), X, and Gflash::Z.
|
private |
Copy assignment operator
|
inline |
set half crossing angle
Definition at line 56 of file BetafuncEvtVtxGenerator.h.
References visualization-live-secondInstance_cfg::m, and phi_.
void BetafuncEvtVtxGenerator::sigmaZ | ( | double | s = 1.0 | ) |
set resolution in Z in cm
Definition at line 131 of file BetafuncEvtVtxGenerator.cc.
References Exception, fSigmaZ, and alignCSCRings::s.
|
private |
Definition at line 74 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__(), 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().
|
inline |
set mean in X in cm
Definition at line 49 of file BetafuncEvtVtxGenerator.h.
References fX0, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Y in cm
Definition at line 51 of file BetafuncEvtVtxGenerator.h.
References fY0, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Z in cm
Definition at line 53 of file BetafuncEvtVtxGenerator.h.
References fZ0, and visualization-live-secondInstance_cfg::m.
|
private |
Definition at line 78 of file BetafuncEvtVtxGenerator.h.
Referenced by Alpha(), BetafuncEvtVtxGenerator(), GetInvLorentzBoost(), and update().
|
private |
Definition at line 84 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), betastar(), and update().
|
private |
Definition at line 84 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), emittance(), and update().
|
private |
Definition at line 82 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), sigmaZ(), and update().
|
private |
Definition at line 86 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), and update().
|
private |
Definition at line 81 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and X0().
|
private |
Definition at line 81 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and Y0().
|
private |
Definition at line 81 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and Z0().
|
private |
Definition at line 89 of file BetafuncEvtVtxGenerator.h.
Referenced by update().
|
private |
Definition at line 78 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), GetInvLorentzBoost(), Phi(), and update().
|
private |
Definition at line 76 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), and update().