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