#include <test/EmbeddingLHEProducer/plugins/EmbeddingLHEProducer.cc>
Public Member Functions | |
EmbeddingLHEProducer (const edm::ParameterSet &) | |
~EmbeddingLHEProducer () | |
Public Member Functions inherited from edm::one::EDProducer< edm::BeginRunProducer, edm::EndRunProducer > | |
EDProducer ()=default | |
Public Member Functions inherited from edm::one::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
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) |
virtual void | beginJob () override |
virtual void | beginRunProduce (edm::Run &run, edm::EventSetup const &es) override |
virtual void | endJob () override |
virtual 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) |
virtual 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 | |
std::ofstream | file |
bool | mirror_ |
edm::EDGetTokenT< edm::View< pat::Muon > > | muonsCollection_ |
bool | rotate180_ |
std::string | studyFSRmode_ |
bool | switchToMuonEmbedding_ |
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 | |
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 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 118 of file EmbeddingLHEProducer.cc.
References Exception, FrontierConditions_GlobalTag_cff::file, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), edm::Service< T >::isAvailable(), MillePedeFileConverter_cfg::out, AlCaHLTBitMon_QueryRunRegistry::string, and estimatePileup_makeJSON::trunc.
EmbeddingLHEProducer::~EmbeddingLHEProducer | ( | ) |
Definition at line 153 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 392 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 222 of file EmbeddingLHEProducer.cc.
|
overrideprivatevirtual |
Definition at line 234 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 228 of file EmbeddingLHEProducer.cc.
|
overrideprivatevirtual |
Definition at line 282 of file EmbeddingLHEProducer.cc.
References LHERunInfoProduct::endOfFile(), and FrontierConditions_GlobalTag_cff::file.
|
private |
Definition at line 291 of file EmbeddingLHEProducer.cc.
References DOFs::Z.
|
private |
Definition at line 311 of file EmbeddingLHEProducer.cc.
References funct::abs(), 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 570 of file EmbeddingLHEProducer.cc.
References edm::ConfigurationDescriptions::addDefault(), DEFINE_FWK_MODULE, and edm::ParameterSetDescription::setUnknown().
|
private |
Definition at line 411 of file EmbeddingLHEProducer.cc.
References reco::Candidate::mother(), metsig::muon, and reco::Candidate::pdgId().
|
private |
Definition at line 473 of file EmbeddingLHEProducer.cc.
References LHERunInfoProduct::Header::addLine().
|
private |
Definition at line 446 of file EmbeddingLHEProducer.cc.
References DOFs::Z.
|
overrideprivatevirtual |
Definition at line 164 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 418 of file EmbeddingLHEProducer.cc.
References DOFs::Z.
|
private |
Definition at line 356 of file EmbeddingLHEProducer.cc.
References Scenarios_cff::scale, mathSSE::sqrt(), and DOFs::Z.
|
private |
Definition at line 106 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 103 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 112 of file EmbeddingLHEProducer.cc.
|
private |
Definition at line 102 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 107 of file EmbeddingLHEProducer.cc.