#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 | |
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.
|
finaloverridevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 54 of file TauSpinnerCMS.cc.
Referenced by endRunProduce().
|
inlinevirtual |
Definition at line 55 of file TauSpinnerCMS.h.
|
inlinevirtual |
Definition at line 54 of file TauSpinnerCMS.h.
|
finaloverridevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 55 of file TauSpinnerCMS.cc.
Referenced by endRun().
|
inlinevirtual |
Definition at line 56 of file TauSpinnerCMS.h.
|
inlinevirtual |
|
inlinevirtual |
|
inlineoverridevirtual |
|
static |
Definition at line 263 of file TauSpinnerCMS.cc.
References DEFINE_FWK_MODULE, Exception, and fRandomEngine.
Referenced by endLuminosityBlockProduce(), initialize(), and produce().
|
private |
Definition at line 231 of file TauSpinnerCMS.cc.
References reco::CompositeRefCandidateT< D >::daughter(), 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(), 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 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_, 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 endRunProduce().
|
private |
Definition at line 176 of file TauSpinnerCMS.cc.
References funct::abs(), reco::Candidate::daughter(), GenParticleCollectionToken_, GenHFHadronMatcher_cfi::genParticles, edm::Event::getByToken(), GetLastSelf(), GetRecoDaughters(), i, isFirst(), NULL, reco::LeafCandidate::p4(), BPhysicsValidation_cfi::pdgid, reco::Candidate::pdgId(), and reco::LeafCandidate::pdgId().
Referenced by produce().
|
inline |
Definition at line 64 of file TauSpinnerCMS.h.
References fRandomEngine, initialize(), and findQualityFiles::v.
|
private |
Definition at line 72 of file TauSpinnerCMS.h.
Referenced by initialize().
|
staticprivate |
Definition at line 94 of file TauSpinnerCMS.h.
Referenced by initialize(), and produce().
|
staticprivate |
Definition at line 91 of file TauSpinnerCMS.h.
Referenced by flat(), and setRandomEngine().
|
private |
Definition at line 93 of file TauSpinnerCMS.h.
Referenced by readParticlesfromReco(), and TauSpinnerCMS().
|
private |
Definition at line 73 of file TauSpinnerCMS.h.
Referenced by TauSpinnerCMS().
|
private |
Definition at line 92 of file TauSpinnerCMS.h.
Referenced by produce(), and TauSpinnerCMS().
|
private |
Definition at line 74 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 70 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 68 of file TauSpinnerCMS.h.
Referenced by produce(), and TauSpinnerCMS().
|
private |
Definition at line 69 of file TauSpinnerCMS.h.
Referenced by initialize().
|
staticprivate |
Definition at line 75 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 71 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 74 of file TauSpinnerCMS.h.
Referenced by produce().
|
private |
Definition at line 74 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 74 of file TauSpinnerCMS.h.
Referenced by initialize().
|
private |
Definition at line 89 of file TauSpinnerCMS.h.
Referenced by produce().