CMS 3D CMS Logo

Public Member Functions

reco::GenericJet Class Reference

#include <GenericJet.h>

Inheritance diagram for reco::GenericJet:
reco::CompositeRefBaseCandidate reco::LeafCandidate reco::Candidate

List of all members.

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.

Detailed Description

Definition at line 20 of file GenericJet.h.


Constructor & Destructor Documentation

reco::GenericJet::GenericJet ( ) [inline]

Default constructor.

Definition at line 23 of file GenericJet.h.

{}
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]

Destructor.

Definition at line 27 of file GenericJet.h.

{}

Member Function Documentation

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 ();
}