#include <TauSpinnerCMS.h>
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 = nullptr |
static bool | isTauSpinnerConfigure = false |
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::ProducerBase | |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
declare what type of product will make and with which optional label More... | |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
Definition at line 48 of file TauSpinnerCMS.h.
|
explicit |
Definition at line 23 of file TauSpinnerCMS.cc.
References GenParticleCollectionToken_, gensrc_, hepmcCollectionToken_, isReco_, and edm::SharedResourceNames::kTauola.
|
inlineoverride |
Definition at line 51 of file TauSpinnerCMS.h.
|
finalvirtual |
|
finalvirtual |
|
static |
Definition at line 285 of file TauSpinnerCMS.cc.
References Exception, and fRandomEngine.
Referenced by initialize(), and produce().
|
private |
Definition at line 250 of file TauSpinnerCMS.cc.
References mps_fire::i, and reco::LeafCandidate::pdgId().
Referenced by readParticlesfromReco().
|
private |
Definition at line 270 of file TauSpinnerCMS.cc.
References funct::abs(), BPhysicsValidation_cfi::daughters, mps_fire::i, and cmsswSequenceInfo::tp.
Referenced by readParticlesfromReco().
|
virtual |
Definition at line 56 of file TauSpinnerCMS.cc.
References CMSEnergy_, fInitialized, flat(), initialize(), Ipol_, isLHPDFConfigured_, isTauolaConfigured_, isTauSpinnerConfigure, LHAPDFname_, nonSM2_, and nonSMN_.
Referenced by produce().
|
private |
Definition at line 260 of file TauSpinnerCMS.cc.
References mps_fire::i, and reco::LeafCandidate::pdgId().
Referenced by readParticlesfromReco().
|
finalvirtual |
Implements edm::one::EDProducerBase.
Definition at line 77 of file TauSpinnerCMS.cc.
References funct::abs(), gather_cfg::cout, MillePedeFileConverter_cfg::e, fInitialized, flat(), edm::HepMCProduct::GetEvent(), hepmcCollectionToken_, mps_fire::i, initialize(), isReco_, MotherPDGID_, eostools::move(), readParticlesFromHepMC(), readParticlesfromReco(), roundOff_, hgcalPlots::stat, metsig::tau, jets_cff::tau2, and X.
|
private |
Definition at line 187 of file TauSpinnerCMS.cc.
References funct::abs(), reco::Candidate::daughter(), MillePedeFileConverter_cfg::e, GenParticleCollectionToken_, genParticles2HepMC_cfi::genParticles, GetLastSelf(), GetRecoDaughters(), mps_fire::i, isFirst(), reco::LeafCandidate::p4(), EgammaValidation_cff::pdgid, reco::Candidate::pdgId(), reco::LeafCandidate::pdgId(), metsig::tau, jets_cff::tau2, and X.
Referenced by produce().
|
inline |
|
private |
Definition at line 65 of file TauSpinnerCMS.h.
Referenced by initialize().
|
staticprivate |
Definition at line 87 of file TauSpinnerCMS.h.
Referenced by initialize(), and produce().
|
staticprivate |
Definition at line 84 of file TauSpinnerCMS.h.
Referenced by flat(), and setRandomEngine().
|
private |
Definition at line 86 of file TauSpinnerCMS.h.
Referenced by readParticlesfromReco(), and TauSpinnerCMS().
|
private |
Definition at line 66 of file TauSpinnerCMS.h.
Referenced by TauSpinnerCMS().
|
private |
Definition at line 85 of file TauSpinnerCMS.h.
Referenced by produce(), and TauSpinnerCMS().
|
private |
Definition at line 67 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 63 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 61 of file TauSpinnerCMS.h.
Referenced by produce(), and TauSpinnerCMS().
|
private |
Definition at line 62 of file TauSpinnerCMS.h.
Referenced by initialize().
|
staticprivate |
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 67 of file TauSpinnerCMS.h.
Referenced by produce().
|
private |
Definition at line 67 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 67 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 82 of file TauSpinnerCMS.h.
Referenced by produce().