#include <GenericJet.h>
Public Member Functions | |
GenericJet () | |
Default constructor. | |
GenericJet (const LorentzVector &fP4, const Point &fVertex, const std::vector< CandidateBaseRef > &fConstituents) | |
Initiator. | |
virtual int | nConstituents () const |
# of constituents | |
virtual std::string | print () const |
Print object. | |
virtual | ~GenericJet () |
Destructor. |
Definition at line 20 of file GenericJet.h.
reco::GenericJet::GenericJet | ( | ) | [inline] |
GenericJet::GenericJet | ( | const LorentzVector & | fP4, |
const Point & | fVertex, | ||
const std::vector< CandidateBaseRef > & | fConstituents | ||
) |
Initiator.
Definition at line 12 of file GenericJet.cc.
References reco::CompositeRefBaseCandidate::addDaughter(), and i.
: CompositeRefBaseCandidate (0, fP4, fVertex) { for (unsigned i = 0; i < fConstituents.size (); i++) addDaughter (fConstituents [i]); }
virtual reco::GenericJet::~GenericJet | ( | ) | [inline, virtual] |
int GenericJet::nConstituents | ( | ) | const [virtual] |
# of constituents
Definition at line 20 of file GenericJet.cc.
References reco::CompositeRefBaseCandidate::numberOfDaughters().
Referenced by print().
{ return numberOfDaughters(); }
std::string GenericJet::print | ( | void | ) | const [virtual] |
Print object.
Definition at line 24 of file GenericJet.cc.
References reco::LeafCandidate::eta(), nConstituents(), dbtoconf::out, reco::LeafCandidate::p(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::pz().
{ std::ostringstream out; out << "GenericJet p/px/py/pz/pt: " << p() << '/' << px () << '/' << py() << '/' << pz() << '/' << pt() << std::endl << " eta/phi: " << eta () << '/' << phi () << std::endl << " # of constituents: " << nConstituents () << std::endl; out << " No Constituents details available for this version" << std::endl; return out.str (); }