1 #ifndef TopObjects_TopGenEvent_h
2 #define TopObjects_TopGenEvent_h
13 static const int tID = 6;
14 static const int bID = 5;
17 static const int ZID = 23;
18 static const int WID = 24;
59 std::vector<const reco::GenParticle*>
lightQuarks(
bool includingBQuarks=
false)
const;
67 std::vector<const reco::GenParticle*>
topSisters()
const;
const reco::GenParticle * wPlus() const
return W plus if available; 0 else
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
const reco::GenParticle * b() const
return b quark if available; 0 else
const reco::GenParticle * ePlus() const
return positron if available; 0 else
reco::GenParticleRefProd parts_
reference to the top decay chain (has to be kept in the event!)
const reco::GenParticle * tauPlus() const
return anti-tau if available; 0 else
std::vector< const reco::GenParticle * > topSisters() const
return number of top anti-top sisters
TopGenEvent()
empty constructor
const reco::GenParticle * daughterQuarkOfWPlus(bool invertQuarkCharge=false, bool invertBosonCharge=false) const
return quark daughter quark of W boson
const reco::GenParticle * muMinus() const
return muon if available; 0 else
const reco::GenParticle * bBar() const
return anti-b quark if available; 0 else
const reco::GenParticle * top() const
return top if available; 0 else
const reco::GenParticle * daughterQuarkOfTop(bool invertCharge=false) const
return daughter quark of top quark (which can have flavor b, s or d)
reco::GenParticleRefProd initPartons_
reference to the list of initial partons (has to be kept in the event!)
const reco::GenParticle * tauMinus() const
return tau if available; 0 else
std::vector< const reco::GenParticle * > lightQuarks(bool includingBQuarks=false) const
return all light quarks or all quarks including b's
const reco::GenParticle * candidate(int id, unsigned int parentId=0) const
get candidate with given pdg id if available; 0 else
int numberOfBQuarks(bool fromTopQuark=true) const
return number of b quarks in the decay chain
Base class to hold information for reduced top generator information.
std::vector< const reco::GenParticle * > radiatedGluons(int pdgId) const
return radiated gluons from particle with pdgId
const reco::GenParticle * daughterQuarkOfTopBar() const
return daughter quark of anti-top quark (which can have flavor b, s or d)
const reco::GenParticle * wMinus() const
return W minus if available; 0 else
const reco::GenParticleCollection & particles() const
return particles of decay chain
const reco::GenParticle * daughterQuarkBarOfWMinus() const
return anti-quark daughter of anti-W boson
const reco::GenParticle * daughterQuarkBarOfWPlus() const
return anti-quark daughter of W boson
const reco::GenParticleCollection & initialPartons() const
return particles of initial partons
virtual ~TopGenEvent()
default destructor
const reco::GenParticle * daughterQuarkOfWMinus() const
return quark daughter of anti-W boson
const reco::GenParticle * muPlus() const
return anti-muon if available; 0 else
const reco::GenParticle * topBar() const
return anti-top if available; 0 else
const reco::GenParticle * eMinus() const
return electron if available; 0 else
int numberOfLeptons(bool fromWBoson=true) const
return number of leptons in the decay chain