19 if (initPartsColl.size() == 2)
20 if (initPartsColl[0].pdgId() == 21 && initPartsColl[1].pdgId() == 21)
27 if (initPartsColl.size() == 2)
28 if (
std::abs(initPartsColl[0].pdgId()) <
TopDecayID::tID && initPartsColl[0].pdgId() == -initPartsColl[1].pdgId())
66 return (std::pair<WDecay::LeptonType, WDecay::LeptonType>(typeA, typeB));
72 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
86 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
101 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
104 cand = &partsColl[
i];
114 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
118 cand = &partsColl[
i];
128 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
132 cand = &partsColl[
i];
143 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
146 cand = &partsColl[
i];
160 for (reco::GenParticleCollection::const_iterator
w =
parts_->begin();
w !=
parts_->end(); ++
w) {
168 if (cand ==
nullptr) {
186 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
189 cand = &partsColl[
i];
201 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
205 cand = &partsColl[
i];
217 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
220 cand = &partsColl[
i];
232 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
235 cand = &partsColl[
i];
247 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
251 cand = &partsColl[
i];
263 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
266 cand = &partsColl[
i];
278 std::vector<const reco::GenParticle*> rad;
287 std::vector<const reco::GenParticle*> rad;
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
const reco::GenParticle * leptonicDecayTop(bool excludeTauLeptons=false) const
get top of leptonic decay branch
const reco::GenParticle * hadronicDecayB(bool excludeTauLeptons=false) const
get b of hadronic decay branch
reco::GenParticleRefProd parts_
reference to the top decay chain (has to be kept in the event!)
bool isSemiLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as semi-laptonic
bool fromQuarkAnnihilation() const
check if the tops were produced from qqbar
const reco::GenParticle * lepton(bool excludeTauLeptons=false) const
get lepton for semi-leptonic or full leptonic decays
bool isLepton(const Candidate &part)
math::XYZTLorentzVector topPair_
combined 4-vector of top and topBar
std::vector< const reco::GenParticle * > leptonicDecayTopRadiation(bool excludeTauLeptons=false) const
gluons as radiated from the leptonicly decaying top quark
const reco::GenParticle * hadronicDecayW(bool excludeTauLeptons=false) const
get W of hadronic decay branch
const reco::GenParticle * top() const
return top if available; 0 else
reco::GenParticleRefProd initPartons_
reference to the list of initial partons (has to be kept in the event!)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
bool isFullLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as full leptonic
bool isNeutrino(const Candidate &part)
WDecay::LeptonType semiLeptonicChannel() const
return decay channel; all leptons including taus are allowed
bool fromGluonFusion() const
check if the tops were produced from a pair of gluons
std::vector< const reco::GenParticle * > hadronicDecayTopRadiation(bool excludeTauLeptons=false) const
gluons as radiated from the hadronicly decaying top quark
Abs< T >::type abs(const T &t)
TtGenEvent()
empty constructor
const reco::GenParticle * hadronicDecayTop(bool excludeTauLeptons=false) const
get top of hadronic decay branch
const reco::GenParticle * hadronicDecayQuark(bool invertFlavor=false) const
get light quark of hadronic decay branch
std::pair< WDecay::LeptonType, WDecay::LeptonType > fullLeptonicChannel() const
const reco::GenParticle * singleNeutrino(bool excludeTauLeptons=false) const
return single neutrino if available; 0 else
const reco::GenParticle * leptonicDecayB(bool excludeTauLeptons=false) const
get b of leptonic decay branch
std::vector< const reco::GenParticle * > radiatedGluons(int pdgId) const
return radiated gluons from particle with pdgId
const reco::GenParticle * neutrino(bool excludeTauLeptons=false) const
get neutrino for semi-leptonic or full leptonic decays
const reco::GenParticle * neutrinoBar(bool excludeTauLeptons=false) const
get anti-neutrino for semi-leptonic or full leptonic decays
const reco::GenParticle * leptonicDecayW(bool excludeTauLeptons=false) const
get W of leptonic decay branch
int flavour(const Candidate &part)
const reco::GenParticle * topBar() const
return anti-top if available; 0 else
const reco::GenParticle * leptonBar(bool excludeTauLeptons=false) const
get anti-lepton for semi-leptonic or full leptonic decays
const reco::GenParticle * singleLepton(bool excludeTauLeptons=false) const
return single lepton if available; 0 else