#include <MCParticleReplacer.h>
Public Member Functions | |
virtual void | beginJob () |
virtual void | beginRun (edm::Run &, const edm::EventSetup &) |
template<typename T > | |
void | call_produces (const std::string &instanceName) |
template<typename T > | |
void | call_put (T &product, const std::string &instanceName) |
virtual void | endJob () |
virtual void | endRun () |
edm::StreamID | getStreamID () const |
MCParticleReplacer (const edm::ParameterSet &) | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
~MCParticleReplacer () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Types | |
enum | HepMcMode { kInvalid = 0, kNew, kReplace } |
Static Private Member Functions | |
static HepMcMode | stringToHepMcMode (const std::string &name) |
Private Attributes | |
edm::Event * | evt_ |
HepMcMode | hepMcMode_ |
ParticleReplacerBase * | replacer_ |
edm::InputTag | src_ |
edm::InputTag | srcHepMC_ |
int | verbosity_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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) |
Replace muons reconstructed in selected Z –> mu+ mu- events by generator level particles, which will be passed to detector simulation & reconstruction modules to create "hybrid" events ("embedded" leptons from Monte Carlo simulation, rest of the event taken from data)
Per default, the reconstructed muons are replaced by generator level tau leptons, which are passed to TAUOLA in order to produce generator level tau decay products.
For systematic/background studies, it is possible also to:
Definition at line 35 of file MCParticleReplacer.h.
|
private |
Enumerator | |
---|---|
kInvalid | |
kNew | |
kReplace |
Definition at line 62 of file MCParticleReplacer.h.
|
explicit |
Definition at line 19 of file MCParticleReplacer.cc.
References HLT_FULL_cff::algorithm, edm::ParameterSet::exists(), reco::get(), edm::ParameterSet::getParameter(), replacer_, AlCaHLTBitMon_QueryRunRegistry::string, and verbosity_.
MCParticleReplacer::~MCParticleReplacer | ( | ) |
|
virtual |
Reimplemented from edm::EDProducer.
Definition at line 104 of file MCParticleReplacer.cc.
References ParticleReplacerBase::beginJob(), and replacer_.
|
virtual |
Definition at line 93 of file MCParticleReplacer.cc.
References ParticleReplacerBase::beginRun(), and replacer_.
|
inline |
Definition at line 48 of file MCParticleReplacer.h.
Referenced by ParticleReplacerZtautau::declareExtraProducts().
|
inline |
Definition at line 54 of file MCParticleReplacer.h.
References evt_, and edm::Event::put().
Referenced by ParticleReplacerZtautau::produce().
|
virtual |
Reimplemented from edm::EDProducer.
Definition at line 111 of file MCParticleReplacer.cc.
References ParticleReplacerBase::endJob(), and replacer_.
|
virtual |
Definition at line 98 of file MCParticleReplacer.cc.
References ParticleReplacerBase::endRun(), and replacer_.
|
inline |
Definition at line 59 of file MCParticleReplacer.h.
References assert(), evt_, and edm::Event::streamID().
Referenced by ParticleReplacerZtautau::produce().
|
virtual |
Implements edm::EDProducer.
Definition at line 53 of file MCParticleReplacer.cc.
References reco::Candidate::charge(), evt_, Exception, edm::Event::getByLabel(), getSelMuons(), getTheMuMinus(), getTheMuPlus(), hepMcMode_, info(), edm::RefToBase< T >::isNonnull(), kNew, kReplace, patZpeak::muons, reco::Candidate::p4(), ParticleReplacerBase::passed_, ParticleReplacerBase::produce(), edm::Event::put(), replacer_, src_, srcHepMC_, AlCaHLTBitMon_QueryRunRegistry::string, ParticleReplacerBase::tried_, and reco::Candidate::vertex().
|
staticprivate |
Definition at line 44 of file MCParticleReplacer.cc.
References Exception, kNew, and kReplace.
|
private |
Definition at line 69 of file MCParticleReplacer.h.
Referenced by call_put(), getStreamID(), and produce().
|
private |
Definition at line 67 of file MCParticleReplacer.h.
Referenced by produce().
|
private |
Definition at line 68 of file MCParticleReplacer.h.
Referenced by beginJob(), beginRun(), endJob(), endRun(), MCParticleReplacer(), produce(), and ~MCParticleReplacer().
|
private |
Definition at line 65 of file MCParticleReplacer.h.
Referenced by produce().
|
private |
Definition at line 66 of file MCParticleReplacer.h.
Referenced by produce().
|
private |
Definition at line 71 of file MCParticleReplacer.h.
Referenced by MCParticleReplacer().