#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::GenParticleCollection::const_iterator &part, int pdgId, std::string &inputType) const |
search for particle with pdgId in given listing (for top) 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 | 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 15 of file TtDecayChannelSelector.h.
anonymous enum |
leafs of leptonic decay channel vector decay_
Enumerator | |
---|---|
Elec | |
Muon | |
Tau |
Definition at line 13 of file TtDecayChannelSelector.h.
TtDecayChannelSelector::TtDecayChannelSelector | ( | const edm::ParameterSet & | cfg | ) |
std contructor
Definition at line 15 of file TtDecayChannelSelector.cc.
References allow1Prong_, allow3Prong_, allowedDecays_, allowElectron_, allowMuon_, decayBranchA_, decayBranchB_, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), kDecayChannels, and restrictTauDecays_.
TtDecayChannelSelector::~TtDecayChannelSelector | ( | ) |
|
inlineprivate |
Definition at line 76 of file TtDecayChannelSelector.h.
Referenced by operator()().
|
private |
count the number of charged particles for tau decays
Definition at line 191 of file TtDecayChannelSelector.cc.
References reco::Candidate::begin(), reco::Candidate::charge(), reco::Candidate::end(), and reco::Candidate::status().
Referenced by tauDecay().
|
inlineprivate |
return decay channel to select for from configuration
Definition at line 63 of file TtDecayChannelSelector.h.
References prof2calltree::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 62 of file TtDecayChannelSelector.cc.
References funct::abs(), accept(), allowedDecays_, TopDecayID::bID, checkSum(), decayBranchA_, decayBranchB_, decayChannel(), Elec, TopDecayID::elecID, invert_, create_public_lumi_plots::log, Muon, TopDecayID::muonID, restrictTauDecays_, search(), Tau, tauDecay(), TopDecayID::tauID, getDQMSummary::td, TopDecayID::tID, and TopDecayID::WID.
|
private |
search for particle with pdgId in given listing (for top)
Definition at line 169 of file TtDecayChannelSelector.cc.
References funct::abs(), kGenParticles, and TopDecayID::unfrag.
Referenced by operator()().
|
private |
search for particle with pdgId in given listing (for top daughters)
Definition at line 180 of file TtDecayChannelSelector.cc.
References funct::abs(), kGenParticles, reco::Candidate::pdgId(), reco::Candidate::status(), and TopDecayID::unfrag.
|
private |
check tau decay to be leptonic, 1-prong or 3-prong
Definition at line 206 of file TtDecayChannelSelector.cc.
References funct::abs(), allow1Prong_, allow3Prong_, allowElectron_, allowMuon_, reco::Candidate::begin(), countProngs(), TopDecayID::elecID, reco::Candidate::end(), TopDecayID::muonID, and reco::Candidate::pdgId().
Referenced by operator()().
|
private |
allow 1-prong tau decays
Definition at line 50 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
allow 2-prong tau decays
Definition at line 52 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 59 of file TtDecayChannelSelector.h.
Referenced by operator()(), and TtDecayChannelSelector().
|
private |
allow tau decays into electron
Definition at line 46 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
allow tau decays into muon
Definition at line 48 of file TtDecayChannelSelector.h.
Referenced by tauDecay(), and TtDecayChannelSelector().
|
private |
top decay branch 1
Definition at line 54 of file TtDecayChannelSelector.h.
Referenced by decayChannel(), operator()(), and TtDecayChannelSelector().
|
private |
top decay branch 2
Definition at line 56 of file TtDecayChannelSelector.h.
Referenced by decayChannel(), operator()(), and TtDecayChannelSelector().
|
private |
invert selection
Definition at line 42 of file TtDecayChannelSelector.h.
Referenced by operator()().
|
private |
restrict tau decays
Definition at line 44 of file TtDecayChannelSelector.h.
Referenced by operator()(), and TtDecayChannelSelector().