CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Member Functions | Friends
pat::Jet Class Reference

Analysis-level calorimeter jet class. More...

#include "DataFormats/PatCandidates/interface/Jet.h"

Inheritance diagram for pat::Jet:
pat::PATObject< reco::Jet > reco::Jet reco::CompositePtrCandidate reco::LeafCandidate reco::Candidate

Public Member Functions

void addBDiscriminatorPair (const std::pair< std::string, float > &thePair)
 method to add a algolabel-discriminator pair More...
 
void addSubjets (pat::JetPtrCollection const &pieces, std::string label="")
 Add new set of subjets. More...
 
void addTagInfo (const std::string &label, const TagInfoFwdPtrCollection::value_type &info)
 
const reco::TrackRefVectorassociatedTracks () const
 method to return a vector of refs to the tracks associated to this jet More...
 
const std::vector< std::string > availableJECLevels (const int &set=0) const
 
const std::vector< std::string > availableJECLevels (const std::string &set) const
 
const std::vector< std::string > availableJECSets () const
 -— methods for jet corrections -— More...
 
float bDiscriminator (const std::string &theLabel) const
 -— methods for accessing b-tagging info -— More...
 
const CaloSpecificcaloSpecific () const
 retrieve the calo specific part of the jet More...
 
CaloTowerFwdPtrVector const & caloTowersFwdPtr () const
 Access to bare FwdPtr collections. More...
 
float chargedEmEnergy () const
 chargedEmEnergy More...
 
float chargedEmEnergyFraction () const
 chargedEmEnergyFraction (relative to uncorrected jet energy) More...
 
float chargedHadronEnergy () const
 chargedHadronEnergy More...
 
float chargedHadronEnergyFraction () const
 chargedHadronEnergyFraction (relative to uncorrected jet energy) More...
 
int chargedHadronMultiplicity () const
 chargedHadronMultiplicity More...
 
float chargedMuEnergy () const
 chargedMuEnergy More...
 
float chargedMuEnergyFraction () const
 chargedMuEnergyFraction More...
 
int chargedMultiplicity () const
 chargedMultiplicity More...
 
virtual Jetclone () const
 required reimplementation of the Candidate's clone method More...
 
Jet correctedJet (const std::string &level, const std::string &flavor="none", const std::string &set="") const
 
Jet correctedJet (const unsigned int &level, const JetCorrFactors::Flavor &flavor=JetCorrFactors::NONE, const unsigned int &set=0) const
 
const LorentzVector correctedP4 (const std::string &level, const std::string &flavor="none", const std::string &set="") const
 
const LorentzVector correctedP4 (const unsigned int &level, const JetCorrFactors::Flavor &flavor=JetCorrFactors::NONE, const unsigned int &set=0) const
 
JetCorrFactors::Flavor currentJECFlavor () const
 return flavour of the current step of jet energy corrections More...
 
std::string currentJECLevel () const
 return the name of the current step of jet energy corrections More...
 
std::string currentJECSet () const
 returns the label of the current set of jet energy corrections More...
 
virtual const reco::Candidatedaughter (size_t i) const
 
float elecMultiplicity () const
 chargedMultiplicity More...
 
const reco::TrackRefVectorelecsInVertexInCalo () const
 electrons fully contained in cone More...
 
const reco::TrackRefVectorelecsInVertexOutCalo () const
 electrons that curled out More...
 
const reco::TrackRefVectorelecsOutVertexInCalo () const
 electrons that curled in More...
 
float electronEnergy () const
 electronEnergy More...
 
float electronEnergyFraction () const
 electronEnergyFraction (relative to corrected jet energy) More...
 
int electronMultiplicity () const
 electronMultiplicity More...
 
float emEnergyFraction () const
 returns the jet electromagnetic energy fraction More...
 
float emEnergyInEB () const
 returns the jet electromagnetic energy in EB More...
 
float emEnergyInEE () const
 returns the jet electromagnetic energy in EE More...
 
float emEnergyInHF () const
 returns the jet electromagnetic energy extracted from HF More...
 
float energyFractionHadronic () const
 returns the jet hadronic energy fraction More...
 
const reco::GenJetgenJet () const
 return the matched generated jet More...
 
edm::FwdRef< reco::GenJetCollection > const & genJetFwdRef () const
 
const reco::GenParticlegenParton () const
 -— methods for MC matching -— More...
 
CaloTowerPtr getCaloConstituent (unsigned fIndex) const
 convert generic constituent to specific type More...
 
std::vector< CaloTowerPtr > const & getCaloConstituents () const
 
const std::vector< std::pair< std::string, float > > & getPairDiscri () const
 get vector of paire labelname-disciValue More...
 
reco::PFCandidatePtr getPFConstituent (unsigned fIndex) const
 convert generic constituent to specific type More...
 
std::vector< reco::PFCandidatePtr > const & getPFConstituents () const
 
float hadEnergyInHB () const
 returns the jet hadronic energy in HB More...
 
float hadEnergyInHE () const
 returns the jet hadronic energy in HE More...
 
float hadEnergyInHF () const
 returns the jet hadronic energy in HF More...
 
float hadEnergyInHO () const
 returns the jet hadronic energy in HO More...
 
int hadronFlavour () const
 return the hadron-based flavour of the jet More...
 
bool hasSubjets (std::string label) const
 Check to see if the subjet collection exists. More...
 
bool hasTagInfo (const std::string label) const
 check to see if the given tag info is nonzero More...
 
float HFEMEnergy () const
 HFEMEnergy. More...
 
float HFEMEnergyFraction () const
 HFEMEnergyFraction (relative to corrected jet energy) More...
 
int HFEMMultiplicity () const
 HFEMMultiplicity. More...
 
float HFHadronEnergy () const
 HFHadronEnergy. More...
 
float HFHadronEnergyFraction () const
 HFHadronEnergyFraction (relative to corrected jet energy) More...
 
int HFHadronMultiplicity () const
 HFHadronMultiplicity. More...
 
float hoEnergy () const
 hoEnergy More...
 
float hoEnergyFraction () const
 hoEnergyFraction (relative to corrected jet energy) More...
 
bool isBasicJet () const
 check to see if the jet is no more than a reco::BasicJet More...
 
bool isCaloJet () const
 check to see if the jet is a reco::CaloJet More...
 
bool isJPTJet () const
 check to see if the jet is a reco::JPTJet More...
 
bool isPFJet () const
 check to see if the jet is a reco::PFJet More...
 
float jecFactor (const std::string &level, const std::string &flavor="none", const std::string &set="") const
 
float jecFactor (const unsigned int &level, const JetCorrFactors::Flavor &flavor=JetCorrFactors::NONE, const unsigned int &set=0) const
 
bool jecSetAvailable (const std::string &set) const
 
bool jecSetAvailable (const unsigned int &set) const
 
bool jecSetsAvailable () const
 
 Jet ()
 default constructor More...
 
 Jet (const reco::Jet &aJet)
 constructor from a reco::Jet More...
 
 Jet (const edm::RefToBase< reco::Jet > &aJetRef)
 constructor from ref to reco::Jet More...
 
 Jet (const edm::Ptr< reco::Jet > &aJetRef)
 constructor from ref to reco::Jet More...
 
 Jet (const edm::RefToBase< pat::Jet > &aJetRef)
 constructure from ref to pat::Jet More...
 
 Jet (const edm::Ptr< pat::Jet > &aJetRef)
 constructure from ref to pat::Jet More...
 
float jetCharge () const
 method to return the JetCharge computed when creating the Jet More...
 
const reco::JetFlavourInfojetFlavourInfo () const
 return the JetFlavourInfo of the jet More...
 
reco::JetID const & jetID () const
 accessing Jet ID information More...
 
const JPTSpecificjptSpecific () const
 retrieve the jpt specific part of the jet More...
 
float maxEInEmTowers () const
 returns the maximum energy deposited in ECAL towers More...
 
float maxEInHadTowers () const
 returns the maximum energy deposited in HCAL towers More...
 
float muonEnergy () const
 muonEnergy More...
 
float muonEnergyFraction () const
 muonEnergyFraction (relative to corrected jet energy) More...
 
int muonMultiplicity () const
 muonMultiplicity More...
 
const reco::TrackRefVectormuonsInVertexInCalo () const
 muons fully contained in cone More...
 
const reco::TrackRefVectormuonsInVertexOutCalo () const
 muons that curled out More...
 
const reco::TrackRefVectormuonsOutVertexInCalo () const
 muons that curled in More...
 
int n60 () const
 returns the number of constituents carrying a 60% of the total Jet energy*/ More...
 
int n90 () const
 returns the number of constituents carrying a 90% of the total Jet energy*/ More...
 
float neutralEmEnergy () const
 neutralEmEnergy More...
 
float neutralEmEnergyFraction () const
 neutralEmEnergyFraction (relative to uncorrected jet energy) More...
 
float neutralHadronEnergy () const
 neutralHadronEnergy More...
 
float neutralHadronEnergyFraction () const
 neutralHadronEnergyFraction (relative to uncorrected jet energy) More...
 
int neutralHadronMultiplicity () const
 neutralHadronMultiplicity More...
 
int neutralMultiplicity () const
 neutralMultiplicity More...
 
unsigned int nSubjetCollections () const
 Number of subjet collections. More...
 
virtual size_t numberOfDaughters () const
 
int partonFlavour () const
 return the parton-based flavour of the jet More...
 
reco::PFCandidateFwdPtrVector const & pfCandidatesFwdPtr () const
 
const PFSpecificpfSpecific () const
 retrieve the pf specific part of the jet More...
 
float photonEnergy () const
 photonEnergy More...
 
float photonEnergyFraction () const
 photonEnergyFraction (relative to corrected jet energy) More...
 
int photonMultiplicity () const
 photonMultiplicity More...
 
const reco::TrackRefVectorpionsInVertexInCalo () const
 pions fully contained in cone More...
 
const reco::TrackRefVectorpionsInVertexOutCalo () const
 pions that curled out More...
 
const reco::TrackRefVectorpionsOutVertexInCalo () const
 pions that curled in More...
 
void setAssociatedTracks (const reco::TrackRefVector &tracks)
 method to set the vector of refs to the tracks associated to this jet More...
 
void setCaloSpecific (const CaloSpecific &newCaloSpecific)
 set the calo specific part of the jet More...
 
void setCaloTowers (const CaloTowerFwdPtrCollection &caloTowers)
 method to store the CaloJet constituents internally More...
 
void setGenJetRef (const edm::FwdRef< reco::GenJetCollection > &gj)
 method to set the matched generated jet reference, embedding if requested More...
 
void setGenParton (const reco::GenParticleRef &gp, bool embed=false)
 method to set the matched parton More...
 
void setHadronFlavour (int hadronFl)
 method to set the hadron-based flavour of the jet More...
 
void setJetCharge (float jetCharge)
 method to set the jet charge More...
 
void setJetFlavourInfo (const reco::JetFlavourInfo &jetFlavourInfo)
 method to set the JetFlavourInfo of the jet More...
 
void setJetID (reco::JetID const &id)
 methods for jet ID More...
 
void setJPTSpecific (const JPTSpecific &newJPTSpecific)
 set the jpt specific part of the jet More...
 
void setPartonFlavour (int partonFl)
 method to set the parton-based flavour of the jet More...
 
void setPFCandidates (const PFCandidateFwdPtrCollection &pfCandidates)
 method to store the PFCandidate constituents internally More...
 
void setPFSpecific (const PFSpecific &newPFSpecific)
 set the pf specific part of the jet More...
 
std::vector< std::string > const & subjetCollectionNames () const
 Subjet collection names. More...
 
pat::JetPtrCollection const & subjets (unsigned int index=0) const
 Access to subjet list. More...
 
pat::JetPtrCollection const & subjets (std::string label) const
 String access to subjet list. More...
 
const reco::BaseTagInfotagInfo (const std::string &label) const
 
const reco::BoostedDoubleSVTagInfotagInfoBoostedDoubleSV (const std::string &label="") const
 
const reco::CandIPTagInfotagInfoCandIP (const std::string &label="") const
 
const reco::CandSecondaryVertexTagInfotagInfoCandSecondaryVertex (const std::string &label="") const
 
const reco::CandSoftLeptonTagInfotagInfoCandSoftLepton (const std::string &label="") const
 
std::vector< std::string > const & tagInfoLabels () const
 get list of tag info labels More...
 
const reco::SecondaryVertexTagInfotagInfoSecondaryVertex (const std::string &label="") const
 
TagInfoFwdPtrCollection const & tagInfosFwdPtr () const
 
const reco::SoftLeptonTagInfotagInfoSoftLepton (const std::string &label="") const
 
const reco::TrackIPTagInfotagInfoTrackIP (const std::string &label="") const
 
float towersArea () const
 returns area of contributing towers More...
 
void updateFwdCaloTowerFwdPtr (unsigned int index, const edm::Ptr< CaloTower > &updateFwd)
 
void updateFwdGenJetFwdRef (edm::Ref< reco::GenJetCollection > updateRef)
 
void updateFwdPFCandidateFwdPtr (unsigned int index, const edm::Ptr< reco::PFCandidate > &updateFwd)
 
void updateFwdTagInfoFwdPtr (unsigned int index, const edm::Ptr< reco::BaseTagInfo > &updateFwd)
 
const float & zspCorrection () const
 zero suppression correction More...
 
virtual ~Jet ()
 destructor More...
 
- Public Member Functions inherited from pat::PATObject< reco::Jet >
void addGenParticleRef (const reco::GenParticleRef &ref)
 
void addTriggerObjectMatch (const TriggerObjectStandAlone &trigObj)
 add a trigger match More...
 
void addUserCand (const std::string &label, const reco::CandidatePtr &data, const bool overwrite=false)
 Set user-defined int. More...
 
void addUserData (const std::string &label, const T &data, bool transientOnly=false, bool overwrite=false)
 
void addUserDataFromPtr (const std::string &label, const edm::Ptr< pat::UserData > &data, bool overwrite=false)
 
void addUserFloat (const std::string &label, float data, const bool overwrite=false)
 Set user-defined float. More...
 
void addUserInt (const std::string &label, int32_t data, const bool overwrite=false)
 Set user-defined int. More...
 
std::vector< std::pair< std::string, pat::LookupTableRecord > > efficiencies () const
 Returns the efficiencies as <name,value> pairs (by value) More...
 
const pat::LookupTableRecordefficiency (const std::string &name) const
 Returns an efficiency given its name. More...
 
const std::vector< std::string > & efficiencyNames () const
 Returns the list of the names of the stored efficiencies. More...
 
const std::vector< pat::LookupTableRecord > & efficiencyValues () const
 Returns the list of the values of the stored efficiencies (the ordering is the same as in efficiencyNames()) More...
 
void embedGenParticle ()
 
const reco::GenParticlegenParticle (size_t idx=0) const
 
reco::GenParticleRef genParticleById (int pdgId, int status, uint8_t autoCharge=0) const
 
reco::GenParticleRef genParticleRef (size_t idx=0) const
 
std::vector< reco::GenParticleRefgenParticleRefs () const
 
size_t genParticlesSize () const
 Number of generator level particles stored as ref or embedded. More...
 
const pat::CandKinResolutiongetKinResolution (const std::string &label="") const
 
bool hasKinResolution (const std::string &label="") const
 Check if the kinematic resolutions are stored into this object (possibly specifying a label for them) More...
 
bool hasOverlaps (const std::string &label) const
 Returns true if there was at least one overlap for this test label. More...
 
bool hasUserCand (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
bool hasUserData (const std::string &key) const
 Check if user data with a specific type is present. More...
 
bool hasUserFloat (const std::string &key) const
 Return true if there is a user-defined float with a given name. More...
 
bool hasUserFloat (const char *key) const
 a CINT-friendly interface More...
 
bool hasUserInt (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
const reco::CandidateoriginalObject () const
 access to the original object; returns zero for null Ref and throws for unavailable collection More...
 
const edm::Ptr< reco::Candidate > & originalObjectRef () const
 reference to original object. Returns a null reference if not available More...
 
const std::vector< std::string > & overlapLabels () const
 Returns the labels of the overlap tests that found at least one overlap. More...
 
const reco::CandidatePtrVectoroverlaps (const std::string &label) const
 
 PATObject ()
 default constructor More...
 
 PATObject (const reco::Jet &obj)
 constructor from a base object (leaves invalid reference to original object!) More...
 
 PATObject (const edm::RefToBase< reco::Jet > &ref)
 constructor from reference More...
 
 PATObject (const edm::Ptr< reco::Jet > &ref)
 constructor from reference More...
 
double resolE (const std::string &label="") const
 Resolution on energy, possibly with a label to specify which resolution to use. More...
 
double resolEt (const std::string &label="") const
 Resolution on et, possibly with a label to specify which resolution to use. More...
 
double resolEta (const std::string &label="") const
 Resolution on eta, possibly with a label to specify which resolution to use. More...
 
double resolM (const std::string &label="") const
 
double resolP (const std::string &label="") const
 Resolution on p, possibly with a label to specify which resolution to use. More...
 
double resolPhi (const std::string &label="") const
 Resolution on phi, possibly with a label to specify which resolution to use. More...
 
double resolPInv (const std::string &label="") const
 Resolution on 1/p, possibly with a label to specify which resolution to use. More...
 
double resolPt (const std::string &label="") const
 Resolution on pt, possibly with a label to specify which resolution to use. More...
 
double resolPx (const std::string &label="") const
 Resolution on px, possibly with a label to specify which resolution to use. More...
 
double resolPy (const std::string &label="") const
 Resolution on py, possibly with a label to specify which resolution to use. More...
 
double resolPz (const std::string &label="") const
 Resolution on pz, possibly with a label to specify which resolution to use. More...
 
double resolTheta (const std::string &label="") const
 Resolution on theta, possibly with a label to specify which resolution to use. More...
 
void setEfficiency (const std::string &name, const pat::LookupTableRecord &value)
 
void setGenParticle (const reco::GenParticle &particle)
 Set the generator level particle from a particle not in the Event (embedding it, of course) More...
 
void setGenParticleRef (const reco::GenParticleRef &ref, bool embed=false)
 Set the generator level particle reference. More...
 
void setKinResolution (const pat::CandKinResolution &resol, const std::string &label="")
 Add a kinematic resolution to this object (possibly with a label) More...
 
void setOverlaps (const std::string &label, const reco::CandidatePtrVector &overlaps)
 
const TriggerObjectStandAlonetriggerObjectMatch (const size_t idx=0) const
 get one matched trigger object by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const std::string &coll, const size_t idx=0) const
 get one matched trigger object from a certain collection by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const char *coll, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const std::string &nameCondition, const size_t idx=0) const
 get one matched L1 object used in a succeeding object combination of a certain L1 condition by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const char *nameCondition, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const std::string &labelFilter, const size_t idx=0) const
 get one matched HLT object used in a certain HLT filter by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const char *labelFilter, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilterID (const unsigned triggerObjectType, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const trigger::TriggerObjectType triggerObjectType, const size_t idx=0) const
 get one matched trigger object of a certain type by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const unsigned triggerObjectType, const size_t idx=0) const
 
const TriggerObjectStandAloneCollectiontriggerObjectMatches () const
 get all matched trigger objects More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCollection (const std::string &coll) const
 get all matched trigger objects from a certain collection More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCollection (const char *coll) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCondition (const std::string &nameCondition) const
 get all matched L1 objects used in a succeeding object combination of a certain L1 condition More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCondition (const char *nameCondition) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilter (const std::string &labelFilter) const
 get all matched HLT objects used in a certain HLT filter More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilter (const char *labelFilter) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilterID (const unsigned triggerObjectType) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByType (const trigger::TriggerObjectType triggerObjectType) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByType (const unsigned triggerObjectType) const
 
void unpackTriggerObjectPathNames (const edm::TriggerNames &names)
 unpack path names of matched trigger objects (if they were packed before embedding, which is not normally the case) More...
 
reco::CandidatePtr userCand (const std::string &key) const
 
const std::vector< std::string > & userCandNames () const
 Get list of user-defined cand names. More...
 
const TuserData (const std::string &key) const
 Returns user-defined data. Returns NULL if the data is not present, or not of type T. More...
 
const void * userDataBare (const std::string &key) const
 
const std::vector< std::string > & userDataNames () const
 Get list of user data object names. More...
 
const std::string & userDataObjectType (const std::string &key) const
 Get human-readable type of user data object, for debugging. More...
 
float userFloat (const std::string &key) const
 
float userFloat (const char *key) const
 a CINT-friendly interface More...
 
const std::vector< std::string > & userFloatNames () const
 Get list of user-defined float names. More...
 
std::vector< float > userFloatRange (const std::string &key) const
 return a range of values corresponding to key More...
 
int32_t userInt (const std::string &key) const
 
const std::vector< std::string > & userIntNames () const
 Get list of user-defined int names. More...
 
std::vector< int > userIntRange (const std::string &key) const
 returns a range of values corresponding to key More...
 
virtual ~PATObject ()
 destructor More...
 
- Public Member Functions inherited from reco::Jet
float constituentEtaPhiSpread () const
 
float constituentPtDistribution () const
 
float etaetaMoment () const
 eta-eta second moment, ET weighted More...
 
float etaphiMoment () const
 eta-phi second moment, ET weighted More...
 
EtaPhiMoments etaPhiStatistics () const
 eta-phi statistics, ET weighted More...
 
float etInAnnulus (float fRmin, float fRmax) const
 ET in annulus between rmin and rmax around jet direction. More...
 
virtual Constituents getJetConstituents () const
 list of constituents More...
 
virtual std::vector< const reco::Candidate * > getJetConstituentsQuick () const
 quick list of constituents More...
 
bool isJet () const
 
 Jet ()
 Default constructor. More...
 
 Jet (const LorentzVector &fP4, const Point &fVertex)
 Initiator. More...
 
 Jet (const LorentzVector &fP4, const Point &fVertex, const Constituents &fConstituents)
 
virtual float jetArea () const
 get jet area More...
 
float maxDistance () const
 maximum distance from jet to constituent More...
 
int nCarrying (float fFraction) const
 return # of constituent carrying fraction of energy More...
 
virtual int nConstituents () const
 

of constituents

More...
 
virtual int nPasses () const
 number of passes taken by algorithm More...
 
float phiphiMoment () const
 phi-phi second moment, ET weighted More...
 
virtual float pileup () const
 pileup energy contribution as calculated by algorithm More...
 
virtual std::string print () const
 Print object. More...
 
virtual void scaleEnergy (double fScale)
 scale energy of the jet More...
 
virtual void setJetArea (float fArea)
 set jet area More...
 
virtual void setNPasses (int fPasses)
 Set number of passes taken by algorithm. More...
 
virtual void setPileup (float fEnergy)
 Set pileup energy contribution as calculated by algorithm. More...
 
- Public Member Functions inherited from reco::CompositePtrCandidate
void addDaughter (const CandidatePtr &)
 add a daughter via a reference More...
 
void clearDaughters ()
 clear daughter references More...
 
 CompositePtrCandidate ()
 default constructor More...
 
 CompositePtrCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 CompositePtrCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 CompositePtrCandidate (const Candidate &p)
 constructor from a Candidate More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position, i = 0, ... numberOfDaughters() - 1 More...
 
CandidatePtr daughterPtr (size_type i) const
 reference to daughter at given position More...
 
const daughtersdaughterPtrVector () const
 references to daughtes More...
 
virtual const Candidatemother (size_t i=0) const
 return pointer to mother More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual size_type numberOfSourceCandidatePtrs () const
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual ~CompositePtrCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
virtual Vector boostToCM () const final
 
virtual int charge () const final
 electric charge More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual double energy () const final
 energy More...
 
virtual double et () const final
 transverse energy More...
 
virtual double et2 () const final
 transverse energy squared (use this for cut!) More...
 
virtual double eta () const final
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isMuon () const
 
virtual bool isPhoton () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&...args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
virtual bool longLived () const final
 is long lived? More...
 
virtual double mass () const final
 mass More...
 
virtual bool massConstraint () const final
 do mass constraint? More...
 
virtual double massSqr () const final
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const final
 spatial momentum vector More...
 
virtual double mt () const final
 transverse mass More...
 
virtual double mtSqr () const final
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
virtual double p () const final
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
virtual int pdgId () const final
 PDG identifier. More...
 
virtual double phi () const final
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
virtual double pt () const final
 transverse momentum More...
 
virtual double px () const final
 x coordinate of momentum vector More...
 
virtual double py () const final
 y coordinate of momentum vector More...
 
virtual double pz () const final
 z coordinate of momentum vector More...
 
virtual double rapidity () const final
 rapidity More...
 
virtual void setCharge (Charge q) final
 set electric charge More...
 
virtual void setLongLived () final
 
virtual void setMass (double m) final
 set particle mass More...
 
virtual void setMassConstraint () final
 
virtual void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
virtual void setPdgId (int pdgId) final
 
virtual void setPz (double pz) final
 
virtual void setStatus (int status) final
 set status word More...
 
virtual void setThreeCharge (Charge qx3) final
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual int status () const final
 status word More...
 
virtual double theta () const final
 momentum polar angle More...
 
virtual int threeCharge () const final
 electric charge More...
 
virtual const Pointvertex () const
 vertex position (overwritten by PF...) More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const final
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
virtual const TrackbestTrack () const
 
 Candidate ()
 default constructor More...
 
virtual float dxyError () const
 uncertainty on dxy More...
 
virtual float dzError () const
 uncertainty on dz More...
 
const_iterator end () const
 last daughter const_iterator More...
 
iterator end ()
 last daughter iterator More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Protected Attributes

reco::TrackRefVector associatedTracks_
 
CaloTowerCollection caloTowers_
 
CaloTowerFwdPtrVector caloTowersFwdPtr_
 
edm::AtomicPtrCache< std::vector< CaloTowerPtr > > caloTowersTemp_
 
JetCorrFactors::Flavor currentJECFlavor_
 
unsigned int currentJECLevel_
 
unsigned int currentJECSet_
 
bool embeddedCaloTowers_
 
bool embeddedPFCandidates_
 
std::vector< reco::GenJetgenJet_
 
edm::FwdRef< reco::GenJetCollectiongenJetFwdRef_
 
reco::GenJetRefVector genJetRef_
 
std::vector< pat::JetCorrFactorsjec_
 
float jetCharge_
 
reco::JetFlavourInfo jetFlavourInfo_
 
reco::JetID jetID_
 
std::vector< std::pair< std::string, float > > pairDiscriVector_
 
reco::PFCandidateCollection pfCandidates_
 
reco::PFCandidateFwdPtrVector pfCandidatesFwdPtr_
 
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > pfCandidatesTemp_
 
std::vector< CaloSpecificspecificCalo_
 
std::vector< JPTSpecificspecificJPT_
 
std::vector< PFSpecificspecificPF_
 
std::vector< pat::JetPtrCollectionsubjetCollections_
 
std::vector< std::string > subjetLabels_
 
std::vector< std::string > tagInfoLabels_
 
edm::OwnVector< reco::BaseTagInfotagInfos_
 
TagInfoFwdPtrCollection tagInfosFwdPtr_
 
- Protected Attributes inherited from pat::PATObject< reco::Jet >
std::vector< std::string > efficiencyNames_
 vector of the efficiencies (names) More...
 
std::vector< pat::LookupTableRecordefficiencyValues_
 vector of the efficiencies (values) More...
 
std::vector< reco::GenParticlegenParticleEmbedded_
 vector to hold an embedded generator level particle More...
 
std::vector< reco::GenParticleRefgenParticleRef_
 Reference to a generator level particle. More...
 
std::vector< std::string > kinResolutionLabels_
 
std::vector< pat::CandKinResolutionkinResolutions_
 Kinematic resolutions. More...
 
std::vector< reco::CandidatePtrVectoroverlapItems_
 Overlapping items (sorted by distance) More...
 
std::vector< std::string > overlapLabels_
 Overlapping test labels (only if there are any overlaps) More...
 
edm::Ptr< reco::CandidaterefToOrig_
 
TriggerObjectStandAloneCollection triggerObjectMatchesEmbedded_
 vector of trigger matches More...
 
std::vector< std::string > userCandLabels_
 
std::vector< reco::CandidatePtruserCands_
 
std::vector< std::string > userDataLabels_
 User data object. More...
 
pat::UserDataCollection userDataObjects_
 
std::vector< std::string > userFloatLabels_
 
std::vector< float > userFloats_
 
std::vector< std::string > userIntLabels_
 
std::vector< int32_t > userInts_
 

Private Member Functions

void addJECFactors (const JetCorrFactors &jec)
 add more sets of energy correction factors More...
 
void cacheCaloTowers () const
 cache calo towers More...
 
void cachePFCandidates () const
 
const JetCorrFactorscorrFactors_ (const std::string &set) const
 return the jet correction factors of a different set, for systematic studies More...
 
const JetCorrFactorscorrFactors_ () const
 return the correction factor for this jet. Throws if they're not available. More...
 
void currentJECFlavor (const JetCorrFactors::Flavor &flavor)
 update the current JEC flavor; used by correctedJet More...
 
void currentJECLevel (const unsigned int &level)
 update the current JEC level; used by correctedJet More...
 
void currentJECSet (const unsigned int &set)
 update the current JEC set; used by correctedJet More...
 
void initializeJEC (unsigned int level, const JetCorrFactors::Flavor &flavor=JetCorrFactors::NONE, unsigned int set=0)
 initialize the jet to a given JEC level during creation starting from Uncorrected More...
 
int jecSet (const std::string &label) const
 
template<typename T >
const TtagInfoByType () const
 
template<typename T >
const TtagInfoByTypeOrLabel (const std::string &label="") const
 
void tryImportSpecific (const reco::Jet &source)
 

Friends

class PATJetProducer
 
class PATJetSlimmer
 
class PATJetUpdater
 
std::ostream & reco::operator<< (std::ostream &out, const pat::Jet &obj)
 pipe operator (introduced to use pat::Jet with PFTopProjectors) More...
 

Additional Inherited Members

- Public Types inherited from pat::PATObject< reco::Jet >
typedef reco::Jet base_type
 
- Public Types inherited from reco::Jet
typedef edm::Ptr< CandidateConstituent
 
typedef std::vector< ConstituentConstituents
 
- Public Types inherited from reco::CompositePtrCandidate
typedef std::vector< CandidatePtrdaughters
 collection of references to daughters More...
 
typedef std::vector< CandidatePtrmothers
 collection of references to daughters More...
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1)/2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >::type CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 
- Static Public Member Functions inherited from reco::Jet
static float detectorEta (float fZVertex, float fPhysicsEta)
 static function to convert physics eta to detector eta More...
 
static Candidate::LorentzVector detectorP4 (const Candidate::Point &vertex, const Candidate &inParticle)
 
static float physicsEta (float fZVertex, float fDetectorEta)
 static function to convert detector eta to physics eta More...
 
static Candidate::LorentzVector physicsP4 (const Candidate::Point &newVertex, const Candidate &inParticle, const Candidate::Point &oldVertex=Candidate::Point(0, 0, 0))
 
- Protected Member Functions inherited from pat::PATObject< reco::Jet >
void addUserDataObject_ (const std::string &label, std::unique_ptr< pat::UserData > value, bool overwrite=false)
 

Detailed Description

Analysis-level calorimeter jet class.

Jet implements the analysis-level calorimeter jet class within the 'pat' namespace

Author
Steven Lowette, Giovanni Petrucciani, Roger Wolf, Christian Autermann

Definition at line 78 of file Jet.h.

Constructor & Destructor Documentation

pat::Jet::Jet ( )

default constructor

pat::Jet::Jet ( const reco::Jet aJet)

constructor from a reco::Jet

pat::Jet::Jet ( const edm::RefToBase< reco::Jet > &  aJetRef)

constructor from ref to reco::Jet

pat::Jet::Jet ( const edm::Ptr< reco::Jet > &  aJetRef)

constructor from ref to reco::Jet

pat::Jet::Jet ( const edm::RefToBase< pat::Jet > &  aJetRef)

constructure from ref to pat::Jet

pat::Jet::Jet ( const edm::Ptr< pat::Jet > &  aJetRef)

constructure from ref to pat::Jet

virtual pat::Jet::~Jet ( )
virtual

destructor

Reimplemented from reco::Jet.

Member Function Documentation

void pat::Jet::addBDiscriminatorPair ( const std::pair< std::string, float > &  thePair)

method to add a algolabel-discriminator pair

Referenced by pat::PATJetUpdater::produce(), and pat::PATJetProducer::produce().

void pat::Jet::addJECFactors ( const JetCorrFactors jec)
inlineprivate

add more sets of energy correction factors

Definition at line 172 of file Jet.h.

References pat::JetCorrFactors::NONE, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by pat::PATJetUpdater::produce(), and pat::PATJetProducer::produce().

172 {jec_.push_back(jec); };
std::vector< pat::JetCorrFactors > jec_
Definition: Jet.h:547
void pat::Jet::addSubjets ( pat::JetPtrCollection const &  pieces,
std::string  label = "" 
)

Add new set of subjets.

void pat::Jet::addTagInfo ( const std::string &  label,
const TagInfoFwdPtrCollection::value_type &  info 
)

sets a tagInfo with the given name from an edm::Ptr<T> to it. If the label ends with 'TagInfos', the 'TagInfos' is stripped out.

Referenced by pat::PATJetUpdater::produce(), and pat::PATJetProducer::produce().

const reco::TrackRefVector& pat::Jet::associatedTracks ( ) const

method to return a vector of refs to the tracks associated to this jet

Referenced by main().

const std::vector<std::string> pat::Jet::availableJECLevels ( const int &  set = 0) const
const std::vector<std::string> pat::Jet::availableJECLevels ( const std::string &  set) const
inline

Definition at line 126 of file Jet.h.

References availableJECLevels().

Referenced by availableJECLevels().

126 { return availableJECLevels(jecSet(set)); };
const std::vector< std::string > availableJECLevels(const int &set=0) const
int jecSet(const std::string &label) const
const std::vector<std::string> pat::Jet::availableJECSets ( ) const

-— methods for jet corrections -—

returns the labels of all available sets of jet energy corrections

float pat::Jet::bDiscriminator ( const std::string &  theLabel) const
void pat::Jet::cacheCaloTowers ( ) const
private

cache calo towers

void pat::Jet::cachePFCandidates ( ) const
private
const CaloSpecific& pat::Jet::caloSpecific ( ) const
inline

retrieve the calo specific part of the jet

Definition at line 257 of file Jet.h.

257  {
258  if (specificCalo_.empty()) throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a CaloJet.\n";
259  return specificCalo_[0];
260  }
std::vector< CaloSpecific > specificCalo_
Definition: Jet.h:572
CaloTowerFwdPtrVector const& pat::Jet::caloTowersFwdPtr ( ) const
inline

Access to bare FwdPtr collections.

Definition at line 453 of file Jet.h.

453 { return caloTowersFwdPtr_;}
CaloTowerFwdPtrVector caloTowersFwdPtr_
Definition: Jet.h:522
float pat::Jet::chargedEmEnergy ( ) const
inline

chargedEmEnergy

Definition at line 638 of file Jet.h.

References Exception.

Referenced by Jet.Jet::chargedEmEnergyFraction(), PileupJetIdAlgo::computeIdVariables(), and Jet.Jet::jetID().

639 {
640  if(isPFJet()){ return pfSpecific().mChargedEmEnergy; }
641  else if( isJPTJet() ){ return jptSpecific().mChargedEmEnergy;}
642  else{ throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a JPTJet nor from PFJet.\n"; }
643 }
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
float mChargedEmEnergy
Definition: JPTJet.h:64
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float mChargedEmEnergy
Definition: PFJet.h:72
bool isPFJet() const
check to see if the jet is a reco::PFJet
Definition: Jet.h:253
bool isJPTJet() const
check to see if the jet is a reco::JPTJet
Definition: Jet.h:251
float pat::Jet::chargedEmEnergyFraction ( ) const
inline

chargedEmEnergyFraction (relative to uncorrected jet energy)

Definition at line 372 of file Jet.h.

Referenced by PFJetIDSelectionFunctor::firstDataCuts(), and main().

372 {return chargedEmEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
bool jecSetsAvailable() const
Definition: Jet.h:129
float chargedEmEnergy() const
chargedEmEnergy
Definition: Jet.h:638
virtual double energy() const final
energy
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
float pat::Jet::chargedHadronEnergy ( ) const
inline

chargedHadronEnergy

Definition at line 624 of file Jet.h.

References Exception.

Referenced by Jet.Jet::chargedHadronEnergyFraction(), PileupJetIdAlgo::computeIdVariables(), and Jet.Jet::jetID().

625 {
626  if(isPFJet()){ return pfSpecific().mChargedHadronEnergy; }
627  else if( isJPTJet() ){ return jptSpecific().mChargedHadronEnergy; }
628  else{ throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a JPTJet nor from PFJet.\n"; }
629 }
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float mChargedHadronEnergy
Definition: JPTJet.h:62
float mChargedHadronEnergy
Definition: PFJet.h:54
bool isPFJet() const
check to see if the jet is a reco::PFJet
Definition: Jet.h:253
bool isJPTJet() const
check to see if the jet is a reco::JPTJet
Definition: Jet.h:251
float pat::Jet::chargedHadronEnergyFraction ( ) const
inline

chargedHadronEnergyFraction (relative to uncorrected jet energy)

Definition at line 368 of file Jet.h.

Referenced by CombinedSVComputer::fillCommonVariables(), PFJetIDSelectionFunctor::firstDataCuts(), and main().

368 {return chargedHadronEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
bool jecSetsAvailable() const
Definition: Jet.h:129
float chargedHadronEnergy() const
chargedHadronEnergy
Definition: Jet.h:624
virtual double energy() const final
energy
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
int pat::Jet::chargedHadronMultiplicity ( ) const
inline

chargedHadronMultiplicity

Definition at line 399 of file Jet.h.

Referenced by CombinedSVComputer::fillCommonVariables(), and Jet.Jet::jetID().

const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
int mChargedHadronMultiplicity
Definition: PFJet.h:62
float pat::Jet::chargedMuEnergy ( ) const
inline

chargedMuEnergy

Definition at line 413 of file Jet.h.

Referenced by Jet.Jet::chargedMuEnergyFraction().

413 {return pfSpecific().mChargedMuEnergy;}
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float mChargedMuEnergy
Definition: PFJet.h:73
float pat::Jet::chargedMuEnergyFraction ( ) const
inline

chargedMuEnergyFraction

Definition at line 415 of file Jet.h.

415 {return chargedMuEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
bool jecSetsAvailable() const
Definition: Jet.h:129
float chargedMuEnergy() const
chargedMuEnergy
Definition: Jet.h:413
virtual double energy() const final
energy
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
int pat::Jet::chargedMultiplicity ( ) const
inline

chargedMultiplicity

Definition at line 659 of file Jet.h.

References Exception.

Referenced by PileupJetIdAlgo::computeIdVariables(), PFJetIDSelectionFunctor::firstDataCuts(), and Jet.Jet::jetID().

660 {
661  if(isPFJet()){ return pfSpecific().mChargedMultiplicity; }
665  else{ throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a JPTJet nor from PFJet.\n"; }
666 }
reco::TrackRefVector muonsInVertexOutCalo
Definition: JPTJet.h:57
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector muonsInVertexInCalo
Definition: JPTJet.h:56
int mChargedMultiplicity
Definition: PFJet.h:75
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
reco::TrackRefVector pionsInVertexOutCalo
Definition: JPTJet.h:54
reco::TrackRefVector elecsInVertexInCalo
Definition: JPTJet.h:59
bool isPFJet() const
check to see if the jet is a reco::PFJet
Definition: Jet.h:253
bool isJPTJet() const
check to see if the jet is a reco::JPTJet
Definition: Jet.h:251
reco::TrackRefVector pionsInVertexInCalo
Definition: JPTJet.h:53
reco::TrackRefVector elecsInVertexOutCalo
Definition: JPTJet.h:60
size_type size() const
Size of the RefVector.
Definition: RefVector.h:107
virtual Jet* pat::Jet::clone ( void  ) const
inlinevirtual

required reimplementation of the Candidate's clone method

Reimplemented from reco::CompositePtrCandidate.

Definition at line 103 of file Jet.h.

References configurableAnalysis::Jet.

103 { return new Jet(*this); }
Jet()
default constructor
Jet pat::Jet::correctedJet ( const std::string &  level,
const std::string &  flavor = "none",
const std::string &  set = "" 
) const
Jet pat::Jet::correctedJet ( const unsigned int &  level,
const JetCorrFactors::Flavor flavor = JetCorrFactors::NONE,
const unsigned int &  set = 0 
) const

copy of the jet corrected up to the given level for the set of jet energy correction factors, which is currently in use

const LorentzVector pat::Jet::correctedP4 ( const std::string &  level,
const std::string &  flavor = "none",
const std::string &  set = "" 
) const
inline

p4 of the jet corrected up to the given level for the set of jet energy correction factors, which is currently in use

Definition at line 156 of file Jet.h.

References reco::LeafCandidate::p4().

Referenced by pat::JetCorrFactorsProducer::evaluate(), pat::RawJetExtractorT< pat::Jet >::operator()(), PFJetMETcorrInputProducer_namespace::RawJetExtractorT< pat::Jet >::operator()(), JetCleanerForType1MET_namespace::RawJetExtractorT< pat::Jet >::operator()(), CaloJetMETcorrInputProducer_namespace::RawJetExtractorT< pat::Jet >::operator()(), PATJetCorrExtractor::operator()(), JetIDSelectionFunctor::operator()(), and pat::PATJetUpdater::produce().

156 { return correctedJet(level, flavor, set).p4(); };
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
const LorentzVector pat::Jet::correctedP4 ( const unsigned int &  level,
const JetCorrFactors::Flavor flavor = JetCorrFactors::NONE,
const unsigned int &  set = 0 
) const
inline

p4 of the jet corrected up to the given level for the set of jet energy correction factors, which is currently in use

Definition at line 159 of file Jet.h.

References diffTwoXMLs::label, reco::LeafCandidate::p4(), and AlCaHLTBitMon_QueryRunRegistry::string.

159 { return correctedJet(level, flavor, set).p4(); };
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
const JetCorrFactors* pat::Jet::corrFactors_ ( const std::string &  set) const
private

return the jet correction factors of a different set, for systematic studies

const JetCorrFactors* pat::Jet::corrFactors_ ( ) const
private

return the correction factor for this jet. Throws if they're not available.

JetCorrFactors::Flavor pat::Jet::currentJECFlavor ( ) const
inline

return flavour of the current step of jet energy corrections

Definition at line 141 of file Jet.h.

References hcalDigis_cfi::level, pat::JetCorrFactors::NONE, and AlCaHLTBitMon_QueryRunRegistry::string.

141 { return currentJECFlavor_; };
JetCorrFactors::Flavor currentJECFlavor_
Definition: Jet.h:555
void pat::Jet::currentJECFlavor ( const JetCorrFactors::Flavor flavor)
inlineprivate

update the current JEC flavor; used by correctedJet

Definition at line 170 of file Jet.h.

170 { currentJECFlavor_=flavor; };
JetCorrFactors::Flavor currentJECFlavor_
Definition: Jet.h:555
std::string pat::Jet::currentJECLevel ( ) const
inline

return the name of the current step of jet energy corrections

Definition at line 139 of file Jet.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by JetIDSelectionFunctor::operator()(), PFJetIDSelectionFunctor::operator()(), and PatJetAnalyzer::print().

139 { return currentJECSet_<jec_.size() ? jec_.at(currentJECSet_).jecLevel(currentJECLevel_) : std::string("ERROR"); };
unsigned int currentJECLevel_
Definition: Jet.h:552
std::vector< pat::JetCorrFactors > jec_
Definition: Jet.h:547
unsigned int currentJECSet_
Definition: Jet.h:550
void pat::Jet::currentJECLevel ( const unsigned int &  level)
inlineprivate

update the current JEC level; used by correctedJet

Definition at line 168 of file Jet.h.

References hcalDigis_cfi::level.

unsigned int currentJECLevel_
Definition: Jet.h:552
std::string pat::Jet::currentJECSet ( ) const
inline

returns the label of the current set of jet energy corrections

Definition at line 137 of file Jet.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

137 { return currentJECSet_<jec_.size() ? jec_.at(currentJECSet_).jecSet() : std::string("ERROR"); }
std::vector< pat::JetCorrFactors > jec_
Definition: Jet.h:547
unsigned int currentJECSet_
Definition: Jet.h:550
void pat::Jet::currentJECSet ( const unsigned int &  set)
inlineprivate

update the current JEC set; used by correctedJet

Definition at line 166 of file Jet.h.

166 { currentJECSet_=set; };
unsigned int currentJECSet_
Definition: Jet.h:550
virtual const reco::Candidate* pat::Jet::daughter ( size_t  i) const
virtual

get a pointer to a Candididate constituent of the jet If using refactorized PAT, return that. (constituents size > 0) Else check the old version of PAT (embedded constituents size > 0) Else return the reco Jet number of constituents

Reimplemented from reco::CompositePtrCandidate.

float pat::Jet::elecMultiplicity ( ) const
inline

chargedMultiplicity

Definition at line 350 of file Jet.h.

References reco::btau::muonMultiplicity.

const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector elecsInVertexInCalo
Definition: JPTJet.h:59
reco::TrackRefVector elecsInVertexOutCalo
Definition: JPTJet.h:60
size_type size() const
Size of the RefVector.
Definition: RefVector.h:107
const reco::TrackRefVector& pat::Jet::elecsInVertexInCalo ( ) const
inline

electrons fully contained in cone

Definition at line 342 of file Jet.h.

342 {return jptSpecific().elecsInVertexInCalo; }
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector elecsInVertexInCalo
Definition: JPTJet.h:59
const reco::TrackRefVector& pat::Jet::elecsInVertexOutCalo ( ) const
inline

electrons that curled out

Definition at line 344 of file Jet.h.

const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector elecsInVertexOutCalo
Definition: JPTJet.h:60
const reco::TrackRefVector& pat::Jet::elecsOutVertexInCalo ( ) const
inline

electrons that curled in

Definition at line 346 of file Jet.h.

const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector elecsOutVertexInCalo
Definition: JPTJet.h:61
float pat::Jet::electronEnergy ( ) const
inline

electronEnergy

Definition at line 382 of file Jet.h.

Referenced by Jet.Jet::electronEnergyFraction().

382 {return pfSpecific().mElectronEnergy;}
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float mElectronEnergy
Definition: PFJet.h:57
float pat::Jet::electronEnergyFraction ( ) const
inline

electronEnergyFraction (relative to corrected jet energy)

Definition at line 384 of file Jet.h.

Referenced by CombinedSVComputer::fillCommonVariables().

384 {return electronEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
bool jecSetsAvailable() const
Definition: Jet.h:129
virtual double energy() const final
energy
float electronEnergy() const
electronEnergy
Definition: Jet.h:382
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
int pat::Jet::electronMultiplicity ( ) const
inline

electronMultiplicity

Definition at line 405 of file Jet.h.

Referenced by CombinedSVComputer::fillCommonVariables().

const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
int mElectronMultiplicity
Definition: PFJet.h:65
float pat::Jet::emEnergyFraction ( ) const
inline

returns the jet electromagnetic energy fraction

Definition at line 296 of file Jet.h.

Referenced by PatZjetsJetAnalyzer::analyze(), main(), and JetIDSelectionFunctor::operator()().

float mEnergyFractionEm
Em energy fraction.
Definition: CaloJet.h:73
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
float pat::Jet::emEnergyInEB ( ) const
inline

returns the jet electromagnetic energy in EB

Definition at line 306 of file Jet.h.

306 {return caloSpecific().mEmEnergyInEB;}
float mEmEnergyInEB
Em energy in EB.
Definition: CaloJet.h:65
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
float pat::Jet::emEnergyInEE ( ) const
inline

returns the jet electromagnetic energy in EE

Definition at line 308 of file Jet.h.

308 {return caloSpecific().mEmEnergyInEE;}
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
float mEmEnergyInEE
Em energy in EE.
Definition: CaloJet.h:67
float pat::Jet::emEnergyInHF ( ) const
inline

returns the jet electromagnetic energy extracted from HF

Definition at line 310 of file Jet.h.

310 {return caloSpecific().mEmEnergyInHF;}
float mEmEnergyInHF
Em energy in HF.
Definition: CaloJet.h:69
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
float pat::Jet::energyFractionHadronic ( ) const
inline

returns the jet hadronic energy fraction

Definition at line 294 of file Jet.h.

float mEnergyFractionHadronic
Hadronic energy fraction.
Definition: CaloJet.h:71
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
const reco::GenJet* pat::Jet::genJet ( ) const

return the matched generated jet

Referenced by main().

edm::FwdRef<reco::GenJetCollection> const& pat::Jet::genJetFwdRef ( ) const
inline

Definition at line 455 of file Jet.h.

455 { return genJetFwdRef_; }
edm::FwdRef< reco::GenJetCollection > genJetFwdRef_
Definition: Jet.h:539
const reco::GenParticle* pat::Jet::genParton ( ) const
inline

-— methods for MC matching -—

return the matched generated parton

Definition at line 108 of file Jet.h.

108 { return genParticle(); }
const reco::GenParticle * genParticle(size_t idx=0) const
Definition: PATObject.h:244
CaloTowerPtr pat::Jet::getCaloConstituent ( unsigned  fIndex) const

convert generic constituent to specific type

get specific constituent of the CaloJet. if the caloTowers were embedded, this reference is transient only and must not be persisted

Referenced by PatZjetsJetAnalyzer::analyze().

std::vector<CaloTowerPtr> const& pat::Jet::getCaloConstituents ( ) const

get the constituents of the CaloJet. If the caloTowers were embedded, these reference are transient only and must not be persisted

Referenced by PatZjetsJetAnalyzer::analyze(), and JetIDSelectionFunctor::operator()().

const std::vector<std::pair<std::string, float> >& pat::Jet::getPairDiscri ( ) const

get vector of paire labelname-disciValue

reco::PFCandidatePtr pat::Jet::getPFConstituent ( unsigned  fIndex) const

convert generic constituent to specific type

get specific constituent of the CaloJet. if the caloTowers were embedded, this reference is transient only and must not be persisted

std::vector<reco::PFCandidatePtr> const& pat::Jet::getPFConstituents ( ) const

get the constituents of the CaloJet. If the caloTowers were embedded, these reference are transient only and must not be persisted

float pat::Jet::hadEnergyInHB ( ) const
inline

returns the jet hadronic energy in HB

Definition at line 298 of file Jet.h.

298 {return caloSpecific().mHadEnergyInHB;}
float mHadEnergyInHB
Hadronic energy in HB.
Definition: CaloJet.h:59
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
float pat::Jet::hadEnergyInHE ( ) const
inline

returns the jet hadronic energy in HE

Definition at line 302 of file Jet.h.

302 {return caloSpecific().mHadEnergyInHE;}
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
float mHadEnergyInHE
Hadronic energy in HE.
Definition: CaloJet.h:63
float pat::Jet::hadEnergyInHF ( ) const
inline

returns the jet hadronic energy in HF

Definition at line 304 of file Jet.h.

304 {return caloSpecific().mHadEnergyInHF;}
float mHadEnergyInHF
Hadronic energy in HF.
Definition: CaloJet.h:61
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
float pat::Jet::hadEnergyInHO ( ) const
inline

returns the jet hadronic energy in HO

Definition at line 300 of file Jet.h.

300 {return caloSpecific().mHadEnergyInHO;}
float mHadEnergyInHO
Hadronic nergy fraction in HO.
Definition: CaloJet.h:57
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
int pat::Jet::hadronFlavour ( ) const

return the hadron-based flavour of the jet

bool pat::Jet::hasSubjets ( std::string  label) const
inline

Check to see if the subjet collection exists.

Definition at line 505 of file Jet.h.

References spr::find(), and diffTwoXMLs::label.

505 { return find( subjetLabels_.begin(), subjetLabels_.end(), label) != subjetLabels_.end(); }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::vector< std::string > subjetLabels_
Definition: Jet.h:533
bool pat::Jet::hasTagInfo ( const std::string  label) const
inline

check to see if the given tag info is nonzero

Definition at line 186 of file Jet.h.

References eleHcalExtractorBlocks_cff::caloTowers, info(), slimmedMuons_cfi::pfCandidates, AlCaHLTBitMon_QueryRunRegistry::string, and l1t::tracks.

186 { return tagInfo(label) != 0; }
const reco::BaseTagInfo * tagInfo(const std::string &label) const
float pat::Jet::HFEMEnergy ( ) const
inline

HFEMEnergy.

Definition at line 394 of file Jet.h.

Referenced by Jet.Jet::HFEMEnergyFraction().

394 {return pfSpecific().mHFEMEnergy;}
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float pat::Jet::HFEMEnergyFraction ( ) const
inline

HFEMEnergyFraction (relative to corrected jet energy)

Definition at line 396 of file Jet.h.

396 {return HFEMEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
bool jecSetsAvailable() const
Definition: Jet.h:129
virtual double energy() const final
energy
float HFEMEnergy() const
HFEMEnergy.
Definition: Jet.h:394
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
int pat::Jet::HFEMMultiplicity ( ) const
inline

HFEMMultiplicity.

Definition at line 410 of file Jet.h.

410 {return pfSpecific().mHFEMMultiplicity;}
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float pat::Jet::HFHadronEnergy ( ) const
inline

HFHadronEnergy.

Definition at line 390 of file Jet.h.

Referenced by Jet.Jet::HFHadronEnergyFraction().

390 {return pfSpecific().mHFHadronEnergy;}
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float mHFHadronEnergy
Definition: PFJet.h:59
float pat::Jet::HFHadronEnergyFraction ( ) const
inline

HFHadronEnergyFraction (relative to corrected jet energy)

Definition at line 392 of file Jet.h.

392 {return HFHadronEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
bool jecSetsAvailable() const
Definition: Jet.h:129
float HFHadronEnergy() const
HFHadronEnergy.
Definition: Jet.h:390
virtual double energy() const final
energy
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
int pat::Jet::HFHadronMultiplicity ( ) const
inline

HFHadronMultiplicity.

Definition at line 408 of file Jet.h.

const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
int mHFHadronMultiplicity
Definition: PFJet.h:67
float pat::Jet::hoEnergy ( ) const
inline

hoEnergy

Definition at line 421 of file Jet.h.

Referenced by Jet.Jet::hoEnergyFraction().

421 {return pfSpecific().mHOEnergy;}
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float pat::Jet::hoEnergyFraction ( ) const
inline

hoEnergyFraction (relative to corrected jet energy)

Definition at line 423 of file Jet.h.

References reco::LeafCandidate::daughter(), and mps_fire::i.

423 {return hoEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
bool jecSetsAvailable() const
Definition: Jet.h:129
virtual double energy() const final
energy
float hoEnergy() const
hoEnergy
Definition: Jet.h:421
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
void pat::Jet::initializeJEC ( unsigned int  level,
const JetCorrFactors::Flavor flavor = JetCorrFactors::NONE,
unsigned int  set = 0 
)
private

initialize the jet to a given JEC level during creation starting from Uncorrected

Referenced by pat::PATJetUpdater::produce(), and pat::PATJetProducer::produce().

bool pat::Jet::isBasicJet ( ) const
inline

check to see if the jet is no more than a reco::BasicJet

Definition at line 255 of file Jet.h.

Referenced by PFJetIDSelectionFunctor::firstDataCuts().

255 { return !(isCaloJet() || isPFJet() || isJPTJet()); }
bool isCaloJet() const
check to see if the jet is a reco::CaloJet
Definition: Jet.h:249
bool isPFJet() const
check to see if the jet is a reco::PFJet
Definition: Jet.h:253
bool isJPTJet() const
check to see if the jet is a reco::JPTJet
Definition: Jet.h:251
bool pat::Jet::isCaloJet ( ) const
inline

check to see if the jet is a reco::CaloJet

Definition at line 249 of file Jet.h.

Referenced by hitfit::JetTranslatorBase< AJet >::CheckEta(), CaloJetMETcorrInputProducer_namespace::InputTypeCheckerT< pat::Jet >::operator()(), hitfit::JetTranslatorBase< AJet >::operator()(), JetIDSelectionFunctor::operator()(), and pat::PATJetProducer::produce().

249 { return !specificCalo_.empty() && !isJPTJet(); }
std::vector< CaloSpecific > specificCalo_
Definition: Jet.h:572
bool isJPTJet() const
check to see if the jet is a reco::JPTJet
Definition: Jet.h:251
bool pat::Jet::isJPTJet ( ) const
inline

check to see if the jet is a reco::JPTJet

Definition at line 251 of file Jet.h.

Referenced by JetIDSelectionFunctor::operator()(), and pat::PATJetProducer::produce().

251 { return !specificJPT_.empty(); }
std::vector< JPTSpecific > specificJPT_
Definition: Jet.h:573
bool pat::Jet::isPFJet ( ) const
inline
float pat::Jet::jecFactor ( const std::string &  level,
const std::string &  flavor = "none",
const std::string &  set = "" 
) const

correction factor to the given level for a specific set of correction factors, starting from the current level

Referenced by TtFullHadKinFitter::KinFit::corJet(), AdHocNTupler::fill(), main(), Jet.Jet::rawFactor(), TtFullHadHypothesis::setCandidate(), TtSemiLepHypothesis::setCandidate(), and Jet.Jet::setRawFactor().

float pat::Jet::jecFactor ( const unsigned int &  level,
const JetCorrFactors::Flavor flavor = JetCorrFactors::NONE,
const unsigned int &  set = 0 
) const

correction factor to the given level for a specific set of correction factors, starting from the current level

Referenced by Jet.Jet::rawFactor(), and Jet.Jet::setRawFactor().

int pat::Jet::jecSet ( const std::string &  label) const
private

index of the set of jec factors with given label; returns -1 if no set of jec factors exists with the given label

bool pat::Jet::jecSetAvailable ( const std::string &  set) const
inline

returns true if the jet carries a set of jet energy correction factors with the given label

Definition at line 132 of file Jet.h.

132 {return (jecSet(set)>=0); };
int jecSet(const std::string &label) const
bool pat::Jet::jecSetAvailable ( const unsigned int &  set) const
inline

returns true if the jet carries a set of jet energy correction factors with the given label

Definition at line 135 of file Jet.h.

135 {return (set<jec_.size()); };
std::vector< pat::JetCorrFactors > jec_
Definition: Jet.h:547
bool pat::Jet::jecSetsAvailable ( ) const
inline
float pat::Jet::jetCharge ( ) const

method to return the JetCharge computed when creating the Jet

const reco::JetFlavourInfo& pat::Jet::jetFlavourInfo ( ) const

return the JetFlavourInfo of the jet

reco::JetID const& pat::Jet::jetID ( ) const
inline

accessing Jet ID information

Definition at line 449 of file Jet.h.

Referenced by Jet.Jet::jetID(), Jet.Jet::looseJetId(), main(), and JetIDSelectionFunctor::operator()().

449 { return jetID_;}
reco::JetID jetID_
Definition: Jet.h:577
const JPTSpecific& pat::Jet::jptSpecific ( ) const
inline

retrieve the jpt specific part of the jet

Definition at line 262 of file Jet.h.

262  {
263  if (specificJPT_.empty()) throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a JPTJet.\n";
264  return specificJPT_[0];
265  }
std::vector< JPTSpecific > specificJPT_
Definition: Jet.h:573
float pat::Jet::maxEInEmTowers ( ) const
inline

returns the maximum energy deposited in ECAL towers

Definition at line 290 of file Jet.h.

290 {return caloSpecific().mMaxEInEmTowers;}
float mMaxEInEmTowers
Maximum energy in EM towers.
Definition: CaloJet.h:53
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
float pat::Jet::maxEInHadTowers ( ) const
inline

returns the maximum energy deposited in HCAL towers

Definition at line 292 of file Jet.h.

292 {return caloSpecific().mMaxEInHadTowers;}
float mMaxEInHadTowers
Maximum energy in HCAL towers.
Definition: CaloJet.h:55
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
float pat::Jet::muonEnergy ( ) const
inline

muonEnergy

Definition at line 386 of file Jet.h.

Referenced by Jet.Jet::jetID(), and Jet.Jet::muonEnergyFraction().

386 {return pfSpecific().mMuonEnergy;}
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float pat::Jet::muonEnergyFraction ( ) const
inline

muonEnergyFraction (relative to corrected jet energy)

Definition at line 388 of file Jet.h.

Referenced by CombinedSVComputer::fillCommonVariables().

388 {return muonEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
float muonEnergy() const
muonEnergy
Definition: Jet.h:386
bool jecSetsAvailable() const
Definition: Jet.h:129
virtual double energy() const final
energy
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
int pat::Jet::muonMultiplicity ( ) const
inline

muonMultiplicity

Definition at line 652 of file Jet.h.

References Exception.

Referenced by CombinedSVComputer::fillCommonVariables().

653 {
654  if(isPFJet()){ return pfSpecific().mMuonMultiplicity; }
656  else{ throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a JPTJet nor from PFJet.\n"; }
657 }
reco::TrackRefVector muonsInVertexOutCalo
Definition: JPTJet.h:57
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector muonsInVertexInCalo
Definition: JPTJet.h:56
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
bool isPFJet() const
check to see if the jet is a reco::PFJet
Definition: Jet.h:253
bool isJPTJet() const
check to see if the jet is a reco::JPTJet
Definition: Jet.h:251
size_type size() const
Size of the RefVector.
Definition: RefVector.h:107
const reco::TrackRefVector& pat::Jet::muonsInVertexInCalo ( ) const
inline

muons fully contained in cone

Definition at line 336 of file Jet.h.

336 {return jptSpecific().muonsInVertexInCalo; }
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector muonsInVertexInCalo
Definition: JPTJet.h:56
const reco::TrackRefVector& pat::Jet::muonsInVertexOutCalo ( ) const
inline

muons that curled out

Definition at line 338 of file Jet.h.

reco::TrackRefVector muonsInVertexOutCalo
Definition: JPTJet.h:57
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
const reco::TrackRefVector& pat::Jet::muonsOutVertexInCalo ( ) const
inline

muons that curled in

Definition at line 340 of file Jet.h.

const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector muonsOutVertexInCalo
Definition: JPTJet.h:58
int pat::Jet::n60 ( ) const
inline

returns the number of constituents carrying a 60% of the total Jet energy*/

Definition at line 316 of file Jet.h.

316 {return nCarrying (0.6);}
int nCarrying(float fFraction) const
return # of constituent carrying fraction of energy
int pat::Jet::n90 ( ) const
inline

returns the number of constituents carrying a 90% of the total Jet energy*/

Definition at line 314 of file Jet.h.

314 {return nCarrying (0.9);}
int nCarrying(float fFraction) const
return # of constituent carrying fraction of energy
float pat::Jet::neutralEmEnergy ( ) const
inline

neutralEmEnergy

Definition at line 645 of file Jet.h.

References Exception.

Referenced by PileupJetIdAlgo::computeIdVariables(), Jet.Jet::jetID(), and Jet.Jet::neutralEmEnergyFraction().

646 {
647  if(isPFJet()){ return pfSpecific().mNeutralEmEnergy; }
648  else if( isJPTJet() ){ return jptSpecific().mNeutralEmEnergy;}
649  else{ throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a JPTJet nor from PFJet.\n"; }
650 }
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float mNeutralEmEnergy
Definition: JPTJet.h:65
float mNeutralEmEnergy
Definition: PFJet.h:74
bool isPFJet() const
check to see if the jet is a reco::PFJet
Definition: Jet.h:253
bool isJPTJet() const
check to see if the jet is a reco::JPTJet
Definition: Jet.h:251
float pat::Jet::neutralEmEnergyFraction ( ) const
inline

neutralEmEnergyFraction (relative to uncorrected jet energy)

Definition at line 374 of file Jet.h.

Referenced by PFJetIDSelectionFunctor::firstDataCuts(), and main().

374 {return neutralEmEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
bool jecSetsAvailable() const
Definition: Jet.h:129
float neutralEmEnergy() const
neutralEmEnergy
Definition: Jet.h:645
virtual double energy() const final
energy
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
float pat::Jet::neutralHadronEnergy ( ) const
inline

neutralHadronEnergy

Definition at line 631 of file Jet.h.

References Exception.

Referenced by PileupJetIdAlgo::computeIdVariables(), Jet.Jet::jetID(), and Jet.Jet::neutralHadronEnergyFraction().

632 {
633  if(isPFJet()){ return pfSpecific().mNeutralHadronEnergy; }
634  else if( isJPTJet() ){ return jptSpecific().mNeutralHadronEnergy; }
635  else{ throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a JPTJet nor from PFJet.\n"; }
636 }
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float mNeutralHadronEnergy
Definition: PFJet.h:55
float mNeutralHadronEnergy
Definition: JPTJet.h:63
bool isPFJet() const
check to see if the jet is a reco::PFJet
Definition: Jet.h:253
bool isJPTJet() const
check to see if the jet is a reco::JPTJet
Definition: Jet.h:251
float pat::Jet::neutralHadronEnergyFraction ( ) const
inline

neutralHadronEnergyFraction (relative to uncorrected jet energy)

Definition at line 370 of file Jet.h.

Referenced by CombinedSVComputer::fillCommonVariables(), PFJetIDSelectionFunctor::firstDataCuts(), and main().

370 {return neutralHadronEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
bool jecSetsAvailable() const
Definition: Jet.h:129
float neutralHadronEnergy() const
neutralHadronEnergy
Definition: Jet.h:631
virtual double energy() const final
energy
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
int pat::Jet::neutralHadronMultiplicity ( ) const
inline

neutralHadronMultiplicity

Definition at line 401 of file Jet.h.

Referenced by CombinedSVComputer::fillCommonVariables().

const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
int mNeutralHadronMultiplicity
Definition: PFJet.h:63
int pat::Jet::neutralMultiplicity ( ) const
inline

neutralMultiplicity

Definition at line 418 of file Jet.h.

Referenced by PileupJetIdAlgo::computeIdVariables(), PFJetIDSelectionFunctor::firstDataCuts(), and Jet.Jet::jetID().

const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
int mNeutralMultiplicity
Definition: PFJet.h:76
unsigned int pat::Jet::nSubjetCollections ( ) const
inline

Number of subjet collections.

Definition at line 508 of file Jet.h.

508 { return subjetCollections_.size(); }
std::vector< pat::JetPtrCollection > subjetCollections_
Definition: Jet.h:532
virtual size_t pat::Jet::numberOfDaughters ( ) const
virtual

Return number of daughters: If using refactorized PAT, return that. (constituents size > 0) Else check the old version of PAT (embedded constituents size > 0) Else return the reco Jet number of constituents

Reimplemented from reco::CompositePtrCandidate.

Referenced by PFJetIDSelectionFunctor::firstDataCuts().

int pat::Jet::partonFlavour ( ) const

return the parton-based flavour of the jet

Referenced by AnalysisTasksAnalyzerBTag::analyze(), and TtDilepLRSignalSelObservables::operator()().

reco::PFCandidateFwdPtrVector const& pat::Jet::pfCandidatesFwdPtr ( ) const
inline

Definition at line 454 of file Jet.h.

454 { return pfCandidatesFwdPtr_; }
reco::PFCandidateFwdPtrVector pfCandidatesFwdPtr_
Definition: Jet.h:528
const PFSpecific& pat::Jet::pfSpecific ( ) const
inline

retrieve the pf specific part of the jet

Definition at line 267 of file Jet.h.

Referenced by PFMEtSignInterfaceBase::compResolution().

267  {
268  if (specificPF_.empty()) throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a PFJet.\n";
269  return specificPF_[0];
270  }
std::vector< PFSpecific > specificPF_
Definition: Jet.h:574
float pat::Jet::photonEnergy ( ) const
inline

photonEnergy

Definition at line 378 of file Jet.h.

Referenced by Jet.Jet::photonEnergyFraction().

378 {return pfSpecific().mPhotonEnergy;}
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
float mPhotonEnergy
Definition: PFJet.h:56
float pat::Jet::photonEnergyFraction ( ) const
inline

photonEnergyFraction (relative to corrected jet energy)

Definition at line 380 of file Jet.h.

Referenced by CombinedSVComputer::fillCommonVariables().

380 {return photonEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
float photonEnergy() const
photonEnergy
Definition: Jet.h:378
bool jecSetsAvailable() const
Definition: Jet.h:129
virtual double energy() const final
energy
float jecFactor(const std::string &level, const std::string &flavor="none", const std::string &set="") const
int pat::Jet::photonMultiplicity ( ) const
inline

photonMultiplicity

Definition at line 403 of file Jet.h.

Referenced by CombinedSVComputer::fillCommonVariables().

const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
Definition: Jet.h:267
int mPhotonMultiplicity
Definition: PFJet.h:64
const reco::TrackRefVector& pat::Jet::pionsInVertexInCalo ( ) const
inline

pions fully contained in cone

Definition at line 330 of file Jet.h.

330 {return jptSpecific().pionsInVertexInCalo; }
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector pionsInVertexInCalo
Definition: JPTJet.h:53
const reco::TrackRefVector& pat::Jet::pionsInVertexOutCalo ( ) const
inline

pions that curled out

Definition at line 332 of file Jet.h.

const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector pionsInVertexOutCalo
Definition: JPTJet.h:54
const reco::TrackRefVector& pat::Jet::pionsOutVertexInCalo ( ) const
inline

pions that curled in

Definition at line 334 of file Jet.h.

const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262
reco::TrackRefVector pionsOutVertexInCalo
Definition: JPTJet.h:55
void pat::Jet::setAssociatedTracks ( const reco::TrackRefVector tracks)

method to set the vector of refs to the tracks associated to this jet

Referenced by pat::PATJetSlimmer::produce(), and pat::PATJetProducer::produce().

void pat::Jet::setCaloSpecific ( const CaloSpecific newCaloSpecific)
inline

set the calo specific part of the jet

Definition at line 272 of file Jet.h.

272  {
273  if (specificCalo_.empty()) throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a CaloJet.\n";
274  specificCalo_[0] = newCaloSpecific;
275  }
std::vector< CaloSpecific > specificCalo_
Definition: Jet.h:572
void pat::Jet::setCaloTowers ( const CaloTowerFwdPtrCollection caloTowers)

method to store the CaloJet constituents internally

Referenced by pat::PATJetProducer::produce().

void pat::Jet::setGenJetRef ( const edm::FwdRef< reco::GenJetCollection > &  gj)

method to set the matched generated jet reference, embedding if requested

Referenced by pat::PATJetProducer::produce().

void pat::Jet::setGenParton ( const reco::GenParticleRef gp,
bool  embed = false 
)
inline

method to set the matched parton

Definition at line 232 of file Jet.h.

References embed.

Referenced by pat::PATJetProducer::produce().

232 { setGenParticleRef(gp, embed); }
void setGenParticleRef(const reco::GenParticleRef &ref, bool embed=false)
Set the generator level particle reference.
#define embed
Definition: AMPTWrapper.h:178
void pat::Jet::setHadronFlavour ( int  hadronFl)

method to set the hadron-based flavour of the jet

Referenced by pat::PATJetProducer::produce().

void pat::Jet::setJetCharge ( float  jetCharge)

method to set the jet charge

Referenced by pat::PATJetProducer::produce().

void pat::Jet::setJetFlavourInfo ( const reco::JetFlavourInfo jetFlavourInfo)

method to set the JetFlavourInfo of the jet

Referenced by pat::PATJetProducer::produce().

void pat::Jet::setJetID ( reco::JetID const &  id)
inline

methods for jet ID

Definition at line 244 of file Jet.h.

References hcalTTPDigis_cfi::id.

Referenced by pat::PATJetProducer::produce().

244 { jetID_ = id; }
reco::JetID jetID_
Definition: Jet.h:577
void pat::Jet::setJPTSpecific ( const JPTSpecific newJPTSpecific)
inline

set the jpt specific part of the jet

Definition at line 277 of file Jet.h.

277  {
278  if (specificJPT_.empty()) throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a JPTJet.\n";
279  specificJPT_[0] = newJPTSpecific;
280  }
std::vector< JPTSpecific > specificJPT_
Definition: Jet.h:573
void pat::Jet::setPartonFlavour ( int  partonFl)

method to set the parton-based flavour of the jet

Referenced by pat::PATJetProducer::produce().

void pat::Jet::setPFCandidates ( const PFCandidateFwdPtrCollection pfCandidates)

method to store the PFCandidate constituents internally

Referenced by pat::PATJetProducer::produce().

void pat::Jet::setPFSpecific ( const PFSpecific newPFSpecific)
inline

set the pf specific part of the jet

Definition at line 282 of file Jet.h.

282  {
283  if (specificPF_.empty()) throw cms::Exception("Type Mismatch") << "This PAT jet was not made from a PFJet.\n";
284  specificPF_[0] = newPFSpecific;
285  }
std::vector< PFSpecific > specificPF_
Definition: Jet.h:574
std::vector<std::string> const& pat::Jet::subjetCollectionNames ( ) const
inline

Subjet collection names.

Definition at line 511 of file Jet.h.

Referenced by TemplatedSecondaryVertexProducer< IPTI, VTX >::matchSubjets().

511 { return subjetLabels_; }
std::vector< std::string > subjetLabels_
Definition: Jet.h:533
pat::JetPtrCollection const& pat::Jet::subjets ( unsigned int  index = 0) const
pat::JetPtrCollection const& pat::Jet::subjets ( std::string  label) const

String access to subjet list.

const reco::BaseTagInfo* pat::Jet::tagInfo ( const std::string &  label) const

get a tagInfo with the given name, or NULL if none is found. You should omit the 'TagInfos' part from the label

const reco::BoostedDoubleSVTagInfo* pat::Jet::tagInfoBoostedDoubleSV ( const std::string &  label = "") const
template<typename T >
const T* pat::Jet::tagInfoByType ( ) const
inlineprivate

Definition at line 586 of file Jet.h.

References mps_fire::i, gen::n, edm::OwnVector< T, P >::size(), and heppy_batch::val.

587  {
588  // First check the factorized PAT version
589  for (size_t i = 0, n = tagInfosFwdPtr_.size(); i < n; ++i) {
591  reco::BaseTagInfo const * baseTagInfo = val.get();
592  if ( typeid(*baseTagInfo) == typeid(T) ) {
593  return static_cast<const T *>( baseTagInfo );
594  }
595  }
596  // Then check compatibility version
597  for (size_t i = 0, n = tagInfos_.size(); i < n; ++i) {
599  reco::BaseTagInfo const * baseTagInfo = &val;
600  if ( typeid(*baseTagInfo) == typeid(T) ) {
601  return static_cast<const T *>( baseTagInfo );
602  }
603  }
604  return 0;
605  }
TagInfoFwdPtrCollection tagInfosFwdPtr_
Definition: Jet.h:562
size_type size() const
Definition: OwnVector.h:264
edm::OwnVector< reco::BaseTagInfo > tagInfos_
Definition: Jet.h:561
long double T
template<typename T >
const T* pat::Jet::tagInfoByTypeOrLabel ( const std::string &  label = "") const
inlineprivate

Definition at line 607 of file Jet.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

608  {
609  return ( label.empty() ? tagInfoByType<T>() : dynamic_cast<const T *>(tagInfo(label)) );
610  }
const reco::BaseTagInfo * tagInfo(const std::string &label) const
const reco::CandIPTagInfo* pat::Jet::tagInfoCandIP ( const std::string &  label = "") const

get a tagInfo with the given name and type or NULL if none is found. If the label is empty or not specified, it returns the first tagInfo of that type (if any one exists) you should omit the 'TagInfos' part from the label

const reco::CandSecondaryVertexTagInfo* pat::Jet::tagInfoCandSecondaryVertex ( const std::string &  label = "") const

get a tagInfo with the given name and type or NULL if none is found. If the label is empty or not specified, it returns the first tagInfo of that type (if any one exists) you should omit the 'TagInfos' part from the label

const reco::CandSoftLeptonTagInfo* pat::Jet::tagInfoCandSoftLepton ( const std::string &  label = "") const

get a tagInfo with the given name and type or NULL if none is found. If the label is empty or not specified, it returns the first tagInfo of that type (if any one exists) you should omit the 'TagInfos' part from the label

std::vector<std::string> const& pat::Jet::tagInfoLabels ( ) const
inline

get list of tag info labels

Definition at line 184 of file Jet.h.

184 { return tagInfoLabels_; }
std::vector< std::string > tagInfoLabels_
Definition: Jet.h:560
const reco::SecondaryVertexTagInfo* pat::Jet::tagInfoSecondaryVertex ( const std::string &  label = "") const
TagInfoFwdPtrCollection const& pat::Jet::tagInfosFwdPtr ( ) const
inline

Definition at line 456 of file Jet.h.

456 { return tagInfosFwdPtr_; }
TagInfoFwdPtrCollection tagInfosFwdPtr_
Definition: Jet.h:562
const reco::SoftLeptonTagInfo* pat::Jet::tagInfoSoftLepton ( const std::string &  label = "") const
const reco::TrackIPTagInfo* pat::Jet::tagInfoTrackIP ( const std::string &  label = "") const
float pat::Jet::towersArea ( ) const
inline

returns area of contributing towers

Definition at line 312 of file Jet.h.

312 {return caloSpecific().mTowersArea;}
float mTowersArea
Area of contributing CaloTowers.
Definition: CaloJet.h:75
const CaloSpecific & caloSpecific() const
retrieve the calo specific part of the jet
Definition: Jet.h:257
void pat::Jet::tryImportSpecific ( const reco::Jet source)
private
void pat::Jet::updateFwdCaloTowerFwdPtr ( unsigned int  index,
const edm::Ptr< CaloTower > &  updateFwd 
)
inline

Update bare FwdPtr and FwdRef "forward" pointers while keeping the "back" pointers the same (i.e. the ref "forwarding")

Definition at line 460 of file Jet.h.

References Exception, and diffTreeTool::index.

460  {
461  if ( index < caloTowersFwdPtr_.size() ) {
463  } else {
464  throw cms::Exception("OutOfRange") << "Index " << index << " is out of range" << std::endl;
465  }
466  }
CaloTowerFwdPtrVector caloTowersFwdPtr_
Definition: Jet.h:522
unsigned int index
Definition: LeafCandidate.h:31
void pat::Jet::updateFwdGenJetFwdRef ( edm::Ref< reco::GenJetCollection updateRef)
inline

Definition at line 485 of file Jet.h.

References MuonAssociatorByHits_cfi::obj, reco::operator<<(), MillePedeFileConverter_cfg::out, csvLumiCalc::pieces, and AlCaHLTBitMon_QueryRunRegistry::string.

485  {
487  }
edm::FwdRef< reco::GenJetCollection > genJetFwdRef_
Definition: Jet.h:539
Ref< C, T, F > const & backRef() const
Definition: FwdRef.h:176
void pat::Jet::updateFwdPFCandidateFwdPtr ( unsigned int  index,
const edm::Ptr< reco::PFCandidate > &  updateFwd 
)
inline

Definition at line 468 of file Jet.h.

References Exception, and diffTreeTool::index.

468  {
469  if ( index < pfCandidatesFwdPtr_.size() ) {
471  } else {
472  throw cms::Exception("OutOfRange") << "Index " << index << " is out of range" << std::endl;
473  }
474  }
unsigned int index
Definition: LeafCandidate.h:31
reco::PFCandidateFwdPtrVector pfCandidatesFwdPtr_
Definition: Jet.h:528
void pat::Jet::updateFwdTagInfoFwdPtr ( unsigned int  index,
const edm::Ptr< reco::BaseTagInfo > &  updateFwd 
)
inline

Definition at line 477 of file Jet.h.

References Exception, and diffTreeTool::index.

477  {
478  if ( index < tagInfosFwdPtr_.size() ) {
480  } else {
481  throw cms::Exception("OutOfRange") << "Index " << index << " is out of range" << std::endl;
482  }
483  }
TagInfoFwdPtrCollection tagInfosFwdPtr_
Definition: Jet.h:562
unsigned int index
Definition: LeafCandidate.h:31
const float& pat::Jet::zspCorrection ( ) const
inline

zero suppression correction

Definition at line 348 of file Jet.h.

348 {return jptSpecific().mZSPCor;}
const JPTSpecific & jptSpecific() const
retrieve the jpt specific part of the jet
Definition: Jet.h:262

Friends And Related Function Documentation

friend class PATJetProducer
friend

make friends with PATJetProducer so that it can set the an initial jet energy scale unequal to raw calling the private initializeJEC function, which should be non accessible to any other user

Definition at line 82 of file Jet.h.

friend class PATJetSlimmer
friend

Definition at line 83 of file Jet.h.

friend class PATJetUpdater
friend

Definition at line 84 of file Jet.h.

std::ostream& reco::operator<< ( std::ostream &  out,
const pat::Jet obj 
)
friend

pipe operator (introduced to use pat::Jet with PFTopProjectors)

Member Data Documentation

reco::TrackRefVector pat::Jet::associatedTracks_
protected

Definition at line 568 of file Jet.h.

CaloTowerCollection pat::Jet::caloTowers_
protected

Definition at line 521 of file Jet.h.

CaloTowerFwdPtrVector pat::Jet::caloTowersFwdPtr_
protected

Definition at line 522 of file Jet.h.

Referenced by pat::PATJetSlimmer::produce().

edm::AtomicPtrCache<std::vector<CaloTowerPtr> > pat::Jet::caloTowersTemp_
protected

Definition at line 520 of file Jet.h.

JetCorrFactors::Flavor pat::Jet::currentJECFlavor_
protected

Definition at line 555 of file Jet.h.

unsigned int pat::Jet::currentJECLevel_
protected

Definition at line 552 of file Jet.h.

unsigned int pat::Jet::currentJECSet_
protected

Definition at line 550 of file Jet.h.

bool pat::Jet::embeddedCaloTowers_
protected

Definition at line 519 of file Jet.h.

bool pat::Jet::embeddedPFCandidates_
protected

Definition at line 525 of file Jet.h.

std::vector<reco::GenJet> pat::Jet::genJet_
protected

Definition at line 537 of file Jet.h.

edm::FwdRef<reco::GenJetCollection> pat::Jet::genJetFwdRef_
protected

Definition at line 539 of file Jet.h.

reco::GenJetRefVector pat::Jet::genJetRef_
protected

Definition at line 538 of file Jet.h.

std::vector<pat::JetCorrFactors> pat::Jet::jec_
protected

Definition at line 547 of file Jet.h.

Referenced by pat::PATJetUpdater::produce().

float pat::Jet::jetCharge_
protected

Definition at line 567 of file Jet.h.

reco::JetFlavourInfo pat::Jet::jetFlavourInfo_
protected

Definition at line 540 of file Jet.h.

reco::JetID pat::Jet::jetID_
protected

Definition at line 577 of file Jet.h.

std::vector<std::pair<std::string, float> > pat::Jet::pairDiscriVector_
protected

Definition at line 559 of file Jet.h.

reco::PFCandidateCollection pat::Jet::pfCandidates_
protected

Definition at line 527 of file Jet.h.

reco::PFCandidateFwdPtrVector pat::Jet::pfCandidatesFwdPtr_
protected

Definition at line 528 of file Jet.h.

Referenced by pat::PATJetSlimmer::produce().

edm::AtomicPtrCache<std::vector<reco::PFCandidatePtr> > pat::Jet::pfCandidatesTemp_
protected

Definition at line 526 of file Jet.h.

std::vector<CaloSpecific> pat::Jet::specificCalo_
protected

Definition at line 572 of file Jet.h.

Referenced by pat::PATJetSlimmer::produce().

std::vector<JPTSpecific> pat::Jet::specificJPT_
protected

Definition at line 573 of file Jet.h.

std::vector<PFSpecific> pat::Jet::specificPF_
protected

Definition at line 574 of file Jet.h.

Referenced by pat::PATJetSlimmer::produce().

std::vector< pat::JetPtrCollection> pat::Jet::subjetCollections_
protected

Definition at line 532 of file Jet.h.

std::vector< std::string> pat::Jet::subjetLabels_
protected

Definition at line 533 of file Jet.h.

std::vector<std::string> pat::Jet::tagInfoLabels_
protected

Definition at line 560 of file Jet.h.

Referenced by pat::PATJetSlimmer::produce().

edm::OwnVector<reco::BaseTagInfo> pat::Jet::tagInfos_
protected

Definition at line 561 of file Jet.h.

Referenced by pat::PATJetSlimmer::produce().

TagInfoFwdPtrCollection pat::Jet::tagInfosFwdPtr_
protected

Definition at line 562 of file Jet.h.

Referenced by pat::PATJetSlimmer::produce().