#include <TtDecayChannelSelector.h>
Public Types | |
enum | { Elec = 0, Muon = 1, Tau = 2 } |
leafs of leptonic decay channel vector decay_ More... | |
typedef std::vector< int > | Decay |
typedef to simplify the decay vectors More... | |
Public Member Functions | |
bool | operator() (const reco::GenParticleCollection &parts, std::string_view inputType) const |
operator for decay channel selection More... | |
TtDecayChannelSelector (const edm::ParameterSet &) | |
std contructor More... | |
Private Member Functions | |
unsigned int | checkSum (const Decay &vec) const |
unsigned int | countProngs (const reco::Candidate &part) const |
count the number of charged particles for tau decays More... | |
unsigned int | decayChannel () const |
return decay channel to select for from configuration More... | |
bool | search (reco::GenParticleCollection::const_iterator &part, int pdgId, std::string_view inputType) const |
search for particle with pdgId in given listing (for top) More... | |
bool | search (reco::GenParticle::const_iterator &part, int pdgId, std::string_view inputType) const |
search for particle with pdgId in given listing (for top daughters) More... | |
bool | tauDecay (const reco::Candidate &) const |
check tau decay to be leptonic, 1-prong or 3-prong More... | |
Private Attributes | |
bool | allow1Prong_ |
allow 1-prong tau decays More... | |
bool | allow3Prong_ |
allow 2-prong tau decays More... | |
Decay | allowedDecays_ |
bool | allowElectron_ |
allow tau decays into electron More... | |
bool | allowMuon_ |
allow tau decays into muon More... | |
Decay | decayBranchA_ |
top decay branch 1 More... | |
Decay | decayBranchB_ |
top decay branch 2 More... | |
bool | invert_ |
invert selection More... | |
bool | restrictTauDecays_ |
restrict tau decays More... | |
Definition at line 9 of file TtDecayChannelSelector.h.
typedef std::vector<int> TtDecayChannelSelector::Decay |
typedef to simplify the decay vectors
Definition at line 14 of file TtDecayChannelSelector.h.
anonymous enum |
leafs of leptonic decay channel vector decay_
Enumerator | |
---|---|
Elec | |
Muon | |
Tau |
Definition at line 12 of file TtDecayChannelSelector.h.
TtDecayChannelSelector::TtDecayChannelSelector | ( | const edm::ParameterSet & | cfg | ) |
std contructor
Definition at line 15 of file TtDecayChannelSelector.cc.
References allow1Prong_, allow3Prong_, allowedDecays_, TtDecayChannelFilter_cfi::allowedTopDecays, allowElectron_, allowMuon_, looper::cfg, ztail::d, TtDecayChannelFilter_cfi::decayBranchA, decayBranchA_, TtDecayChannelFilter_cfi::decayBranchB, decayBranchB_, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), kDecayChannels, and restrictTauDecays_.
|
inlineprivate |
Definition at line 68 of file TtDecayChannelSelector.h.
References ztail::d.
Referenced by operator()().
|
private |
count the number of charged particles for tau decays
Definition at line 186 of file TtDecayChannelSelector.cc.
Referenced by tauDecay().
|
inlineprivate |
return decay channel to select for from configuration
Definition at line 57 of file TtDecayChannelSelector.h.
References submitPVResolutionJobs::count, decayBranchA_, and decayBranchB_.
Referenced by operator()().
bool TtDecayChannelSelector::operator() | ( | const reco::GenParticleCollection & | parts, |
std::string_view | inputType | ||
) | const |
operator for decay channel selection
Definition at line 59 of file TtDecayChannelSelector.cc.
References funct::abs(), accept(), allowedDecays_, reco::Candidate::begin(), TopDecayID::bID, checkSum(), decayBranchA_, decayBranchB_, decayChannel(), Elec, TopDecayID::elecID, reco::Candidate::end(), createfilelist::int, invert_, dqm-mbProfile::log, Muon, TopDecayID::muonID, restrictTauDecays_, search(), Tau, tauDecay(), TopDecayID::tauID, TopDecayID::tID, verbose, and TopDecayID::WID.
|
private |
search for particle with pdgId in given listing (for top)
Definition at line 166 of file TtDecayChannelSelector.cc.
References funct::abs(), kGenParticles, EgammaValidation_cff::pdgId, funct::true, and TopDecayID::unfrag.
Referenced by operator()().
|
private |
search for particle with pdgId in given listing (for top daughters)
Definition at line 176 of file TtDecayChannelSelector.cc.
References funct::abs(), kGenParticles, EgammaValidation_cff::pdgId, funct::true, and TopDecayID::unfrag.
|
private |
check tau decay to be leptonic, 1-prong or 3-prong
Definition at line 199 of file TtDecayChannelSelector.cc.
References funct::abs(), allow1Prong_, allow3Prong_, allowElectron_, allowMuon_, countProngs(), TopDecayID::elecID, TopDecayID::muonID, and metsig::tau.
Referenced by operator()().
|
private |
allow 1-prong tau decays
Definition at line 45 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
allow 2-prong tau decays
Definition at line 47 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
vector of allowed lepton decay channels; values may be 0,1,2 for the entries 'Elec','Muon','Tau'
Definition at line 54 of file TtDecayChannelSelector.h.
Referenced by operator()(), and TtDecayChannelSelector().
|
private |
allow tau decays into electron
Definition at line 41 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
allow tau decays into muon
Definition at line 43 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
top decay branch 1
Definition at line 49 of file TtDecayChannelSelector.h.
Referenced by decayChannel(), operator()(), and TtDecayChannelSelector().
|
private |
top decay branch 2
Definition at line 51 of file TtDecayChannelSelector.h.
Referenced by decayChannel(), operator()(), and TtDecayChannelSelector().
|
private |
invert selection
Definition at line 37 of file TtDecayChannelSelector.h.
Referenced by operator()().
|
private |
restrict tau decays
Definition at line 39 of file TtDecayChannelSelector.h.
Referenced by operator()(), and TtDecayChannelSelector().