31 #include <fastjet/tools/TopTaggerBase.hh>
33 FASTJET_BEGIN_NAMESPACE
52 double TopTaggerBase::_cos_theta_W(
const PseudoJet & res)
const{
55 vector<PseudoJet> W_pieces = W.
pieces();
56 assert(W_pieces.size() == 2);
60 PseudoJet W2 = (W_pieces[0].perp2() < W_pieces[1].perp2())
69 return (W2.px()*top.px() + W2.py()*top.py() + W2.pz()*top.pz())/
70 sqrt(W2.modp2() * top.
modp2());
const TransformerType::StructureType & structure_of() const
this is a helper to access any structure created by a Transformer (that is, of type Transformer::Stru...
virtual std::vector< PseudoJet > pieces() const
retrieve the pieces that make up the jet.
A base class that provides a common interface for top taggers that are able to return a W (in additio...
PseudoJet & unboost(const PseudoJet &prest)
transform this jet (given in lab) into a jet in the rest frame of prest [NOT FULLY TESTED] ...
double modp2() const
return the squared 3-vector modulus = px^2+py^2+pz^2
Class to contain pseudojets, including minimal information of use to jet-clustering routines...