#include <BetafuncEvtVtxGenerator.h>
Public Member Functions | |
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
void | beginRun (const edm::Run &, const edm::EventSetup &) override |
BetafuncEvtVtxGenerator (const edm::ParameterSet &p) | |
double | BetaFunction (double z, double z0) const |
beta function More... | |
void | betastar (double m=0) |
set beta_star More... | |
void | emittance (double m=0) |
emittance (no the normalized) More... | |
TMatrixD const * | GetInvLorentzBoost () const override |
HepMC::FourVector | newVertex (CLHEP::HepRandomEngine *) const override |
return a new event vertex 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... | |
~BetafuncEvtVtxGenerator () override | |
Public Member Functions inherited from BaseEvtVtxGenerator | |
BaseEvtVtxGenerator (const edm::ParameterSet &) | |
void | produce (edm::Event &, const edm::EventSetup &) override |
~BaseEvtVtxGenerator () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
~EDProducerBase () override | |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Private Member Functions | |
BetafuncEvtVtxGenerator (const BetafuncEvtVtxGenerator &p)=delete | |
BetafuncEvtVtxGenerator & | operator= (const BetafuncEvtVtxGenerator &rhs)=delete |
void | setBoost (double alpha, double phi) |
void | update (const edm::EventSetup &iEventSetup) |
Private Attributes | |
TMatrixD | boost_ |
double | fbetastar |
double | femittance |
double | fSigmaZ |
double | fTimeOffset |
double | fX0 |
double | fY0 |
double | fZ0 |
edm::ESWatcher< SimBeamSpotObjectsRcd > | parameterWatcher_ |
bool | readDB_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
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) |
Definition at line 29 of file BetafuncEvtVtxGenerator.h.
BetafuncEvtVtxGenerator::BetafuncEvtVtxGenerator | ( | const edm::ParameterSet & | p | ) |
Definition at line 40 of file BetafuncEvtVtxGenerator.cc.
References Exception, fbetastar, femittance, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, edm::ParameterSet::getParameter(), readDB_, and setBoost().
|
override |
Definition at line 64 of file BetafuncEvtVtxGenerator.cc.
|
privatedelete |
Copy constructor
|
overridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 68 of file BetafuncEvtVtxGenerator.cc.
References update().
|
override |
Definition at line 71 of file BetafuncEvtVtxGenerator.cc.
References update().
double BetafuncEvtVtxGenerator::BetaFunction | ( | double | z, |
double | z0 | ||
) | const |
beta function
Definition at line 117 of file BetafuncEvtVtxGenerator.cc.
References fbetastar, femittance, and mathSSE::sqrt().
Referenced by newVertex().
|
inline |
|
inline |
emittance (no the normalized)
Definition at line 58 of file BetafuncEvtVtxGenerator.h.
References alpha, and funct::m.
|
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_.
|
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.
|
privatedelete |
Copy assignment operator
|
private |
Definition at line 123 of file BetafuncEvtVtxGenerator.cc.
References boost_, funct::cos(), funct::sin(), and funct::tan().
Referenced by BetafuncEvtVtxGenerator(), and update().
void BetafuncEvtVtxGenerator::sigmaZ | ( | double | s = 1.0 | ) |
set resolution in Z in cm
Definition at line 157 of file BetafuncEvtVtxGenerator.cc.
References Exception, fSigmaZ, and alignCSCRings::s.
|
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().
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 81 of file BetafuncEvtVtxGenerator.h.
Referenced by GetInvLorentzBoost(), and setBoost().
|
private |
Definition at line 77 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), and update().
|
private |
Definition at line 77 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), and update().
|
private |
Definition at line 75 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), sigmaZ(), and update().
|
private |
Definition at line 79 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), and update().
|
private |
Definition at line 74 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), and update().
|
private |
Definition at line 74 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), and update().
|
private |
Definition at line 74 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), and update().
|
private |
Definition at line 84 of file BetafuncEvtVtxGenerator.h.
Referenced by update().
|
private |
Definition at line 72 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), and update().