19 :
Jet(fP4, fVertex, 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.
double eta() const final
momentum pseudorapidity
float muonEnergy() const
muonEnergy
float chargedEmEnergy() const
chargedEmEnergy
bool overlap(const Candidate &) const override
Polymorphic overlap.
T const * get() const
Returns C++ pointer to the item.
float chargedHadronEnergyFraction() const
chargedHadronEnergyFraction
std::vector< Constituent > Constituents
double pt() const final
transverse momentum
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
size_t numberOfDaughters() const override
number of daughters
reco::TrackRef trackRef() const
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
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction
void reserve(size_type n)
Reserve space for RefVector.
int neutralMultiplicity() const
neutralMultiplicity
bool isNonnull() const
Checks for non-null.
std::string print() const override
Print object in details.
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
PFJet * clone() const override
Polymorphic clone.
float muonEnergyFraction() const
muonEnergyFraction
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
double phi() const final
momentum azimuthal angle
int HFHadronMultiplicity() const
HFHadronMultiplicity.
float chargedHadronEnergy() const
chargedHadronEnergy
int electronMultiplicity() const
electronMultiplicity