#include <test/EmbeddingLHEProducer/plugins/EmbeddingLHEProducer.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | assign_4vector (TLorentzVector &Lepton, const pat::Muon *muon, std::string FSRmode) |
void | beginJob () override |
void | beginRunProduce (edm::Run &run, edm::EventSetup const &es) override |
void | endJob () override |
void | endRunProduce (edm::Run &, edm::EventSetup const &) override |
void | fill_lhe_from_mumu (TLorentzVector &positiveLepton, TLorentzVector &negativeLepton, lhef::HEPEUP &outlhe, CLHEP::HepRandomEngine *engine) |
void | fill_lhe_with_particle (lhef::HEPEUP &outlhe, TLorentzVector &particle, int pdgid, double spin, double ctau) |
const reco::Candidate * | find_original_muon (const reco::Candidate *muon) |
LHERunInfoProduct::Header | give_slha () |
void | mirror (TLorentzVector &positiveLepton, TLorentzVector &negativeLepton) |
void | produce (edm::Event &, const edm::EventSetup &) override |
void | rotate180 (TLorentzVector &positiveLepton, TLorentzVector &negativeLepton) |
void | transform_mumu_to_tautau (TLorentzVector &positiveLepton, TLorentzVector &negativeLepton) |
Private Attributes | |
const double | elMass_ = 0.00051 |
const int | embeddingParticles [3] {11,13,15} |
std::ofstream | file |
bool | mirror_ |
edm::EDGetTokenT< edm::View< pat::Muon > > | muonsCollection_ |
int | particleToEmbed_ |
bool | rotate180_ |
std::string | studyFSRmode_ |
const double | tauMass_ = 1.77682 |
edm::EDGetTokenT< reco::VertexCollection > | vertexCollection_ |
bool | write_lheout |
Additional Inherited Members | |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 73 of file EmbeddingLHEProducer.cc.
|
explicit |
Definition at line 120 of file EmbeddingLHEProducer.cc.
References begin, end, Exception, FrontierConditions_GlobalTag_cff::file, spr::find(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), edm::Service< T >::isAvailable(), MillePedeFileConverter_cfg::out, AlCaHLTBitMon_QueryRunRegistry::string, and estimatePileup_makeJSON::trunc.
|
override |
Definition at line 161 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 404 of file EmbeddingLHEProducer.cc.
References pat::PATObject< ObjectType >::genParticle(), reco::Candidate::p4(), and reco::LeafCandidate::p4().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 230 of file EmbeddingLHEProducer.cc.
|
overrideprivate |
Definition at line 242 of file EmbeddingLHEProducer.cc.
References popcon2dropbox::copy(), FrontierConditions_GlobalTag_cff::file, lhef::HEPRUP::IDWTUP, lhef::HEPRUP::LPRUP, eostools::move(), edm::Run::put(), lhef::HEPRUP::resize(), lhef::HEPRUP::XERRUP, lhef::HEPRUP::XMAXUP, and lhef::HEPRUP::XSECUP.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 236 of file EmbeddingLHEProducer.cc.
|
overrideprivate |
Definition at line 290 of file EmbeddingLHEProducer.cc.
References LHERunInfoProduct::endOfFile(), and FrontierConditions_GlobalTag_cff::file.
|
private |
Definition at line 299 of file EmbeddingLHEProducer.cc.
References DOFs::Z.
|
private |
Definition at line 319 of file EmbeddingLHEProducer.cc.
References funct::abs(), begin, end, spr::find(), lhef::HEPEUP::ICOLUP, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, BPhysicsValidation_cfi::pdgid, lhef::HEPEUP::PUP, lhef::HEPEUP::resize(), spin(), lhef::HEPEUP::SPINUP, and lhef::HEPEUP::VTIMUP.
|
static |
Definition at line 582 of file EmbeddingLHEProducer.cc.
References edm::ConfigurationDescriptions::addDefault(), DEFINE_FWK_MODULE, and edm::ParameterSetDescription::setUnknown().
|
private |
Definition at line 423 of file EmbeddingLHEProducer.cc.
References reco::Candidate::mother(), metsig::muon, and reco::Candidate::pdgId().
|
private |
Definition at line 485 of file EmbeddingLHEProducer.cc.
References LHERunInfoProduct::Header::addLine().
|
private |
Definition at line 458 of file EmbeddingLHEProducer.cc.
References DOFs::Z.
|
overrideprivate |
Definition at line 172 of file EmbeddingLHEProducer.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, edm::View< T >::begin(), popcon2dropbox::copy(), edm::View< T >::end(), FrontierConditions_GlobalTag_cff::file, edm::Event::getByToken(), edm::RandomNumberGenerator::getEngine(), lhef::HEPEUP::IDPRUP, EmbeddingLHEProducer_cfi::mirror, eostools::move(), metsig::muon, edm::Event::put(), EmbeddingLHEProducer_cfi::rotate180, lhef::HEPEUP::SCALUP, edm::Event::streamID(), and lhef::HEPEUP::XWGTUP.
|
private |
Definition at line 430 of file EmbeddingLHEProducer.cc.
References DOFs::Z.
|
private |
Definition at line 361 of file EmbeddingLHEProducer.cc.
References Scenarios_cff::scale, mathSSE::sqrt(), and DOFs::Z.
|
private |
Definition at line 105 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 106 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 108 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 103 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 100 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 102 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 103 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 114 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 104 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 101 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 109 of file EmbeddingLHEProducer.cc.