|
|
Go to the documentation of this file.
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()) {
30 const PFCandidate* pfCandidate = dynamic_cast<const PFCandidate*>(
dau.get());
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();
int HFEMMultiplicity() const
HFEMMultiplicity.
float muonEnergy() const
muonEnergy
reco::TrackRefVector getTrackRefs() const
int neutralHadronMultiplicity() const
neutralHadronMultiplicity
std::vector< Constituent > Constituents
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
virtual std::vector< reco::PFCandidatePtr > getPFConstituents() const
get all constituents
float chargedHadronEnergy() const
chargedHadronEnergy
float HFEMEnergy() const
HFEMEnergy.
int chargedMultiplicity() const
chargedMultiplicity
daughters dau
collection of references to daughters
virtual std::string print() const
Print object.
int chargedHadronMultiplicity() const
chargedHadronMultiplicity
float chargedEmEnergy() const
chargedEmEnergy
float photonEnergy() const
photonEnergy
Structure Point Contains parameters of Gaussian fits to DMRs.
T get() const
get a component
bool isNonnull() const
Checks for non-null.
int electronMultiplicity() const
electronMultiplicity
std::string print() const override
Print object in details.
int photonMultiplicity() const
photonMultiplicity
std::ostream & operator<<(std::ostream &, BeamSpot beam)
float chargedMuEnergy() const
chargedMuEnergy
size_t numberOfDaughters() const override
number of daughters
int muonMultiplicity() const
muonMultiplicity
int HFHadronMultiplicity() const
HFHadronMultiplicity.
virtual reco::PFCandidatePtr getPFConstituent(unsigned fIndex) const
get specific constituent
float neutralHadronEnergy() const
neutralHadronEnergy
int neutralMultiplicity() const
neutralMultiplicity
Jets made from PFObjects.
float neutralEmEnergy() const
neutralEmEnergy
PFJet * clone() const override
Polymorphic clone.
bool overlap(const Candidate &) const override
Polymorphic overlap.
Particle reconstructed by the particle flow algorithm.
float HFHadronEnergy() const
HFHadronEnergy.
float hoEnergy() const
hoEnergy
math::XYZTLorentzVector LorentzVector
Lorentz vector.
float electronEnergy() const
electronEnergy
virtual CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position