#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 = 0 |
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::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 ESProduct , Transition Tr = Transition::Event> | |
auto | esConsumes (eventsetup::EventSetupRecordKey const &, 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) |
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.
|
inlineoverride |
Definition at line 52 of file TauSpinnerCMS.h.
References beginJob(), endJob(), flat(), and produce().
|
finalvirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 54 of file TauSpinnerCMS.cc.
Referenced by ~TauSpinnerCMS().
|
finalvirtual |
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().
|
final |
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(), mathSSE::return(), roundOff_, trackingPlots::stat, edm::Event::streamID(), metsig::tau, jets_cff::tau2, 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(), 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().