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 GenParticle::GenParticle, reco::LeafCandidate::p4(), reco::LeafCandidate::pdgId(), smearMomentum(), reco::LeafCandidate::status(), BeamDivergenceVtxGenerator::SmearingParameters::vtx_t, BeamDivergenceVtxGenerator::SmearingParameters::vtx_x, BeamDivergenceVtxGenerator::SmearingParameters::vtx_y, BeamDivergenceVtxGenerator::SmearingParameters::vtx_z, reco::LeafCandidate::vx(), reco::LeafCandidate::vy(), and reco::LeafCandidate::vz().
Referenced by produce().
|
private |
Definition at line 185 of file BeamDivergenceVtxGenerator.cc.
References 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(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and edm::ParameterDescriptionNode::setComment().
|
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_, edm::Event::getByToken(), edm::RandomNumberGenerator::getEngine(), edm::EventSetup::getHandle(), runTauDisplay::gp, edm::EDGetTokenT< T >::isUninitialized(), eostools::move(), convertSQLitetoXML_cfg::output, edm::Event::put(), simulateBeamDivergence_, simulateVertex_, sourceToken_, edm::Event::streamID(), 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, jetcorrextractor::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().