22 if(initPartsColl.size()==2)
23 if(initPartsColl[0].
pdgId()==21 && initPartsColl[1].pdgId()==21)
32 if(initPartsColl.size()==2)
50 std::pair<WDecay::LeptonType, WDecay::LeptonType>
66 return ( std::pair<WDecay::LeptonType,WDecay::LeptonType>(typeA, typeB) );
74 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
90 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
107 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
110 cand = &partsColl[
i];
122 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
126 cand = &partsColl[
i];
138 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
142 cand = &partsColl[
i];
155 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
158 cand = &partsColl[
i];
174 for(reco::GenParticleCollection::const_iterator
w=
parts_->begin();
w!=
parts_->end(); ++
w){
202 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
205 cand = &partsColl[
i];
219 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
223 cand = &partsColl[
i];
237 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
240 cand = &partsColl[
i];
254 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
257 cand = &partsColl[
i];
271 for (
unsigned int i = 0;
i < partsColl.size(); ++
i) {
275 cand = &partsColl[
i];
289 for(
unsigned int i = 0;
i < partsColl.size(); ++
i ){
292 cand = &partsColl[
i];
303 std::vector<const reco::GenParticle*> rad;
311 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