Jets made from CaloJets corrected for ZSP and tracks. More...
#include <JPTJet.h>
Classes | |
struct | Specific |
Public Member Functions | |
float | chargedEmEnergy () const |
chargedEmEnergy | |
float | chargedEmEnergyFraction () const |
chargedEmEnergyFraction | |
float | chargedHadronEnergy () const |
chargedHadronEnergy | |
float | chargedHadronEnergyFraction () const |
chargedHadronEnergyFraction | |
int | chargedMultiplicity () const |
chargedMultiplicity | |
virtual JPTJet * | clone () const |
Polymorphic clone. | |
int | elecMultiplicity () const |
elecMultiplicity | |
const edm::RefToBase< reco::Jet > & | getCaloJetRef () const |
const reco::TrackRefVector & | getElecsInVertexInCalo () const |
const reco::TrackRefVector & | getElecsInVertexOutCalo () const |
const reco::TrackRefVector & | getElecsOutVertexInCalo () const |
const reco::TrackRefVector & | getMuonsInVertexInCalo () const |
const reco::TrackRefVector & | getMuonsInVertexOutCalo () const |
const reco::TrackRefVector & | getMuonsOutVertexInCalo () const |
const reco::TrackRefVector & | getPionsInVertexInCalo () const |
Tracks. | |
const reco::TrackRefVector & | getPionsInVertexOutCalo () const |
const reco::TrackRefVector & | getPionsOutVertexInCalo () const |
const Specific & | getSpecific () const |
block accessors | |
const float & | getZSPCor () const |
JPTJet () | |
JPTJet (const LorentzVector &fP4, const Point &fVertex, const Specific &fSpecific, const Jet::Constituents &fConstituents) | |
JPTJet (const LorentzVector &fP4, const Specific &fSpecific, const Jet::Constituents &fConstituents) | |
int | muonMultiplicity () const |
muonMultiplicity | |
float | neutralEmEnergy () const |
neutralEmEnergy | |
float | neutralEmEnergyFraction () const |
neutralEmEnergyFraction | |
float | neutralHadronEnergy () const |
neutralHadronEnergy | |
float | neutralHadronEnergyFraction () const |
neutralHadronEnergyFraction | |
virtual std::string | print () const |
Print object. | |
virtual void | printJet () const |
Print object in details. | |
virtual | ~JPTJet () |
Private Member Functions | |
virtual bool | overlap (const Candidate &) const |
Polymorphic overlap. | |
Private Attributes | |
Specific | mspecific |
Jets made from CaloJets corrected for ZSP and tracks.
JPTJet represents Jets made from CaloTowers and corrected for tracks in addition to generic Jet parameters it gives reference to the original jet, ZSP scale, associated tracks
reco::JPTJet::JPTJet | ( | ) | [inline] |
JPTJet::JPTJet | ( | const LorentzVector & | fP4, |
const Point & | fVertex, | ||
const Specific & | fSpecific, | ||
const Jet::Constituents & | fConstituents | ||
) |
JPTJet::JPTJet | ( | const LorentzVector & | fP4, |
const Specific & | fSpecific, | ||
const Jet::Constituents & | fConstituents | ||
) |
float reco::JPTJet::chargedEmEnergy | ( | ) | const [inline] |
chargedEmEnergy
Definition at line 100 of file JPTJet.h.
References reco::JPTJet::Specific::mChargedEmEnergy, and mspecific.
Referenced by chargedEmEnergyFraction().
{return mspecific.mChargedEmEnergy;}
float reco::JPTJet::chargedEmEnergyFraction | ( | ) | const [inline] |
chargedEmEnergyFraction
Definition at line 102 of file JPTJet.h.
References chargedEmEnergy(), and reco::LeafCandidate::energy().
{return chargedEmEnergy () / energy ();}
float reco::JPTJet::chargedHadronEnergy | ( | ) | const [inline] |
chargedHadronEnergy
Definition at line 92 of file JPTJet.h.
References reco::JPTJet::Specific::mChargedHadronEnergy, and mspecific.
Referenced by chargedHadronEnergyFraction(), print(), and printJet().
{return mspecific.mChargedHadronEnergy;}
float reco::JPTJet::chargedHadronEnergyFraction | ( | ) | const [inline] |
chargedHadronEnergyFraction
Definition at line 94 of file JPTJet.h.
References chargedHadronEnergy(), and reco::LeafCandidate::energy().
{return chargedHadronEnergy () / energy ();}
int reco::JPTJet::chargedMultiplicity | ( | ) | const [inline] |
chargedMultiplicity
Definition at line 108 of file JPTJet.h.
References reco::JPTJet::Specific::elecsInVertexInCalo, reco::JPTJet::Specific::elecsInVertexOutCalo, mspecific, reco::JPTJet::Specific::muonsInVertexInCalo, reco::JPTJet::Specific::muonsInVertexOutCalo, reco::JPTJet::Specific::pionsInVertexInCalo, reco::JPTJet::Specific::pionsInVertexOutCalo, and edm::RefVector< C, T, F >::size().
Referenced by JPTJetAnalyzer::analyze(), print(), and printJet().
JPTJet * JPTJet::clone | ( | void | ) | const [virtual] |
Polymorphic clone.
Reimplemented from reco::CompositePtrCandidate.
Definition at line 29 of file JPTJet.cc.
References JPTJet().
{ return new JPTJet (*this); }
int reco::JPTJet::elecMultiplicity | ( | ) | const [inline] |
elecMultiplicity
Definition at line 114 of file JPTJet.h.
References reco::JPTJet::Specific::elecsInVertexInCalo, reco::JPTJet::Specific::elecsInVertexOutCalo, mspecific, and edm::RefVector< C, T, F >::size().
{return mspecific.elecsInVertexInCalo.size()+mspecific.elecsInVertexOutCalo.size();}
const edm::RefToBase<reco::Jet>& reco::JPTJet::getCaloJetRef | ( | ) | const [inline] |
Definition at line 130 of file JPTJet.h.
References mspecific, and reco::JPTJet::Specific::theCaloJetRef.
Referenced by JPTJetAnalyzer::analyze(), L1JPTOffsetCorrector::correction(), pat::JetCorrFactorsProducer::evaluate(), printJet(), pat::PATJetProducer::produce(), and pat::Jet::tryImportSpecific().
{return mspecific.theCaloJetRef;}
const reco::TrackRefVector& reco::JPTJet::getElecsInVertexInCalo | ( | ) | const [inline] |
Definition at line 122 of file JPTJet.h.
References reco::JPTJet::Specific::elecsInVertexInCalo, and mspecific.
Referenced by JPTJetAnalyzer::analyze(), print(), and printJet().
{return mspecific.elecsInVertexInCalo;}
const reco::TrackRefVector& reco::JPTJet::getElecsInVertexOutCalo | ( | ) | const [inline] |
Definition at line 123 of file JPTJet.h.
References reco::JPTJet::Specific::elecsInVertexOutCalo, and mspecific.
Referenced by JPTJetAnalyzer::analyze(), print(), and printJet().
{return mspecific.elecsInVertexOutCalo;}
const reco::TrackRefVector& reco::JPTJet::getElecsOutVertexInCalo | ( | ) | const [inline] |
Definition at line 124 of file JPTJet.h.
References reco::JPTJet::Specific::elecsOutVertexInCalo, and mspecific.
Referenced by JPTJetAnalyzer::analyze().
{return mspecific.elecsOutVertexInCalo;}
const reco::TrackRefVector& reco::JPTJet::getMuonsInVertexInCalo | ( | ) | const [inline] |
Definition at line 119 of file JPTJet.h.
References mspecific, and reco::JPTJet::Specific::muonsInVertexInCalo.
Referenced by JPTJetAnalyzer::analyze(), print(), and printJet().
{return mspecific.muonsInVertexInCalo;}
const reco::TrackRefVector& reco::JPTJet::getMuonsInVertexOutCalo | ( | ) | const [inline] |
Definition at line 120 of file JPTJet.h.
References mspecific, and reco::JPTJet::Specific::muonsInVertexOutCalo.
Referenced by JPTJetAnalyzer::analyze(), print(), and printJet().
{return mspecific.muonsInVertexOutCalo;}
const reco::TrackRefVector& reco::JPTJet::getMuonsOutVertexInCalo | ( | ) | const [inline] |
Definition at line 121 of file JPTJet.h.
References mspecific, and reco::JPTJet::Specific::muonsOutVertexInCalo.
Referenced by JPTJetAnalyzer::analyze().
{return mspecific.muonsOutVertexInCalo;}
const reco::TrackRefVector& reco::JPTJet::getPionsInVertexInCalo | ( | ) | const [inline] |
Tracks.
Definition at line 116 of file JPTJet.h.
References mspecific, and reco::JPTJet::Specific::pionsInVertexInCalo.
Referenced by JPTJetAnalyzer::analyze(), print(), and printJet().
{return mspecific.pionsInVertexInCalo;}
const reco::TrackRefVector& reco::JPTJet::getPionsInVertexOutCalo | ( | ) | const [inline] |
Definition at line 117 of file JPTJet.h.
References mspecific, and reco::JPTJet::Specific::pionsInVertexOutCalo.
Referenced by JPTJetAnalyzer::analyze(), print(), and printJet().
{return mspecific.pionsInVertexOutCalo;}
const reco::TrackRefVector& reco::JPTJet::getPionsOutVertexInCalo | ( | ) | const [inline] |
Definition at line 118 of file JPTJet.h.
References mspecific, and reco::JPTJet::Specific::pionsOutVertexInCalo.
Referenced by JPTJetAnalyzer::analyze().
{return mspecific.pionsOutVertexInCalo;}
const Specific& reco::JPTJet::getSpecific | ( | ) | const [inline] |
block accessors
Definition at line 133 of file JPTJet.h.
References mspecific.
Referenced by pat::Jet::tryImportSpecific().
{return mspecific;}
const float& reco::JPTJet::getZSPCor | ( | ) | const [inline] |
int reco::JPTJet::muonMultiplicity | ( | ) | const [inline] |
muonMultiplicity
Definition at line 112 of file JPTJet.h.
References mspecific, reco::JPTJet::Specific::muonsInVertexInCalo, reco::JPTJet::Specific::muonsInVertexOutCalo, and edm::RefVector< C, T, F >::size().
{return mspecific.muonsInVertexInCalo.size()+mspecific.muonsInVertexOutCalo.size();}
float reco::JPTJet::neutralEmEnergy | ( | ) | const [inline] |
neutralEmEnergy
Definition at line 104 of file JPTJet.h.
References reco::JPTJet::Specific::mNeutralEmEnergy, and mspecific.
Referenced by neutralEmEnergyFraction().
{return mspecific.mNeutralEmEnergy;}
float reco::JPTJet::neutralEmEnergyFraction | ( | ) | const [inline] |
neutralEmEnergyFraction
Definition at line 106 of file JPTJet.h.
References reco::LeafCandidate::energy(), and neutralEmEnergy().
{return neutralEmEnergy () / energy ();}
float reco::JPTJet::neutralHadronEnergy | ( | ) | const [inline] |
neutralHadronEnergy
Definition at line 96 of file JPTJet.h.
References reco::JPTJet::Specific::mNeutralHadronEnergy, and mspecific.
Referenced by neutralHadronEnergyFraction().
{return mspecific.mNeutralHadronEnergy;}
float reco::JPTJet::neutralHadronEnergyFraction | ( | ) | const [inline] |
neutralHadronEnergyFraction
Definition at line 98 of file JPTJet.h.
References reco::LeafCandidate::energy(), and neutralHadronEnergy().
{return neutralHadronEnergy () / energy ();}
bool JPTJet::overlap | ( | const Candidate & | ) | const [private, virtual] |
Polymorphic overlap.
Reimplemented from reco::CompositePtrCandidate.
Definition at line 33 of file JPTJet.cc.
{ return false; }
std::string JPTJet::print | ( | void | ) | const [virtual] |
Print object.
Reimplemented from reco::Jet.
Definition at line 50 of file JPTJet.cc.
References chargedHadronEnergy(), chargedMultiplicity(), getElecsInVertexInCalo(), getElecsInVertexOutCalo(), getMuonsInVertexInCalo(), getMuonsInVertexOutCalo(), getPionsInVertexInCalo(), getPionsInVertexOutCalo(), dbtoconf::out, and edm::RefVector< C, T, F >::size().
{ std::ostringstream out; out << Jet::print () // generic jet info << " JPTJet specific:" << std::endl << " chargedhadrons energy: " << chargedHadronEnergy () << std::endl << " charged: " << chargedMultiplicity () << std::endl; out << " JPTCandidate constituents:" << std::endl; out<< " Number of pions: "<< getPionsInVertexInCalo().size()+getPionsInVertexOutCalo().size()<<std::endl; out<< " Number of muons: "<< getMuonsInVertexInCalo().size()+getMuonsInVertexOutCalo().size()<<std::endl; out<< " Number of Electrons: "<< getElecsInVertexInCalo().size()+getElecsInVertexOutCalo().size()<<std::endl; return out.str (); }
void JPTJet::printJet | ( | ) | const [virtual] |
Print object in details.
Definition at line 38 of file JPTJet.cc.
References chargedHadronEnergy(), chargedMultiplicity(), gather_cfg::cout, getCaloJetRef(), getElecsInVertexInCalo(), getElecsInVertexOutCalo(), getMuonsInVertexInCalo(), getMuonsInVertexOutCalo(), getPionsInVertexInCalo(), getPionsInVertexOutCalo(), and edm::RefVector< C, T, F >::size().
{ std::cout << " Raw Calo jet " <<getCaloJetRef()->et()<<" "<<getCaloJetRef()->eta()<<" "<<getCaloJetRef()->phi() << " JPTJet specific:" << std::endl << " chargedhadrons energy: " << chargedHadronEnergy () << std::endl << " charged multiplicity: " << chargedMultiplicity () << std::endl; std::cout << " JPTCandidate constituents:" << std::endl; std::cout<< " Number of pions: "<< getPionsInVertexInCalo().size()+getPionsInVertexOutCalo().size()<<std::endl; std::cout<< " Number of muons: "<< getMuonsInVertexInCalo().size()+getMuonsInVertexOutCalo().size()<<std::endl; std::cout<< " Number of Electrons: "<< getElecsInVertexInCalo().size()+getElecsInVertexOutCalo().size()<<std::endl; }
Specific reco::JPTJet::mspecific [private] |
Definition at line 149 of file JPTJet.h.
Referenced by chargedEmEnergy(), chargedHadronEnergy(), chargedMultiplicity(), elecMultiplicity(), getCaloJetRef(), getElecsInVertexInCalo(), getElecsInVertexOutCalo(), getElecsOutVertexInCalo(), getMuonsInVertexInCalo(), getMuonsInVertexOutCalo(), getMuonsOutVertexInCalo(), getPionsInVertexInCalo(), getPionsInVertexOutCalo(), getPionsOutVertexInCalo(), getSpecific(), getZSPCor(), muonMultiplicity(), neutralEmEnergy(), and neutralHadronEnergy().