18 :
Jet (fP4, fVertex, fConstituents),
19 m_specific (fSpecific)
31 :
Jet (fP4,
Point(0,0,0), fConstituents),
44 throw cms::Exception(
"Invalid Constituent") <<
"PFJet constituent is not of PFCandidate type";
53 std::vector <PFCandidatePtr>
result;
76 return new PFJet (*
this);
84 std::ostringstream
out;
86 <<
" PFJet specific:" << std::endl
98 <<
" HO energy: " <<
hoEnergy () << std::endl;
99 out <<
" PFCandidate constituents:" << std::endl;
101 for (
unsigned i = 0;
i < constituents.size (); ++
i) {
102 if (constituents[
i].
get()) {
103 out <<
" #" <<
i <<
" " << *(constituents[
i]) << std::endl;
106 out <<
" #" <<
i <<
" PFCandidate is not available in the event" << std::endl;
116 <<
"(pt, eta, phi) = "<<jet.
pt()<<
","<<jet.
eta()<<
","<<jet.
phi()
117 <<
" (Rch,Rnh,Rgamma,Re,Rmu,RHFHad,RHFEM) = "
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.
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
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.
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.
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
math::XYZPoint Point
point in the space
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