#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=default | |
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 |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
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 32 of file BetafuncEvtVtxGenerator.h.
BetafuncEvtVtxGenerator::BetafuncEvtVtxGenerator | ( | const edm::ParameterSet & | p | ) |
Definition at line 29 of file BetafuncEvtVtxGenerator.cc.
References beamToken_, Exception, fbetastar, femittance, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, AlCaHLTBitMon_ParallelJobs::p, readDB_, and setBoost().
|
delete |
Copy constructor
|
overridedefault |
|
override |
Definition at line 53 of file BetafuncEvtVtxGenerator.cc.
References update().
double BetafuncEvtVtxGenerator::BetaFunction | ( | double | z, |
double | z0 | ||
) | const |
beta function
Definition at line 93 of file BetafuncEvtVtxGenerator.cc.
References fbetastar, femittance, mathSSE::sqrt(), z, and HLTMuonOfflineAnalyzer_cfi::z0.
Referenced by newVertex().
|
inline |
set beta_star
Definition at line 62 of file BetafuncEvtVtxGenerator.h.
References fbetastar, and visualization-live-secondInstance_cfg::m.
|
inline |
emittance (no the normalized)
Definition at line 64 of file BetafuncEvtVtxGenerator.h.
References femittance, and visualization-live-secondInstance_cfg::m.
|
static |
Definition at line 141 of file BetafuncEvtVtxGenerator.cc.
References edm::ConfigurationDescriptions::add(), and submitPVResolutionJobs::desc.
|
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 139 of file BetafuncEvtVtxGenerator.cc.
References boost_.
|
overridevirtual |
return a new event vertex
Implements BaseEvtVtxGenerator.
Definition at line 71 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 97 of file BetafuncEvtVtxGenerator.cc.
References simBeamSpotPI::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 130 of file BetafuncEvtVtxGenerator.cc.
References Exception, fSigmaZ, and alignCSCRings::s.
|
private |
Definition at line 57 of file BetafuncEvtVtxGenerator.cc.
References SimBeamSpotObjects::alpha(), beamToken_, SimBeamSpotObjects::betaStar(), edm::ESWatcher< T >::check(), SimBeamSpotObjects::emittance(), fbetastar, femittance, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, edm::EventSetup::getHandle(), parameterWatcher_, SimBeamSpotObjects::phi(), readDB_, setBoost(), SimBeamSpotObjects::sigmaZ(), SimBeamSpotObjects::timeOffset(), SimBeamSpotObjects::x(), SimBeamSpotObjects::y(), and SimBeamSpotObjects::z().
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 55 of file BetafuncEvtVtxGenerator.h.
References fX0, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Y in cm
Definition at line 57 of file BetafuncEvtVtxGenerator.h.
References fY0, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Z in cm
Definition at line 59 of file BetafuncEvtVtxGenerator.h.
References fZ0, and visualization-live-secondInstance_cfg::m.
|
private |
Definition at line 86 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), and update().
|
private |
Definition at line 82 of file BetafuncEvtVtxGenerator.h.
Referenced by GetInvLorentzBoost(), and setBoost().
|
private |
Definition at line 78 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), betastar(), and update().
|
private |
Definition at line 78 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), BetaFunction(), emittance(), and update().
|
private |
Definition at line 76 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), sigmaZ(), and update().
|
private |
Definition at line 80 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), and update().
|
private |
Definition at line 75 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and X0().
|
private |
Definition at line 75 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and Y0().
|
private |
Definition at line 75 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), newVertex(), update(), and Z0().
|
private |
Definition at line 85 of file BetafuncEvtVtxGenerator.h.
Referenced by update().
|
private |
Definition at line 73 of file BetafuncEvtVtxGenerator.h.
Referenced by BetafuncEvtVtxGenerator(), and update().