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) {}
29 if (
dau.isNonnull() &&
dau.isAvailable()) {
34 throw cms::Exception(
"Invalid Constituent") <<
"PFJet constituent is not of PFCandidate type";
42 std::vector<PFCandidatePtr>
result;
56 result.push_back(trackref);
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()
101 <<
" (Rch,Rnh,Rgamma,Re,Rmu,RHFHad,RHFEM) = " <<
jet.chargedHadronEnergyFraction() <<
"," 102 <<
jet.neutralHadronEnergyFraction() <<
"," <<
jet.photonEnergyFraction() <<
"," <<
jet.electronEnergyFraction()
103 <<
"," <<
jet.muonEnergyFraction() <<
"," <<
jet.HFHadronEnergyFraction() <<
"," <<
jet.HFEMEnergyFraction();
virtual CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
float neutralHadronEnergy() const
neutralHadronEnergy
int chargedMultiplicity() const
chargedMultiplicity
float chargedEmEnergy() const
chargedEmEnergy
std::string print() const override
Print object in details.
int chargedHadronMultiplicity() const
chargedHadronMultiplicity
float neutralEmEnergy() const
neutralEmEnergy
PFJet * clone() const override
Polymorphic clone.
int HFHadronMultiplicity() const
HFHadronMultiplicity.
std::vector< Constituent > Constituents
bool isNonnull() const
Checks for non-null.
int neutralMultiplicity() const
neutralMultiplicity
int photonMultiplicity() const
photonMultiplicity
Jets made from PFObjects.
reco::TrackRefVector getTrackRefs() const
daughters dau
collection of references to daughters
virtual std::vector< reco::PFCandidatePtr > getPFConstituents() const
get all constituents
std::ostream & operator<<(std::ostream &, BeamSpot beam)
float electronEnergy() const
electronEnergy
virtual reco::PFCandidatePtr getPFConstituent(unsigned fIndex) const
get specific constituent
virtual std::string print() const
Print object.
int HFEMMultiplicity() const
HFEMMultiplicity.
int electronMultiplicity() const
electronMultiplicity
bool overlap(const Candidate &) const override
Polymorphic overlap.
float HFHadronEnergy() const
HFHadronEnergy.
int neutralHadronMultiplicity() const
neutralHadronMultiplicity
int muonMultiplicity() const
muonMultiplicity
size_t numberOfDaughters() const override
number of daughters
float HFEMEnergy() const
HFEMEnergy.
float muonEnergy() const
muonEnergy
math::XYZTLorentzVector LorentzVector
Lorentz vector.
float hoEnergy() const
hoEnergy
float chargedMuEnergy() const
chargedMuEnergy
Particle reconstructed by the particle flow algorithm.
Structure Point Contains parameters of Gaussian fits to DMRs.
float chargedHadronEnergy() const
chargedHadronEnergy
float photonEnergy() const
photonEnergy
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate