#include <GaussEvtVtxGenerator.h>
Public Member Functions | |
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
GaussEvtVtxGenerator (const edm::ParameterSet &p) | |
GaussEvtVtxGenerator (const GaussEvtVtxGenerator &p)=delete | |
TMatrixD const * | GetInvLorentzBoost () const override |
void | meanX (double m=0) |
set mean in X in cm More... | |
void | meanY (double m=0) |
set mean in Y in cm More... | |
void | meanZ (double m=0) |
set mean in Z in cm More... | |
HepMC::FourVector | newVertex (CLHEP::HepRandomEngine *) const override |
return a new event vertex More... | |
GaussEvtVtxGenerator & | operator= (const GaussEvtVtxGenerator &rhs)=delete |
void | sigmaX (double s=1.0) |
set resolution in X in cm More... | |
void | sigmaY (double s=1.0) |
set resolution in Y in cm More... | |
void | sigmaZ (double s=1.0) |
set resolution in Z in cm More... | |
~GaussEvtVtxGenerator () 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 | update (const edm::EventSetup &iEventSetup) |
Private Attributes | |
edm::ESGetToken< SimBeamSpotObjects, SimBeamSpotObjectsRcd > | beamToken_ |
double | fMeanX |
double | fMeanY |
double | fMeanZ |
double | fSigmaX |
double | fSigmaY |
double | fSigmaZ |
double | fTimeOffset |
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 21 of file GaussEvtVtxGenerator.h.
GaussEvtVtxGenerator::GaussEvtVtxGenerator | ( | const edm::ParameterSet & | p | ) |
Definition at line 10 of file GaussEvtVtxGenerator.cc.
References beamToken_, Exception, fMeanX, fMeanY, fMeanZ, fSigmaX, fSigmaY, fSigmaZ, fTimeOffset, AlCaHLTBitMon_ParallelJobs::p, and readDB_.
|
delete |
Copy constructor
|
overridedefault |
|
override |
Definition at line 41 of file GaussEvtVtxGenerator.cc.
References update().
|
static |
Definition at line 95 of file GaussEvtVtxGenerator.cc.
References edm::ConfigurationDescriptions::add(), and submitPVResolutionJobs::desc.
|
inlineoverridevirtual |
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 38 of file GaussEvtVtxGenerator.h.
|
inline |
set mean in X in cm
Definition at line 48 of file GaussEvtVtxGenerator.h.
References fMeanX, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Y in cm
Definition at line 50 of file GaussEvtVtxGenerator.h.
References fMeanY, and visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Z in cm
Definition at line 52 of file GaussEvtVtxGenerator.h.
References fMeanZ, and visualization-live-secondInstance_cfg::m.
|
overridevirtual |
return a new event vertex
Implements BaseEvtVtxGenerator.
Definition at line 58 of file GaussEvtVtxGenerator.cc.
References fMeanX, fMeanY, fMeanZ, fSigmaX, fSigmaY, fSigmaZ, fTimeOffset, X, beamSpotPI::Y, and beamSpotPI::Z.
|
delete |
Copy assignment operator
void GaussEvtVtxGenerator::sigmaX | ( | double | s = 1.0 | ) |
set resolution in X in cm
Definition at line 68 of file GaussEvtVtxGenerator.cc.
References Exception, fSigmaX, and alignCSCRings::s.
void GaussEvtVtxGenerator::sigmaY | ( | double | s = 1.0 | ) |
set resolution in Y in cm
Definition at line 77 of file GaussEvtVtxGenerator.cc.
References Exception, fSigmaY, and alignCSCRings::s.
void GaussEvtVtxGenerator::sigmaZ | ( | double | s = 1.0 | ) |
set resolution in Z in cm
Definition at line 86 of file GaussEvtVtxGenerator.cc.
References Exception, fSigmaZ, and alignCSCRings::s.
|
private |
Definition at line 45 of file GaussEvtVtxGenerator.cc.
References beamToken_, edm::ESWatcher< T >::check(), fMeanX, fMeanY, fMeanZ, fSigmaX, fSigmaY, fSigmaZ, fTimeOffset, edm::EventSetup::getHandle(), SimBeamSpotObjects::meanX(), SimBeamSpotObjects::meanY(), SimBeamSpotObjects::meanZ(), parameterWatcher_, readDB_, SimBeamSpotObjects::sigmaX(), SimBeamSpotObjects::sigmaY(), SimBeamSpotObjects::sigmaZ(), and SimBeamSpotObjects::timeOffset().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), beginLuminosityBlock(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
Definition at line 63 of file GaussEvtVtxGenerator.h.
Referenced by GaussEvtVtxGenerator(), and update().
|
private |
Definition at line 58 of file GaussEvtVtxGenerator.h.
Referenced by GaussEvtVtxGenerator(), meanX(), newVertex(), and update().
|
private |
Definition at line 58 of file GaussEvtVtxGenerator.h.
Referenced by GaussEvtVtxGenerator(), meanY(), newVertex(), and update().
|
private |
Definition at line 58 of file GaussEvtVtxGenerator.h.
Referenced by GaussEvtVtxGenerator(), meanZ(), newVertex(), and update().
|
private |
Definition at line 57 of file GaussEvtVtxGenerator.h.
Referenced by GaussEvtVtxGenerator(), newVertex(), sigmaX(), and update().
|
private |
Definition at line 57 of file GaussEvtVtxGenerator.h.
Referenced by GaussEvtVtxGenerator(), newVertex(), sigmaY(), and update().
|
private |
Definition at line 57 of file GaussEvtVtxGenerator.h.
Referenced by GaussEvtVtxGenerator(), newVertex(), sigmaZ(), and update().
|
private |
Definition at line 59 of file GaussEvtVtxGenerator.h.
Referenced by GaussEvtVtxGenerator(), newVertex(), and update().
|
private |
Definition at line 62 of file GaussEvtVtxGenerator.h.
Referenced by update().
|
private |
Definition at line 55 of file GaussEvtVtxGenerator.h.
Referenced by GaussEvtVtxGenerator(), and update().