#include <BetafuncEvtVtxGenerator.h>
Public Member Functions | |
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
BetafuncEvtVtxGenerator (const edm::ParameterSet &p) | |
BetafuncEvtVtxGenerator (const BetafuncEvtVtxGenerator &p)=delete | |
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... | |
BetafuncEvtVtxGenerator & | operator= (const BetafuncEvtVtxGenerator &rhs)=delete |
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 | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Private Member Functions | |
void | setBoost (double alpha, double phi) |
void | update (const edm::EventSetup &iEventSetup) |
Private Attributes | |
edm::ESGetToken < SimBeamSpotObjects, SimBeamSpotObjectsRcd > | beamToken_ |
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<> | |
using | CacheTypes = CacheContexts< T...> |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T...> |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Definition at line 31 of file BetafuncEvtVtxGenerator.h.
BetafuncEvtVtxGenerator::BetafuncEvtVtxGenerator | ( | const edm::ParameterSet & | p | ) |
Definition at line 33 of file BetafuncEvtVtxGenerator.cc.
References beamToken_, Exception, fbetastar, femittance, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, edm::ParameterSet::getParameter(), readDB_, and setBoost().
|
delete |
Copy constructor
|
override |
Definition at line 55 of file BetafuncEvtVtxGenerator.cc.
|
override |
Definition at line 57 of file BetafuncEvtVtxGenerator.cc.
References update().
double BetafuncEvtVtxGenerator::BetaFunction | ( | double | z, |
double | z0 | ||
) | const |
beta function
Definition at line 99 of file BetafuncEvtVtxGenerator.cc.
References fbetastar, femittance, and mathSSE::sqrt().
Referenced by newVertex().
|
inline |
set beta_star
Definition at line 59 of file BetafuncEvtVtxGenerator.h.
References fbetastar, and visualization-live-secondInstance_cfg::m.
|
inline |
emittance (no the normalized)
Definition at line 61 of file BetafuncEvtVtxGenerator.h.
References femittance, and visualization-live-secondInstance_cfg::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 145 of file BetafuncEvtVtxGenerator.cc.
References boost_.
|
overridevirtual |
return a new event vertex
Implements BaseEvtVtxGenerator.
Definition at line 77 of file BetafuncEvtVtxGenerator.cc.
References BetaFunction(), fSigmaZ, fTimeOffset, fX0, fY0, fZ0, mathSSE::sqrt(), X, BeamSpotPI::Y, and BeamSpotPI::Z.
|
delete |
Copy assignment operator
|
private |
Definition at line 103 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 136 of file BetafuncEvtVtxGenerator.cc.
References Exception, fSigmaZ, and alignCSCRings::s.
|
private |
Definition at line 61 of file BetafuncEvtVtxGenerator.cc.
References beamToken_, edm::ESWatcher< T >::check(), fbetastar, femittance, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, edm::EventSetup::getHandle(), parameterWatcher_, readDB_, and setBoost().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), beginLuminosityBlock(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
inline |
set mean in X in cm
Definition at line 52 of file BetafuncEvtVtxGenerator.h.
References fX0, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Y in cm
Definition at line 54 of file BetafuncEvtVtxGenerator.h.
References fY0, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Z in cm
Definition at line 56 of file BetafuncEvtVtxGenerator.h.
References fZ0, and visualization-live-secondInstance_cfg::m.
|
private |
Definition at line 83 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), and update().
|
private |
Definition at line 79 of file BetafuncEvtVtxGenerator.h.
Referenced by GetInvLorentzBoost(), and setBoost().
|
private |
Definition at line 75 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), betastar(), and update().
|
private |
Definition at line 75 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), emittance(), and update().
|
private |
Definition at line 73 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), sigmaZ(), and update().
|
private |
Definition at line 77 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), and update().
|
private |
Definition at line 72 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and X0().
|
private |
Definition at line 72 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and Y0().
|
private |
Definition at line 72 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and Z0().
|
private |
Definition at line 82 of file BetafuncEvtVtxGenerator.h.
Referenced by update().
|
private |
Definition at line 70 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), and update().