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 | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () 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 28 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 218 of file BeamDivergenceVtxGenerator.cc.
References DEFINE_FWK_MODULE, GenParticle::GenParticle, reco::LeafCandidate::p4(), reco::LeafCandidate::pdgId(), smearMomentum(), reco::LeafCandidate::status(), extraflags_cff::vtx, 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 193 of file BeamDivergenceVtxGenerator.cc.
References simulateBeamDivergence_, simulateVertex_, smearMomentum(), 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(), and edm::ParameterDescriptionNode::setComment().
|
override |
Definition at line 103 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(), CTPPSBeamParameters::getBeamDivergenceX45(), CTPPSBeamParameters::getBeamDivergenceX56(), CTPPSBeamParameters::getBeamDivergenceY45(), CTPPSBeamParameters::getBeamDivergenceY56(), edm::Event::getByToken(), edm::RandomNumberGenerator::getEngine(), edm::HepMCProduct::GetEvent(), CTPPSBeamParameters::getVtxOffsetX45(), CTPPSBeamParameters::getVtxOffsetY45(), CTPPSBeamParameters::getVtxOffsetZ45(), CTPPSBeamParameters::getVtxStddevX(), CTPPSBeamParameters::getVtxStddevY(), CTPPSBeamParameters::getVtxStddevZ(), runTauDisplay::gp, edm::EDGetTokenT< T >::isUninitialized(), eostools::move(), convertSQLitetoXML_cfg::output, edm::Event::put(), simulateBeamDivergence_, simulateVertex_, sourceToken_, edm::Event::streamID(), BeamDivergenceVtxGenerator::SmearingParameters::vtx_x, BeamDivergenceVtxGenerator::SmearingParameters::vtx_y, and BeamDivergenceVtxGenerator::SmearingParameters::vtx_z.
|
staticprivate |
Definition at line 166 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().