Classes | |
struct | SmearingParameters |
Public Member Functions | |
BeamDivergenceVtxGenerator (const edm::ParameterSet &) | |
void | produce (edm::Event &, const edm::EventSetup &) override |
~BeamDivergenceVtxGenerator () override=default | |
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 |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &) |
Private Member Functions | |
void | addSmearedGenParticle (const reco::GenParticle &gp, const SmearingParameters &sp, HepMC::GenEvent *genEvt) |
void | applySmearingHepMC (const SmearingParameters &sp, HepMC::GenEvent *genEvt) |
Static Private Member Functions | |
template<typename T > | |
static HepMC::FourVector | smearMomentum (const T &mom, const SmearingParameters &sp) |
Private Attributes | |
std::vector< edm::EDGetTokenT< reco::GenParticleCollection > > | genParticleTokens_ |
bool | simulateBeamDivergence_ |
bool | simulateVertex_ |
edm::EDGetTokenT< edm::HepMCProduct > | sourceToken_ |
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 27 of file BeamDivergenceVtxGenerator.cc.
|
explicit |
Definition at line 58 of file BeamDivergenceVtxGenerator.cc.
References genParticleTokens_, edm::ParameterSet::getParameter(), edm::Service< T >::isAvailable(), edm::InputTag::label(), and sourceToken_.
|
overridedefault |
|
private |
Definition at line 200 of file BeamDivergenceVtxGenerator.cc.
References TtGenEvtProducer_cfi::genEvt, GenParticle::GenParticle, runTauDisplay::gp, smearMomentum(), badGlobalMuonTaggersAOD_cff::vtx, BeamDivergenceVtxGenerator::SmearingParameters::vtx_x, BeamDivergenceVtxGenerator::SmearingParameters::vtx_y, and BeamDivergenceVtxGenerator::SmearingParameters::vtx_z.
Referenced by produce().
|
private |
Definition at line 181 of file BeamDivergenceVtxGenerator.cc.
References TtGenEvtProducer_cfi::genEvt, simulateBeamDivergence_, simulateVertex_, smearMomentum(), BeamDivergenceVtxGenerator::SmearingParameters::vtx_x, BeamDivergenceVtxGenerator::SmearingParameters::vtx_y, and BeamDivergenceVtxGenerator::SmearingParameters::vtx_z.
Referenced by produce().
|
static |
Definition at line 81 of file BeamDivergenceVtxGenerator.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and HLT_2018_cff::InputTag.
|
override |
Definition at line 98 of file BeamDivergenceVtxGenerator.cc.
References addSmearedGenParticle(), applySmearingHepMC(), BeamDivergenceVtxGenerator::SmearingParameters::bd_x_45, BeamDivergenceVtxGenerator::SmearingParameters::bd_x_56, BeamDivergenceVtxGenerator::SmearingParameters::bd_y_45, BeamDivergenceVtxGenerator::SmearingParameters::bd_y_56, TtGenEvtProducer_cfi::genEvt, genParticleTokens_, edm::EventSetup::get(), get, CTPPSBeamParameters::getBeamDivergenceX45(), CTPPSBeamParameters::getBeamDivergenceX56(), CTPPSBeamParameters::getBeamDivergenceY45(), CTPPSBeamParameters::getBeamDivergenceY56(), edm::RandomNumberGenerator::getEngine(), edm::HepMCProduct::GetEvent(), CTPPSBeamParameters::getVtxOffsetX45(), CTPPSBeamParameters::getVtxOffsetY45(), CTPPSBeamParameters::getVtxOffsetZ45(), CTPPSBeamParameters::getVtxStddevX(), CTPPSBeamParameters::getVtxStddevY(), CTPPSBeamParameters::getVtxStddevZ(), runTauDisplay::gp, iEvent, edm::EDGetTokenT< T >::isUninitialized(), eostools::move(), convertSQLitetoXML_cfg::output, simulateBeamDivergence_, simulateVertex_, sourceToken_, unpackBuffers-CaloStage2::token, BeamDivergenceVtxGenerator::SmearingParameters::vtx_x, BeamDivergenceVtxGenerator::SmearingParameters::vtx_y, and BeamDivergenceVtxGenerator::SmearingParameters::vtx_z.
|
staticprivate |
Definition at line 156 of file BeamDivergenceVtxGenerator.cc.
References BeamDivergenceVtxGenerator::SmearingParameters::bd_x_45, BeamDivergenceVtxGenerator::SmearingParameters::bd_x_56, BeamDivergenceVtxGenerator::SmearingParameters::bd_y_45, BeamDivergenceVtxGenerator::SmearingParameters::bd_y_56, AlCaHLTBitMon_ParallelJobs::p, Validation_hcalonly_cfi::sign, and mathSSE::sqrt().
Referenced by addSmearedGenParticle(), and applySmearingHepMC().
|
private |
Definition at line 40 of file BeamDivergenceVtxGenerator.cc.
Referenced by BeamDivergenceVtxGenerator(), and produce().
|
private |
Definition at line 43 of file BeamDivergenceVtxGenerator.cc.
Referenced by applySmearingHepMC(), and produce().
|
private |
Definition at line 42 of file BeamDivergenceVtxGenerator.cc.
Referenced by applySmearingHepMC(), and produce().
|
private |
Definition at line 39 of file BeamDivergenceVtxGenerator.cc.
Referenced by BeamDivergenceVtxGenerator(), and produce().