#include <TauSpinnerCMS.h>
Public Member Functions | |
virtual void | beginJob () overridefinal |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
virtual void | beginRun (edm::Run const &, edm::EventSetup const &) |
virtual void | endJob () overridefinal |
virtual void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
virtual void | endLuminosityBlockProduce (edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup) |
virtual void | endRun (const edm::Run &, const edm::EventSetup &) |
virtual void | endRunProduce (edm::Run &, edm::EventSetup const &) |
virtual void | initialize () |
virtual void | produce (edm::Event &, const edm::EventSetup &) overridefinal |
void | setRandomEngine (CLHEP::HepRandomEngine *v) |
TauSpinnerCMS (const edm::ParameterSet &) | |
virtual | ~TauSpinnerCMS () |
Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, 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 | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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 |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 |
|
inlinevirtual |
Definition at line 55 of file TauSpinnerCMS.h.
|
inlinevirtual |
Definition at line 54 of file TauSpinnerCMS.h.
|
finaloverridevirtual |
|
inlinevirtual |
Definition at line 56 of file TauSpinnerCMS.h.
|
inlinevirtual |
Definition at line 62 of file TauSpinnerCMS.h.
|
inlinevirtual |
Definition at line 60 of file TauSpinnerCMS.h.
|
inlinevirtual |
Definition at line 57 of file TauSpinnerCMS.h.
|
static |
Definition at line 263 of file TauSpinnerCMS.cc.
References edm::hlt::Exception, and fRandomEngine.
Referenced by 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().
|
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 |
Implements edm::one::EDProducerBase.
Definition at line 79 of file TauSpinnerCMS.cc.
References funct::abs(), gather_cfg::cout, fInitialized, flat(), edm::Event::getByToken(), hepmcCollectionToken_, i, initialize(), isReco_, MotherPDGID_, edm::Event::put(), readParticlesFromHepMC(), readParticlesfromReco(), mathSSE::return(), roundOff_, edm::Event::streamID(), metsig::tau, and X.
|
private |
Definition at line 176 of file TauSpinnerCMS.cc.
References funct::abs(), reco::Candidate::daughter(), GenParticleCollectionToken_, genParticleCandidates2GenParticles_cfi::genParticles, edm::Event::getByToken(), GetLastSelf(), GetRecoDaughters(), i, isFirst(), NULL, reco::LeafCandidate::p4(), reco::Candidate::pdgId(), and reco::LeafCandidate::pdgId().
Referenced by produce().
|
inline |
Definition at line 64 of file TauSpinnerCMS.h.
References fRandomEngine, 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().