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) = "
virtual double pt() const final
transverse momentum
float photonEnergy() const
photonEnergy
int photonMultiplicity() const
photonMultiplicity
bool isNonnull() const
Checks for non-null.
float muonEnergy() const
muonEnergy
virtual bool overlap(const Candidate &) const
Polymorphic overlap.
float chargedEmEnergy() const
chargedEmEnergy
virtual double eta() const final
momentum pseudorapidity
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
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
reco::TrackRef trackRef() const
daughters dau
collection of references to daughters
virtual double phi() const final
momentum azimuthal angle
virtual size_t numberOfDaughters() const
number of daughters
std::ostream & operator<<(std::ostream &, BeamSpot beam)
virtual std::string print() const
Print object.
float HFEMEnergy() const
HFEMEnergy.
virtual std::string print() const
Print object in details.
int neutralHadronMultiplicity() const
neutralHadronMultiplicity
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction
void reserve(size_type n)
Reserve space for RefVector.
virtual PFJet * clone() const
Polymorphic clone.
int neutralMultiplicity() const
neutralMultiplicity
bool isNonnull() const
Checks for non-null.
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
float muonEnergyFraction() const
muonEnergyFraction
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
int HFHadronMultiplicity() const
HFHadronMultiplicity.
float chargedHadronEnergy() const
chargedHadronEnergy
int electronMultiplicity() const
electronMultiplicity