|
|
Go to the documentation of this file.
19 if (initPartsColl.size() == 2)
20 if (initPartsColl[0].
pdgId() == 21 && initPartsColl[1].pdgId() == 21)
27 if (initPartsColl.size() == 2)
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) {
167 cand = dynamic_cast<const reco::GenParticle*>(&(*wd));
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;
const reco::GenParticle * neutrino(bool excludeTauLeptons=false) const
get neutrino for semi-leptonic or full leptonic decays
const reco::GenParticle * leptonicDecayTop(bool excludeTauLeptons=false) const
get top of leptonic decay branch
math::XYZTLorentzVector topPair_
combined 4-vector of top and topBar
int flavour(const Candidate &part)
const reco::GenParticle * leptonicDecayW(bool excludeTauLeptons=false) const
get W of leptonic decay branch
bool fromGluonFusion() const
check if the tops were produced from a pair of gluons
std::pair< WDecay::LeptonType, WDecay::LeptonType > fullLeptonicChannel() const
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
reco::GenParticleRefProd initPartons_
reference to the list of initial partons (has to be kept in the event!)
const reco::GenParticle * lepton(bool excludeTauLeptons=false) const
get lepton for semi-leptonic or full leptonic decays
const reco::GenParticle * hadronicDecayTop(bool excludeTauLeptons=false) const
get top of hadronic decay branch
std::vector< const reco::GenParticle * > radiatedGluons(int pdgId) const
return radiated gluons from particle with pdgId
bool fromQuarkAnnihilation() const
check if the tops were produced from qqbar
const reco::GenParticle * hadronicDecayW(bool excludeTauLeptons=false) const
get W of hadronic decay branch
bool isNeutrino(const Candidate &part)
bool isLepton(const Candidate &part)
const reco::GenParticle * topBar() const
return anti-top if available; 0 else
WDecay::LeptonType semiLeptonicChannel() const
return decay channel; all leptons including taus are allowed
const reco::GenParticle * singleNeutrino(bool excludeTauLeptons=false) const
return single neutrino if available; 0 else
bool isSemiLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as semi-laptonic
std::vector< const reco::GenParticle * > leptonicDecayTopRadiation(bool excludeTauLeptons=false) const
gluons as radiated from the leptonicly decaying top quark
const reco::GenParticle * singleLepton(bool excludeTauLeptons=false) const
return single lepton if available; 0 else
const reco::GenParticle * top() const
return top if available; 0 else
bool isFullLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as full leptonic
const reco::GenParticle * hadronicDecayB(bool excludeTauLeptons=false) const
get b of hadronic decay branch
const reco::GenParticle * leptonBar(bool excludeTauLeptons=false) const
get anti-lepton for semi-leptonic or full leptonic decays
std::vector< const reco::GenParticle * > hadronicDecayTopRadiation(bool excludeTauLeptons=false) const
gluons as radiated from the hadronicly decaying top quark
const reco::GenParticle * leptonicDecayB(bool excludeTauLeptons=false) const
get b of leptonic decay branch
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Abs< T >::type abs(const T &t)
reco::GenParticleRefProd parts_
reference to the top decay chain (has to be kept in the event!)
const reco::GenParticle * neutrinoBar(bool excludeTauLeptons=false) const
get anti-neutrino for semi-leptonic or full leptonic decays
TtGenEvent()
empty constructor
const reco::GenParticle * hadronicDecayQuark(bool invertFlavor=false) const
get light quark of hadronic decay branch