#include <TauSpinnerCMS.h>
Public Member Functions | |
virtual void | beginJob () |
virtual void | endJob () |
virtual void | endRun (const edm::Run &, const edm::EventSetup &) |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
TauSpinnerCMS (const edm::ParameterSet &) | |
virtual | ~TauSpinnerCMS () |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Static Public Member Functions | |
static double | flat () |
Static Public Member Functions inherited from edm::EDProducer | |
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::InputTag | gensrc_ |
int | Ipol_ |
bool | isLHPDFConfigured_ |
bool | isReco_ |
bool | isTauolaConfigured_ |
std::string | LHAPDFname_ |
int | MotherPDGID_ |
int | nonSM2_ |
int | nonSMN_ |
double | roundOff_ |
Static Private Attributes | |
static CLHEP::HepRandomEngine * | fRandomEngine = nullptr |
static bool | isTauSpinnerConfigure =false |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Definition at line 37 of file TauSpinnerCMS.h.
|
explicit |
Definition at line 22 of file TauSpinnerCMS.cc.
|
inlinevirtual |
Definition at line 44 of file TauSpinnerCMS.h.
|
virtual |
Reimplemented from edm::EDProducer.
Definition at line 43 of file TauSpinnerCMS.cc.
References CMSEnergy_, edm::hlt::Exception, flat(), fRandomEngine, edm::RandomNumberGenerator::getEngine(), Ipol_, edm::Service< T >::isAvailable(), isLHPDFConfigured_, isTauolaConfigured_, isTauSpinnerConfigure, LHAPDFname_, nonSM2_, and nonSMN_.
|
virtual |
|
virtual |
Definition at line 164 of file TauSpinnerCMS.cc.
|
static |
Definition at line 255 of file TauSpinnerCMS.cc.
References edm::hlt::Exception, and fRandomEngine.
Referenced by beginJob().
|
private |
Definition at line 223 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 243 of file TauSpinnerCMS.cc.
References abs, reco::CompositeRefCandidateT< D >::daughter(), i, reco::CompositeRefCandidateT< D >::numberOfDaughters(), reco::LeafCandidate::p4(), and reco::LeafCandidate::pdgId().
Referenced by readParticlesfromReco().
|
private |
Definition at line 233 of file TauSpinnerCMS.cc.
References i, reco::CompositeRefCandidateT< D >::mother(), reco::CompositeRefCandidateT< D >::numberOfMothers(), and reco::LeafCandidate::pdgId().
Referenced by readParticlesfromReco().
|
virtual |
Implements edm::EDProducer.
Definition at line 72 of file TauSpinnerCMS.cc.
References abs, gather_cfg::cout, edm::Event::getByLabel(), i, isReco_, MotherPDGID_, edm::Event::put(), readParticlesFromHepMC(), readParticlesfromReco(), hitfit::return, roundOff_, metsig::tau, and X.
|
private |
Definition at line 168 of file TauSpinnerCMS.cc.
References abs, reco::Candidate::daughter(), genParticleCandidates2GenParticles_cfi::genParticles, gensrc_, edm::Event::getByLabel(), GetLastSelf(), GetRecoDaughters(), i, isFirst(), NULL, reco::LeafCandidate::p4(), reco::Candidate::pdgId(), and reco::LeafCandidate::pdgId().
Referenced by produce().
|
private |
Definition at line 57 of file TauSpinnerCMS.h.
Referenced by beginJob().
|
staticprivate |
Definition at line 75 of file TauSpinnerCMS.h.
Referenced by beginJob(), and flat().
|
private |
Definition at line 58 of file TauSpinnerCMS.h.
Referenced by readParticlesfromReco().
|
private |
Definition at line 59 of file TauSpinnerCMS.h.
Referenced by beginJob().
|
private |
Definition at line 55 of file TauSpinnerCMS.h.
Referenced by beginJob().
|
private |
Definition at line 53 of file TauSpinnerCMS.h.
Referenced by produce().
|
private |
Definition at line 54 of file TauSpinnerCMS.h.
Referenced by beginJob().
|
staticprivate |
Definition at line 60 of file TauSpinnerCMS.h.
Referenced by beginJob().
|
private |
Definition at line 56 of file TauSpinnerCMS.h.
Referenced by beginJob().
|
private |
Definition at line 59 of file TauSpinnerCMS.h.
Referenced by produce().
|
private |
Definition at line 59 of file TauSpinnerCMS.h.
Referenced by beginJob().
|
private |
Definition at line 59 of file TauSpinnerCMS.h.
Referenced by beginJob().
|
private |
Definition at line 74 of file TauSpinnerCMS.h.
Referenced by produce().