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 | |
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 &) |
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 | |
edm::ESGetToken< CTPPSBeamParameters, CTPPSBeamParametersRcd > | beamParametersToken_ |
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<> | |
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 29 of file BeamDivergenceVtxGenerator.cc.
|
explicit |
Definition at line 61 of file BeamDivergenceVtxGenerator.cc.
References genParticleTokens_, edm::ParameterSet::getParameter(), edm::Service< T >::isAvailable(), edm::InputTag::label(), and sourceToken_.
|
overridedefault |
|
private |
Definition at line 204 of file BeamDivergenceVtxGenerator.cc.
References TtGenEvtProducer_cfi::genEvt, GenParticle::GenParticle, runTauDisplay::gp, smearMomentum(), extraflags_cff::vtx, BeamDivergenceVtxGenerator::SmearingParameters::vtx_t, BeamDivergenceVtxGenerator::SmearingParameters::vtx_x, BeamDivergenceVtxGenerator::SmearingParameters::vtx_y, and BeamDivergenceVtxGenerator::SmearingParameters::vtx_z.
Referenced by produce().
|
private |
Definition at line 185 of file BeamDivergenceVtxGenerator.cc.
References TtGenEvtProducer_cfi::genEvt, simulateBeamDivergence_, simulateVertex_, smearMomentum(), BeamDivergenceVtxGenerator::SmearingParameters::vtx_t, BeamDivergenceVtxGenerator::SmearingParameters::vtx_x, BeamDivergenceVtxGenerator::SmearingParameters::vtx_y, and BeamDivergenceVtxGenerator::SmearingParameters::vtx_z.
Referenced by produce().
|
static |
Definition at line 85 of file BeamDivergenceVtxGenerator.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and ProducerED_cfi::InputTag.
|
override |
Definition at line 102 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, beamParametersToken_, TtGenEvtProducer_cfi::genEvt, genParticleTokens_, CTPPSBeamParameters::getBeamDivergenceX45(), CTPPSBeamParameters::getBeamDivergenceX56(), CTPPSBeamParameters::getBeamDivergenceY45(), CTPPSBeamParameters::getBeamDivergenceY56(), edm::RandomNumberGenerator::getEngine(), edm::HepMCProduct::GetEvent(), edm::EventSetup::getHandle(), CTPPSBeamParameters::getVtxOffsetT45(), CTPPSBeamParameters::getVtxOffsetX45(), CTPPSBeamParameters::getVtxOffsetY45(), CTPPSBeamParameters::getVtxOffsetZ45(), CTPPSBeamParameters::getVtxStddevT(), 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_t, BeamDivergenceVtxGenerator::SmearingParameters::vtx_x, BeamDivergenceVtxGenerator::SmearingParameters::vtx_y, and BeamDivergenceVtxGenerator::SmearingParameters::vtx_z.
|
staticprivate |
Definition at line 160 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 produce().
|
private |
Definition at line 41 of file BeamDivergenceVtxGenerator.cc.
Referenced by BeamDivergenceVtxGenerator(), and produce().
|
private |
Definition at line 44 of file BeamDivergenceVtxGenerator.cc.
Referenced by applySmearingHepMC(), and produce().
|
private |
Definition at line 43 of file BeamDivergenceVtxGenerator.cc.
Referenced by applySmearingHepMC(), and produce().
|
private |
Definition at line 39 of file BeamDivergenceVtxGenerator.cc.
Referenced by BeamDivergenceVtxGenerator(), and produce().