#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 inputType) const |
operator for decay channel selection More... | |
TtDecayChannelSelector (const edm::ParameterSet &) | |
std contructor More... | |
~TtDecayChannelSelector () | |
default destructor 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::GenParticle::const_iterator &part, int pdgId, std::string &inputType) const |
search for particle with pdgId in given listing (for top daughters) More... | |
bool | search (reco::GenParticleCollection::const_iterator &part, int pdgId, std::string &inputType) const |
search for particle with pdgId in given listing (for top) 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 8 of file TtDecayChannelSelector.h.
typedef std::vector<int> TtDecayChannelSelector::Decay |
typedef to simplify the decay vectors
Definition at line 13 of file TtDecayChannelSelector.h.
anonymous enum |
leafs of leptonic decay channel vector decay_
Enumerator | |
---|---|
Elec | |
Muon | |
Tau |
Definition at line 11 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_.
TtDecayChannelSelector::~TtDecayChannelSelector | ( | ) |
|
inlineprivate |
Definition at line 69 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 58 of file TtDecayChannelSelector.h.
References submitPVResolutionJobs::count, decayBranchA_, and decayBranchB_.
Referenced by operator()().
bool TtDecayChannelSelector::operator() | ( | const reco::GenParticleCollection & | parts, |
std::string | inputType | ||
) | const |
operator for decay channel selection
Definition at line 61 of file TtDecayChannelSelector.cc.
References funct::abs(), accept(), allowedDecays_, TopDecayID::bID, checkSum(), decayBranchA_, decayBranchB_, decayChannel(), Elec, TopDecayID::elecID, createfilelist::int, invert_, dqm-mbProfile::log, Muon, TopDecayID::muonID, contentValuesFiles::parts, restrictTauDecays_, search(), Tau, tauDecay(), TopDecayID::tauID, TopDecayID::tID, verbose, and TopDecayID::WID.
|
private |
search for particle with pdgId in given listing (for top daughters)
Definition at line 178 of file TtDecayChannelSelector.cc.
References funct::abs(), kGenParticles, EgammaValidation_cff::pdgId, funct::true, and TopDecayID::unfrag.
|
private |
search for particle with pdgId in given listing (for top)
Definition at line 168 of file TtDecayChannelSelector.cc.
References funct::abs(), kGenParticles, EgammaValidation_cff::pdgId, funct::true, and TopDecayID::unfrag.
Referenced by operator()().
|
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 46 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
allow 2-prong tau decays
Definition at line 48 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 55 of file TtDecayChannelSelector.h.
Referenced by operator()(), and TtDecayChannelSelector().
|
private |
allow tau decays into electron
Definition at line 42 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
allow tau decays into muon
Definition at line 44 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
top decay branch 1
Definition at line 50 of file TtDecayChannelSelector.h.
Referenced by decayChannel(), operator()(), and TtDecayChannelSelector().
|
private |
top decay branch 2
Definition at line 52 of file TtDecayChannelSelector.h.
Referenced by decayChannel(), operator()(), and TtDecayChannelSelector().
|
private |
invert selection
Definition at line 38 of file TtDecayChannelSelector.h.
Referenced by operator()().
|
private |
restrict tau decays
Definition at line 40 of file TtDecayChannelSelector.h.
Referenced by operator()(), and TtDecayChannelSelector().