CMS 3D CMS Logo

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 }
mps_fire.i
i
Definition: mps_fire.py:355
reco::GenericJet::nConstituents
virtual int nConstituents() const
Definition: GenericJet.cc:19
reco::CompositeRefBaseCandidate
Definition: CompositeRefBaseCandidate.h:17
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::GenericJet::print
virtual std::string print() const
Print object.
Definition: GenericJet.cc:21
reco::CompositeRefBaseCandidate::addDaughter
void addDaughter(const CandidateBaseRef &)
add a daughter via a reference
Definition: CompositeRefBaseCandidate.h:70
reco::LeafCandidate::py
double py() const final
y coordinate of momentum vector
Definition: LeafCandidate.h:142
reco::CompositeRefBaseCandidate::numberOfDaughters
size_t numberOfDaughters() const override
number of daughters
Definition: CompositeRefBaseCandidate.cc:18
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
reco::GenericJet::GenericJet
GenericJet()
Default constructor.
Definition: GenericJet.h:22
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
reco::LeafCandidate::p
double p() const final
magnitude of momentum vector
Definition: LeafCandidate.h:123
GenericJet.h
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
reco::LeafCandidate::px
double px() const final
x coordinate of momentum vector
Definition: LeafCandidate.h:140
reco::LeafCandidate::pz
double pz() const final
z coordinate of momentum vector
Definition: LeafCandidate.h:144