#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 | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
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 |
Definition at line 29 of file BetafuncEvtVtxGenerator.h.
BetafuncEvtVtxGenerator::BetafuncEvtVtxGenerator | ( | const edm::ParameterSet & | p | ) |
Definition at line 36 of file BetafuncEvtVtxGenerator.cc.
References Exception, fbetastar, femittance, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, AlCaHLTBitMon_ParallelJobs::p, readDB_, and setBoost().
|
override |
Definition at line 55 of file BetafuncEvtVtxGenerator.cc.
|
privatedelete |
Copy constructor
|
override |
Definition at line 57 of file BetafuncEvtVtxGenerator.cc.
References update().
|
override |
double BetafuncEvtVtxGenerator::BetaFunction | ( | double | z, |
double | z0 | ||
) | const |
beta function
Definition at line 101 of file BetafuncEvtVtxGenerator.cc.
References fbetastar, femittance, mathSSE::sqrt(), z, and HLTMuonOfflineAnalyzer_cfi::z0.
Referenced by newVertex().
|
inline |
set beta_star
Definition at line 54 of file BetafuncEvtVtxGenerator.h.
References fbetastar, and visualization-live-secondInstance_cfg::m.
|
inline |
emittance (no the normalized)
Definition at line 56 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 147 of file BetafuncEvtVtxGenerator.cc.
References boost_.
|
overridevirtual |
return a new event vertex
Implements BaseEvtVtxGenerator.
Definition at line 79 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 105 of file BetafuncEvtVtxGenerator.cc.
References zMuMuMuonUserData::alpha, boost_, funct::cos(), phi, 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 138 of file BetafuncEvtVtxGenerator.cc.
References Exception, fSigmaZ, and alignCSCRings::s.
|
private |
Definition at line 62 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(), get, parameterWatcher_, readDB_, and setBoost().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), beginLuminosityBlock(), beginRun(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
inline |
set mean in X in cm
Definition at line 47 of file BetafuncEvtVtxGenerator.h.
References fX0, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Y in cm
Definition at line 49 of file BetafuncEvtVtxGenerator.h.
References fY0, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Z in cm
Definition at line 51 of file BetafuncEvtVtxGenerator.h.
References fZ0, and visualization-live-secondInstance_cfg::m.
|
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().