CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GenericJet.cc
Go to the documentation of this file.
1 // GenericJet.cc
2 // Fedor Ratnikov, UMd
3 
4 #include <sstream>
5 
6 //Own header file
8 
9 using namespace reco;
10 
12  const Point& fVertex,
13  const std::vector<CandidateBaseRef>& fConstituents)
14  : CompositeRefBaseCandidate(0, fP4, fVertex) {
15  for (unsigned i = 0; i < fConstituents.size(); i++)
16  addDaughter(fConstituents[i]);
17 }
18 
20 
22  std::ostringstream out;
23  out << "GenericJet p/px/py/pz/pt: " << p() << '/' << px() << '/' << py() << '/' << pz() << '/' << pt() << std::endl
24  << " eta/phi: " << eta() << '/' << phi() << std::endl
25  << " # of constituents: " << nConstituents() << std::endl;
26  out << " No Constituents details available for this version" << std::endl;
27  return out.str();
28 }
double pz() const final
z coordinate of momentum vector
double pt() const final
transverse momentum
GenericJet()
Default constructor.
Definition: GenericJet.h:22
double px() const final
x coordinate of momentum vector
double p() const final
magnitude of momentum vector
virtual std::string print() const
Print object.
Definition: GenericJet.cc:21
double py() const final
y coordinate of momentum vector
virtual int nConstituents() const
of constituents
Definition: GenericJet.cc:19
size_t numberOfDaughters() const override
number of daughters
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
void addDaughter(const CandidateBaseRef &)
add a daughter via a reference
double phi() const final
momentum azimuthal angle
double eta() const final
momentum pseudorapidity