CMS 3D CMS Logo

reco::GenericJet Class Reference

#include <DataFormats/JetReco/interface/GenericJet.h>

Inheritance diagram for reco::GenericJet:

reco::CompositeRefBaseCandidate reco::Candidate reco::Particle

List of all members.

Public Member Functions

 GenericJet (const LorentzVector &fP4, const Point &fVertex, const std::vector< CandidateBaseRef > &fConstituents)
 Initiator.
 GenericJet ()
 Default constructor.
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.

00023 {}

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.

00015   :  CompositeRefBaseCandidate (0, fP4, fVertex)
00016 {
00017   for (unsigned i = 0; i < fConstituents.size (); i++) addDaughter (fConstituents [i]);
00018 }

virtual reco::GenericJet::~GenericJet (  )  [inline, virtual]

Destructor.

Definition at line 27 of file GenericJet.h.

00027 {}


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().

00020                                      {
00021   return numberOfDaughters();
00022 }

std::string GenericJet::print ( void   )  const [virtual]

Print object.

Definition at line 24 of file GenericJet.cc.

References lat::endl(), reco::Particle::eta(), nConstituents(), out, reco::Particle::p(), reco::Particle::phi(), reco::Particle::pt(), reco::Particle::px(), reco::Particle::py(), and reco::Particle::pz().

00024                                    {
00025   std::ostringstream out;
00026   out << "GenericJet p/px/py/pz/pt: " << p() << '/' << px () << '/' << py() << '/' << pz() << '/' << pt() << std::endl
00027       << "    eta/phi: " << eta () << '/' << phi () << std::endl
00028       << "    # of constituents: " << nConstituents () << std::endl;
00029   out << "    No Constituents details available for this version" << std::endl;
00030   return out.str ();
00031 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:51:05 2009 for CMSSW by  doxygen 1.5.4