#include <TauSpinnerCMS.h>
Public Member Functions | |
virtual void | beginJob () override final |
virtual void | endJob () override final |
virtual void | initialize () |
virtual void | produce (edm::Event &, const edm::EventSetup &) override final |
void | setRandomEngine (CLHEP::HepRandomEngine *v) |
TauSpinnerCMS (const edm::ParameterSet &) | |
virtual | ~TauSpinnerCMS () |
Public Member Functions inherited from edm::one::EDProducer< edm::one::SharedResources > | |
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 double | flat () |
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 | GetLastSelf (const reco::GenParticle *Particle) |
void | GetRecoDaughters (const reco::GenParticle *Particle, std::vector< TauSpinner::SimpleParticle > &daughters, int parentpdgid) |
bool | isFirst (const reco::GenParticle *Particle) |
int | readParticlesfromReco (edm::Event &e, TauSpinner::SimpleParticle &X, TauSpinner::SimpleParticle &tau, TauSpinner::SimpleParticle &tau2, std::vector< TauSpinner::SimpleParticle > &tau_daughters, std::vector< TauSpinner::SimpleParticle > &tau2_daughters) |
Private Attributes | |
double | CMSEnergy_ |
edm::EDGetTokenT< reco::GenParticleCollection > | GenParticleCollectionToken_ |
edm::InputTag | gensrc_ |
edm::EDGetTokenT< edm::HepMCProduct > | hepmcCollectionToken_ |
int | Ipol_ |
bool | isLHPDFConfigured_ |
bool | isReco_ |
bool | isTauolaConfigured_ |
std::string | LHAPDFname_ |
int | MotherPDGID_ |
int | nonSM2_ |
int | nonSMN_ |
double | roundOff_ |
Static Private Attributes | |
static bool | fInitialized =false |
static CLHEP::HepRandomEngine * | fRandomEngine = 0 |
static bool | isTauSpinnerConfigure =false |
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) |
Definition at line 49 of file TauSpinnerCMS.h.
|
explicit |
Definition at line 23 of file TauSpinnerCMS.cc.
References GenParticleCollectionToken_, gensrc_, hepmcCollectionToken_, isReco_, and edm::SharedResourceNames::kTauola.
|
inlinevirtual |
Definition at line 52 of file TauSpinnerCMS.h.
References beginJob(), endJob(), flat(), and produce().
|
finaloverridevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 54 of file TauSpinnerCMS.cc.
Referenced by ~TauSpinnerCMS().
|
finaloverridevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 55 of file TauSpinnerCMS.cc.
Referenced by ~TauSpinnerCMS().
|
static |
Definition at line 263 of file TauSpinnerCMS.cc.
References DEFINE_FWK_MODULE, Exception, and fRandomEngine.
Referenced by initialize(), produce(), and ~TauSpinnerCMS().
|
private |
Definition at line 231 of file TauSpinnerCMS.cc.
References reco::CompositeRefCandidateT< D >::daughter(), mps_fire::i, reco::CompositeRefCandidateT< D >::numberOfDaughters(), and reco::LeafCandidate::pdgId().
Referenced by readParticlesfromReco().
|
private |
Definition at line 251 of file TauSpinnerCMS.cc.
References funct::abs(), reco::CompositeRefCandidateT< D >::daughter(), mps_fire::i, reco::CompositeRefCandidateT< D >::numberOfDaughters(), reco::LeafCandidate::p4(), and reco::LeafCandidate::pdgId().
Referenced by readParticlesfromReco().
|
virtual |
Definition at line 57 of file TauSpinnerCMS.cc.
References CMSEnergy_, fInitialized, flat(), initialize(), Ipol_, isLHPDFConfigured_, isTauolaConfigured_, isTauSpinnerConfigure, LHAPDFname_, nonSM2_, and nonSMN_.
Referenced by produce(), and setRandomEngine().
|
private |
Definition at line 241 of file TauSpinnerCMS.cc.
References mps_fire::i, reco::CompositeRefCandidateT< D >::mother(), reco::CompositeRefCandidateT< D >::numberOfMothers(), and reco::LeafCandidate::pdgId().
Referenced by readParticlesfromReco().
|
finaloverridevirtual |
Definition at line 79 of file TauSpinnerCMS.cc.
References funct::abs(), gather_cfg::cout, fInitialized, flat(), edm::Event::getByToken(), edm::HepMCProduct::GetEvent(), hepmcCollectionToken_, mps_fire::i, initialize(), isReco_, MotherPDGID_, eostools::move(), edm::Event::put(), readParticlesFromHepMC(), readParticlesfromReco(), reco::return(), roundOff_, trackingPlots::stat, edm::Event::streamID(), metsig::tau, and X.
Referenced by ~TauSpinnerCMS().
|
private |
Definition at line 176 of file TauSpinnerCMS.cc.
References funct::abs(), reco::Candidate::daughter(), GenParticleCollectionToken_, GenHFHadronMatcher_cfi::genParticles, edm::Event::getByToken(), GetLastSelf(), GetRecoDaughters(), mps_fire::i, isFirst(), NULL, reco::LeafCandidate::p4(), BPhysicsValidation_cfi::pdgid, reco::Candidate::pdgId(), and reco::LeafCandidate::pdgId().
Referenced by produce().
|
inline |
Definition at line 58 of file TauSpinnerCMS.h.
References fRandomEngine, initialize(), and findQualityFiles::v.
|
private |
Definition at line 66 of file TauSpinnerCMS.h.
Referenced by initialize().
|
staticprivate |
Definition at line 88 of file TauSpinnerCMS.h.
Referenced by initialize(), and produce().
|
staticprivate |
Definition at line 85 of file TauSpinnerCMS.h.
Referenced by flat(), and setRandomEngine().
|
private |
Definition at line 87 of file TauSpinnerCMS.h.
Referenced by readParticlesfromReco(), and TauSpinnerCMS().
|
private |
Definition at line 67 of file TauSpinnerCMS.h.
Referenced by TauSpinnerCMS().
|
private |
Definition at line 86 of file TauSpinnerCMS.h.
Referenced by produce(), and TauSpinnerCMS().
|
private |
Definition at line 68 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 64 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 62 of file TauSpinnerCMS.h.
Referenced by produce(), and TauSpinnerCMS().
|
private |
Definition at line 63 of file TauSpinnerCMS.h.
Referenced by initialize().
|
staticprivate |
Definition at line 69 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 65 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 68 of file TauSpinnerCMS.h.
Referenced by produce().
|
private |
Definition at line 68 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 68 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 83 of file TauSpinnerCMS.h.
Referenced by produce().