19 :
Jet(fP4, fVertex, fConstituents), m_specific(fSpecific) {}
22 :
Jet(fP4, fVertex), m_specific(fSpecific) {}
25 :
Jet(fP4,
Point(0, 0, 0), fConstituents), m_specific(fSpecific) {}
34 throw cms::Exception(
"Invalid Constituent") <<
"PFJet constituent is not of PFCandidate type";
42 std::vector<PFCandidatePtr>
result;
68 std::ostringstream
out;
70 <<
" PFJet specific:" << std::endl
84 <<
" HO energy: " <<
hoEnergy() << std::endl;
85 out <<
" PFCandidate constituents:" << std::endl;
87 for (
unsigned i = 0;
i < constituents.size(); ++
i) {
88 if (constituents[
i].
get()) {
89 out <<
" #" <<
i <<
" " << *(constituents[
i]) << std::endl;
91 out <<
" #" <<
i <<
" PFCandidate is not available in the event" << std::endl;
100 <<
"(pt, eta, phi) = " << jet.
pt() <<
"," << jet.
eta() <<
"," << jet.
phi()
float photonEnergy() const
photonEnergy
int photonMultiplicity() const
photonMultiplicity
bool isNonnull() const
Checks for non-null.
float muonEnergy() const
muonEnergy
double pt() const final
transverse momentum
float chargedEmEnergy() const
chargedEmEnergy
std::string print() const override
Print object in details.
PFJet * clone() const override
Polymorphic clone.
T const * get() const
Returns C++ pointer to the item.
float chargedHadronEnergyFraction() const
chargedHadronEnergyFraction
Base class for all types of Jets.
std::vector< Constituent > Constituents
float HFEMEnergyFraction() const
HFEMEnergyFraction.
float HFHadronEnergy() const
HFHadronEnergy.
int chargedMultiplicity() const
chargedMultiplicity
float photonEnergyFraction() const
photonEnergyFraction
Jets made from PFObjects.
float neutralEmEnergy() const
neutralEmEnergy
virtual reco::PFCandidatePtr getPFConstituent(unsigned fIndex) const
get specific constituent
float electronEnergy() const
electronEnergy
daughters dau
collection of references to daughters
std::ostream & operator<<(std::ostream &, BeamSpot beam)
virtual std::string print() const
Print object.
float HFEMEnergy() const
HFEMEnergy.
int neutralHadronMultiplicity() const
neutralHadronMultiplicity
bool overlap(const Candidate &) const override
Polymorphic overlap.
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction
void reserve(size_type n)
Reserve space for RefVector.
int neutralMultiplicity() const
neutralMultiplicity
bool isNonnull() const
Checks for non-null.
size_t numberOfDaughters() const override
number of daughters
float HFHadronEnergyFraction() const
HFHadronEnergyFraction.
virtual CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
float electronEnergyFraction() const
electronEnergyFraction
ProductID id() const
Accessor for product ID.
float hoEnergy() const
hoEnergy
math::XYZTLorentzVector LorentzVector
Lorentz vector.
int chargedHadronMultiplicity() const
chargedHadronMultiplicity
int muonMultiplicity() const
muonMultiplicity
int HFEMMultiplicity() const
HFEMMultiplicity.
Particle reconstructed by the particle flow algorithm.
Structure Point Contains parameters of Gaussian fits to DMRs.
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
virtual std::vector< reco::PFCandidatePtr > getPFConstituents() const
get all constituents
reco::TrackRefVector getTrackRefs() const
float neutralHadronEnergy() const
neutralHadronEnergy
float chargedMuEnergy() const
chargedMuEnergy
float muonEnergyFraction() const
muonEnergyFraction
double phi() const final
momentum azimuthal angle
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
int HFHadronMultiplicity() const
HFHadronMultiplicity.
float chargedHadronEnergy() const
chargedHadronEnergy
int electronMultiplicity() const
electronMultiplicity
double eta() const final
momentum pseudorapidity