Analysis-level MET class. More...
#include "DataFormats/PatCandidates/interface/MET.h"
Classes | |
class | PackedMETUncertainty |
this below should be private but Reflex doesn't like it More... | |
struct | Vector2 |
Public Member Functions | |
double | CaloMETInmHF () const |
Returns the event MET in HF-. More... | |
double | CaloMETInpHF () const |
Returns the event MET in HF+. More... | |
Vector2 | caloMETP2 () const |
double | caloMETPhi () const |
double | CaloMETPhiInmHF () const |
Returns the event MET-phi in HF-. More... | |
double | CaloMETPhiInpHF () const |
Returns the event MET-phi in HF+. More... | |
double | caloMETPt () const |
double | caloMetSignificance () const |
Returns the event MET Significance. More... | |
double | caloMETSumEt () const |
double | CaloSETInmHF () const |
Returns the event SET in HF-. More... | |
double | CaloSETInpHF () const |
Returns the event SET in HF+. More... | |
const SpecificCaloMETData & | caloSpecific () const |
accessor for the CaloMET-specific structure More... | |
double | ChargedEMEtFraction () const |
double | ChargedHadEtFraction () const |
MET * | clone () const override |
required reimplementation of the Candidate's clone method More... | |
Vector2 | corP2 (METCorrectionLevel level=Type1) const |
Vector | corP3 (METCorrectionLevel level=Type1) const |
LorentzVector | corP4 (METCorrectionLevel level=Type1) const |
double | corPhi (METCorrectionLevel level=Type1) const |
double | corPt (METCorrectionLevel level=Type1) const |
double | corPx (METCorrectionLevel level=Type1) const |
double | corPy (METCorrectionLevel level=Type1) const |
double | corSumEt (METCorrectionLevel level=Type1) const |
double | emEtFraction () const |
Returns the event electromagnetic energy fraction. More... | |
double | emEtInEB () const |
Returns the event electromagnetic energy in EB. More... | |
double | emEtInEE () const |
Returns the event electromagnetic energy in EE. More... | |
double | emEtInHF () const |
Returns the event electromagnetic energy extracted from HF. More... | |
double | etFractionHadronic () const |
Returns the event hadronic energy fraction. More... | |
const reco::GenMET * | genMET () const |
return the associated GenMET More... | |
double | hadEtInHB () const |
Returns the event hadronic energy in HB. More... | |
double | hadEtInHE () const |
Returns the event hadronic energy in HE. More... | |
double | hadEtInHF () const |
Returns the event hadronic energy in HF. More... | |
double | hadEtInHO () const |
Returns the event hadronic energy in HO. More... | |
bool | isCaloMET () const |
True if this pat::MET was made from a reco::CaloMET. More... | |
bool | isPFMET () const |
True if this pat::MET was made from a reco::pfMET. More... | |
bool | isRecoMET () const |
True if this pat::MET was NOT made from a reco::CaloMET nor a reco::pfMET. More... | |
double | maxEtInEmTowers () const |
Returns the maximum energy deposited in ECAL towers. More... | |
double | maxEtInHadTowers () const |
Returns the maximum energy deposited in HCAL towers. More... | |
MET () | |
default constructor More... | |
MET (const edm::Ptr< reco::MET > &aMETRef) | |
constructor from a Ptr to a reco::MET More... | |
MET (const edm::RefToBase< reco::MET > &aMETRef) | |
constructor from a RefToBase to reco::MET (to be superseded by Ptr counterpart) More... | |
MET (const reco::MET &aMET) | |
constructor from reco::MET More... | |
MET (const reco::MET &corMET, const MET &srcMET) | |
constructor for corrected METs (keeping specific informations from src MET) More... | |
MET (MET const &) | |
copy constructor More... | |
double | metSignificance () const |
double | metSumPtUnclustered () const |
double | MuonEtFraction () const |
double | NeutralEMFraction () const |
double | NeutralHadEtFraction () const |
MET & | operator= (MET const &) |
const SpecificPFMETData & | pfSpecific () const |
accessor for the pfMET-specific structure More... | |
void | setCorShift (double px, double py, double sumEt, METCorrectionType level) |
void | setGenMET (const reco::GenMET &gm) |
set the associated GenMET More... | |
void | setMETSignificance (const double &metSig) |
void | setMETSumPtUnclustered (const double &sumPtUnclustered) |
void | setUncShift (double px, double py, double sumEt, METUncertainty shift, bool isSmeared=false) |
Vector2 | shiftedP2 (METUncertainty shift, METCorrectionLevel level=Type1) const |
Vector2 | shiftedP2_74x (METUncertainty shift, METCorrectionLevel level) const |
Vector | shiftedP3 (METUncertainty shift, METCorrectionLevel level=Type1) const |
Vector | shiftedP3_74x (METUncertainty shift, METCorrectionLevel level) const |
LorentzVector | shiftedP4 (METUncertainty shift, METCorrectionLevel level=Type1) const |
LorentzVector | shiftedP4_74x (METUncertainty shift, METCorrectionLevel level) const |
double | shiftedPhi (METUncertainty shift, METCorrectionLevel level=Type1) const |
double | shiftedPt (METUncertainty shift, METCorrectionLevel level=Type1) const |
double | shiftedPx (METUncertainty shift, METCorrectionLevel level=Type1) const |
double | shiftedPy (METUncertainty shift, METCorrectionLevel level=Type1) const |
double | shiftedSumEt (METUncertainty shift, METCorrectionLevel level=Type1) const |
double | shiftedSumEt_74x (METUncertainty shift, METCorrectionLevel level) const |
double | Type6EtFraction () const |
double | Type7EtFraction () const |
Vector2 | uncorP2 () const |
Vector | uncorP3 () const |
LorentzVector | uncorP4 () const |
double | uncorPhi () const |
double | uncorPt () const |
double | uncorPx () const |
double | uncorPy () const |
double | uncorSumEt () const |
~MET () override | |
destructor More... | |
Public Member Functions inherited from pat::PATObject< reco::MET > | |
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::LookupTableRecord & | efficiency (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::GenParticle * | genParticle (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::GenParticleRef > | genParticleRefs () const |
size_t | genParticlesSize () const |
Number of generator level particles stored as ref or embedded. More... | |
const pat::CandKinResolution & | getKinResolution (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 char *key) const |
a CINT-friendly interface More... | |
bool | hasUserFloat (const std::string &key) const |
Return true if there is a user-defined float with a given name. More... | |
bool | hasUserInt (const std::string &key) const |
Return true if there is a user-defined int with a given name. More... | |
const reco::Candidate * | originalObject () 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::CandidatePtrVector & | overlaps (const std::string &label) const |
PATObject () | |
default constructor More... | |
PATObject (const edm::Ptr< reco::MET > &ref) | |
constructor from reference More... | |
PATObject (const edm::RefToBase< reco::MET > &ref) | |
constructor from reference More... | |
PATObject (const reco::MET &obj) | |
constructor from a base object (leaves invalid reference to original object!) 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 TriggerObjectStandAlone * | triggerObjectMatch (const size_t idx=0) const |
get one matched trigger object by index More... | |
const TriggerObjectStandAlone * | triggerObjectMatchByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByCollection (const char *coll, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByCollection (const std::string &coll, const size_t idx=0) const |
get one matched trigger object from a certain collection by index More... | |
const TriggerObjectStandAlone * | triggerObjectMatchByCondition (const char *nameCondition, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByCondition (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 TriggerObjectStandAlone * | triggerObjectMatchByFilter (const char *labelFilter, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByFilter (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 TriggerObjectStandAlone * | triggerObjectMatchByFilterID (const unsigned triggerObjectType, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByType (const trigger::TriggerObjectType triggerObjectType, const size_t idx=0) const |
get one matched trigger object of a certain type by index More... | |
const TriggerObjectStandAlone * | triggerObjectMatchByType (const unsigned triggerObjectType, const size_t idx=0) const |
const TriggerObjectStandAloneCollection & | triggerObjectMatches () const |
get all matched trigger objects More... | |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByCollection (const char *coll) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByCollection (const std::string &coll) const |
get all matched trigger objects from a certain collection More... | |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByCondition (const char *nameCondition) 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 | triggerObjectMatchesByFilter (const char *labelFilter) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByFilter (const std::string &labelFilter) const |
get all matched HLT objects used in a certain HLT filter More... | |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByFilterID (const unsigned triggerObjectType) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByPath (const std::string &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 | 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 T * | userData (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 char *key) const |
a CINT-friendly interface More... | |
float | userFloat (const std::string &key) const |
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... | |
~PATObject () override | |
destructor More... | |
Public Member Functions inherited from reco::MET | |
std::vector< double > | dmEx () const |
std::vector< double > | dmEy () const |
std::vector< double > | dsumEt () const |
double | e_longitudinal () const |
reco::METCovMatrix | getSignificanceMatrix (void) const |
int | isWeighted () const |
boolean if weights were applied by algorithm (e.g. PUPPI weights) More... | |
MET () | |
MET (const LorentzVector &p4_, const Point &vtx_, bool isWeighted=false) | |
MET (double sumet_, const LorentzVector &p4_, const Point &vtx_, bool isWeighted=false) | |
MET (double sumet_, const std::vector< CorrMETData > &corr_, const LorentzVector &p4_, const Point &vtx_, bool isWeighted=false) | |
std::vector< CorrMETData > | mEtCorr () const |
double | mEtSig () const |
void | setIsWeighted (bool isWeighted) |
Set boolean if weights were applied by algorithm (e.g. PUPPI weights) More... | |
void | setSignificanceMatrix (const reco::METCovMatrix &matrix) |
double | significance () const |
double | sumEt () const |
Public Member Functions inherited from reco::RecoCandidate | |
const Track * | bestTrack () const override |
best track pointer More... | |
virtual TrackBaseRef | bestTrackRef () const |
best track RefToBase More... | |
virtual TrackType | bestTrackType () const |
track type More... | |
virtual CaloTowerRef | caloTower () const |
reference to a CaloTower More... | |
RecoCandidate * | clone () const override |
returns a clone of the Candidate object More... | |
virtual reco::TrackRef | combinedMuon () const |
reference to a stand-alone muon Track More... | |
float | dxyError () const override |
uncertainty on dxy More... | |
float | dzError () const override |
uncertainty on dz More... | |
virtual reco::GsfTrackRef | gsfTrack () const |
reference to a GsfTrack More... | |
virtual size_t | numberOfTracks () const |
number of multiple Tracks More... | |
RecoCandidate () | |
default constructor More... | |
template<typename P4 > | |
RecoCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values More... | |
virtual reco::TrackRef | standAloneMuon () const |
reference to a stand-alone muon Track More... | |
virtual reco::SuperClusterRef | superCluster () const |
reference to a SuperCluster More... | |
virtual reco::TrackRef | track () const |
reference to a Track More... | |
virtual reco::TrackRef | track (size_t) const |
reference to one of multiple Tracks More... | |
~RecoCandidate () override | |
destructor More... | |
Public Member Functions inherited from reco::LeafCandidate | |
Vector | boostToCM () const final |
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) |
const Candidate * | daughter (const std::string &s) const override |
return daughter with a specified role name More... | |
Candidate * | daughter (const std::string &s) override |
return daughter with a specified role name More... | |
const Candidate * | daughter (size_type) const override |
return daughter at a given position (throws an exception) More... | |
Candidate * | daughter (size_type) override |
return daughter at a given position (throws an exception) More... | |
double | energy () const final |
energy More... | |
double | et () const final |
transverse energy More... | |
double | et2 () const final |
transverse energy squared (use this for cut!) More... | |
double | eta () const final |
momentum pseudorapidity More... | |
void | fillVertexCovariance (CovarianceMatrix &v) const override |
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... | |
bool | hasMasterClone () const override |
bool | hasMasterClonePtr () const override |
bool | isCaloMuon () const override |
bool | isConvertedPhoton () const override |
bool | isElectron () const override |
bool | isGlobalMuon () const override |
bool | isJet () const override |
bool | isMuon () const override |
bool | isPhoton () const override |
bool | isStandAloneMuon () const override |
bool | isTrackerMuon () const override |
LeafCandidate () | |
template<typename... Args> | |
LeafCandidate (Args &&... args) | |
LeafCandidate (const Candidate &c) | |
LeafCandidate (LeafCandidate &&)=default | |
LeafCandidate (LeafCandidate &rh) | |
LeafCandidate (LeafCandidate const &)=default | |
bool | longLived () const final |
is long lived? More... | |
double | mass () const final |
mass More... | |
bool | massConstraint () const final |
do mass constraint? More... | |
double | massSqr () const final |
mass squared More... | |
const CandidateBaseRef & | masterClone () const override |
const CandidatePtr & | masterClonePtr () const override |
template<typename Ref > | |
Ref | masterRef () const |
cast master clone reference to a concrete type More... | |
Vector | momentum () const final |
spatial momentum vector More... | |
const Candidate * | mother (size_type) const override |
return mother at a given position (throws an exception) More... | |
double | mt () const final |
transverse mass More... | |
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... | |
size_t | numberOfDaughters () const override |
number of daughters More... | |
size_t | numberOfMothers () const override |
number of mothers More... | |
size_t | numberOfSourceCandidatePtrs () const override |
LeafCandidate & | operator= (LeafCandidate &&)=default |
LeafCandidate & | operator= (LeafCandidate const &)=default |
double | p () const final |
magnitude of momentum vector More... | |
const LorentzVector & | p4 () const final |
four-momentum Lorentz vector More... | |
int | pdgId () const final |
PDG identifier. More... | |
double | phi () const final |
momentum azimuthal angle More... | |
const PolarLorentzVector & | polarP4 () const final |
four-momentum Lorentz vector More... | |
double | pt () const final |
transverse momentum More... | |
double | px () const final |
x coordinate of momentum vector More... | |
double | py () const final |
y coordinate of momentum vector More... | |
double | pz () const final |
z coordinate of momentum vector More... | |
double | rapidity () const final |
rapidity More... | |
void | setCharge (Charge q) final |
set electric charge More... | |
void | setLongLived () final |
void | setMass (double m) final |
set particle mass More... | |
void | setMassConstraint () final |
void | setP4 (const LorentzVector &p4) final |
set 4-momentum More... | |
void | setP4 (const PolarLorentzVector &p4) final |
set 4-momentum More... | |
void | setPdgId (int pdgId) final |
void | setPz (double pz) final |
void | setStatus (int status) final |
set status word More... | |
void | setThreeCharge (Charge qx3) final |
set electric charge More... | |
void | setVertex (const Point &vertex) override |
set vertex More... | |
CandidatePtr | sourceCandidatePtr (size_type i) const override |
int | status () const final |
status word More... | |
double | theta () const final |
momentum polar angle More... | |
int | threeCharge () const final |
electric charge More... | |
const Point & | vertex () const override |
vertex position (overwritten by PF...) More... | |
double | vertexChi2 () const override |
chi-squares More... | |
CovarianceMatrix | vertexCovariance () const final |
return SMatrix More... | |
double | vertexCovariance (int i, int j) const override |
(i, j)-th element of error matrix, i, j = 0, ... 2 More... | |
double | vertexNdof () const override |
double | vertexNormalizedChi2 () const override |
chi-squared divided by n.d.o.f. More... | |
double | vx () const override |
x coordinate of vertex position More... | |
double | vy () const override |
y coordinate of vertex position More... | |
double | vz () const override |
z coordinate of vertex position More... | |
double | y () const final |
rapidity More... | |
~LeafCandidate () override | |
destructor More... | |
Public Member Functions inherited from reco::Candidate | |
iterator | begin () |
first daughter iterator More... | |
const_iterator | begin () const |
first daughter const_iterator More... | |
Candidate () | |
default constructor More... | |
iterator | end () |
last daughter iterator More... | |
const_iterator | end () const |
last daughter const_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 | |
PackedMETUncertainty | caloPackedMet_ |
std::vector< PackedMETUncertainty > | corrections_ |
std::vector< PackedMETUncertainty > | uncertainties_ |
std::vector< PackedMETUncertainty > | uncertaintiesRaw_ |
std::vector< PackedMETUncertainty > | uncertaintiesType1_ |
std::vector< PackedMETUncertainty > | uncertaintiesType1p2_ |
Protected Attributes inherited from pat::PATObject< reco::MET > | |
std::vector< std::string > | efficiencyNames_ |
vector of the efficiencies (names) More... | |
std::vector< pat::LookupTableRecord > | efficiencyValues_ |
vector of the efficiencies (values) More... | |
std::vector< reco::GenParticle > | genParticleEmbedded_ |
vector to hold an embedded generator level particle More... | |
std::vector< reco::GenParticleRef > | genParticleRef_ |
Reference to a generator level particle. More... | |
std::vector< std::string > | kinResolutionLabels_ |
std::vector< pat::CandKinResolution > | kinResolutions_ |
Kinematic resolutions. More... | |
std::vector< reco::CandidatePtrVector > | overlapItems_ |
Overlapping items (sorted by distance) More... | |
std::vector< std::string > | overlapLabels_ |
Overlapping test labels (only if there are any overlaps) More... | |
edm::Ptr< reco::Candidate > | refToOrig_ |
TriggerObjectStandAloneCollection | triggerObjectMatchesEmbedded_ |
vector of trigger matches More... | |
std::vector< std::string > | userCandLabels_ |
std::vector< reco::CandidatePtr > | userCands_ |
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 | |
const PackedMETUncertainty | findMETTotalShift (MET::METCorrectionLevel cor, MET::METUncertainty shift) const |
void | initCorMap () |
Private Attributes | |
std::vector< SpecificCaloMETData > | caloMET_ |
std::map< MET::METCorrectionLevel, std::vector< MET::METCorrectionType > > | corMap_ |
std::vector< reco::GenMET > | genMET_ |
double | metSig_ |
std::vector< SpecificPFMETData > | pfMET_ |
double | sumPtUnclustered_ |
Additional Inherited Members | |
Protected Member Functions inherited from pat::PATObject< reco::MET > | |
void | addUserDataObject_ (const std::string &label, std::unique_ptr< pat::UserData > value, bool overwrite=false) |
Protected Member Functions inherited from reco::RecoCandidate | |
template<typename R > | |
bool | checkOverlap (const R &r1, const R &r2) const |
check if two components overlap More... | |
Analysis-level MET class.
pat::MET implements an analysis-level missing energy class as a 4-vector within the 'pat' namespace.
Please post comments and questions to the Physics Tools hypernews: https://hypernews.cern.ch/HyperNews/CMS/get/physTools.html
MET::MET | ( | ) |
default constructor
Definition at line 9 of file MET.cc.
References initCorMap().
Referenced by clone().
MET::MET | ( | const reco::MET & | aMET | ) |
constructor from reco::MET
Definition at line 12 of file MET.cc.
References L1TowerCalibrationProducer_cfi::calo, caloMET_, initCorMap(), metSig_, operator=(), packedPFCandidateRefMixer_cfi::pf, pfMET_, and sumPtUnclustered_.
MET::MET | ( | const edm::RefToBase< reco::MET > & | aMETRef | ) |
constructor from a RefToBase to reco::MET (to be superseded by Ptr counterpart)
constructor from ref to reco::MET
Definition at line 29 of file MET.cc.
References L1TowerCalibrationProducer_cfi::calo, caloMET_, edm::RefToBase< T >::get(), initCorMap(), metSig_, operator=(), packedPFCandidateRefMixer_cfi::pf, pfMET_, and sumPtUnclustered_.
constructor from a Ptr to a reco::MET
constructor from ref to reco::MET
Definition at line 46 of file MET.cc.
References L1TowerCalibrationProducer_cfi::calo, caloMET_, edm::Ptr< T >::get(), initCorMap(), metSig_, operator=(), packedPFCandidateRefMixer_cfi::pf, pfMET_, and sumPtUnclustered_.
MET::MET | ( | MET const & | iOther | ) |
constructor for corrected METs (keeping specific informations from src MET)
constructor for corrected mets, keeping track of srcMET informations,
Definition at line 81 of file MET.cc.
References initCorMap(), reco::MET::setSignificanceMatrix(), and correctionTermsCaloMet_cff::srcMET.
|
inline |
Returns the event MET in HF-.
Definition at line 124 of file MET.h.
References SpecificCaloMETData::CaloMETInmHF, and caloSpecific().
|
inline |
Returns the event MET in HF+.
Definition at line 122 of file MET.h.
References SpecificCaloMETData::CaloMETInpHF, and caloSpecific().
MET::Vector2 MET::caloMETP2 | ( | ) | const |
Definition at line 360 of file MET.cc.
References shiftedP2().
Referenced by caloMETPhi(), and caloMETPt().
double MET::caloMETPhi | ( | ) | const |
Definition at line 366 of file MET.cc.
References caloMETP2(), and pat::MET::Vector2::phi().
|
inline |
Returns the event MET-phi in HF-.
Definition at line 128 of file MET.h.
References SpecificCaloMETData::CaloMETPhiInmHF, and caloSpecific().
|
inline |
Returns the event MET-phi in HF+.
Definition at line 126 of file MET.h.
References SpecificCaloMETData::CaloMETPhiInpHF, and caloSpecific().
double MET::caloMETPt | ( | ) | const |
Definition at line 364 of file MET.cc.
References caloMETP2(), and pat::MET::Vector2::pt().
|
inline |
Returns the event MET Significance.
Definition at line 116 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::METSignificance.
double MET::caloMETSumEt | ( | ) | const |
|
inline |
Returns the event SET in HF-.
Definition at line 120 of file MET.h.
References SpecificCaloMETData::CaloSETInmHF, and caloSpecific().
|
inline |
Returns the event SET in HF+.
Definition at line 118 of file MET.h.
References SpecificCaloMETData::CaloSETInpHF, and caloSpecific().
|
inline |
accessor for the CaloMET-specific structure
Definition at line 130 of file MET.h.
References caloMET_, Exception, and isCaloMET().
Referenced by CaloMETInmHF(), CaloMETInpHF(), CaloMETPhiInmHF(), CaloMETPhiInpHF(), caloMetSignificance(), CaloSETInmHF(), CaloSETInpHF(), emEtFraction(), emEtInEB(), emEtInEE(), emEtInHF(), etFractionHadronic(), hadEtInHB(), hadEtInHE(), hadEtInHF(), hadEtInHO(), maxEtInEmTowers(), and maxEtInHadTowers().
|
inline |
Definition at line 139 of file MET.h.
References SpecificPFMETData::ChargedEMFraction, and pfSpecific().
Referenced by METTester::analyze(), and METAnalyzer::fillMonitorElement().
|
inline |
Definition at line 140 of file MET.h.
References SpecificPFMETData::ChargedHadFraction, and pfSpecific().
Referenced by METTester::analyze(), and METAnalyzer::fillMonitorElement().
|
inlineoverridevirtual |
MET::Vector2 MET::corP2 | ( | MET::METCorrectionLevel | cor = Type1 | ) | const |
MET::Vector MET::corP3 | ( | MET::METCorrectionLevel | cor = Type1 | ) | const |
MET::LorentzVector MET::corP4 | ( | MET::METCorrectionLevel | cor = Type1 | ) | const |
|
inline |
Definition at line 238 of file MET.h.
References corP2(), personalPlayback::level, and pat::MET::Vector2::phi().
|
inline |
Definition at line 237 of file MET.h.
References corP2(), personalPlayback::level, and pat::MET::Vector2::pt().
|
inline |
Definition at line 235 of file MET.h.
References corP2(), personalPlayback::level, and pat::MET::Vector2::px.
Referenced by pat::PATMETSlimmer::OneMETShift::readAndSet().
|
inline |
Definition at line 236 of file MET.h.
References corP2(), personalPlayback::level, and pat::MET::Vector2::py.
Referenced by pat::PATMETSlimmer::OneMETShift::readAndSet().
double MET::corSumEt | ( | MET::METCorrectionLevel | cor = Type1 | ) | const |
Definition at line 329 of file MET.cc.
References NoShift, and shiftedSumEt().
Referenced by pat::PATMETSlimmer::OneMETShift::readAndSet().
|
inline |
Returns the event electromagnetic energy fraction.
Definition at line 100 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::EtFractionEm.
|
inline |
Returns the event electromagnetic energy in EB.
Definition at line 110 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::EmEtInEB.
|
inline |
Returns the event electromagnetic energy in EE.
Definition at line 112 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::EmEtInEE.
|
inline |
Returns the event electromagnetic energy extracted from HF.
Definition at line 114 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::EmEtInHF.
|
inline |
Returns the event hadronic energy fraction.
Definition at line 98 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::EtFractionHadronic.
|
private |
Definition at line 208 of file MET.cc.
References pat::MET::PackedMETUncertainty::add(), corMap_, corrections_, reco::MET::dsumEt(), Exception, mps_fire::i, JetResDown, METUncertaintySize, edm::shift, Type1Smear, and uncertainties_.
Referenced by shiftedP2(), shiftedP3(), shiftedP4(), and shiftedSumEt().
const reco::GenMET * MET::genMET | ( | ) | const |
|
inline |
Returns the event hadronic energy in HB.
Definition at line 102 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::HadEtInHB.
|
inline |
Returns the event hadronic energy in HE.
Definition at line 106 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::HadEtInHE.
|
inline |
Returns the event hadronic energy in HF.
Definition at line 108 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::HadEtInHF.
|
inline |
Returns the event hadronic energy in HO.
Definition at line 104 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::HadEtInHO.
|
private |
Definition at line 132 of file MET.cc.
References Calo, Chs, corMap_, DeepResolutionTune, DeepResponseTune, None, Raw, RawCalo, RawChs, RawDeepResolutionTune, RawDeepResponseTune, RawTrk, Smear, T0, T1, Trk, TXY, TXYForRaw, TXYForT01, TXYForT01Smear, TXYForT1Smear, Type01, Type01Smear, Type01SmearXY, Type01XY, Type1, Type1Smear, Type1SmearXY, Type1XY, and TypeXY.
Referenced by MET().
|
inline |
True if this pat::MET was made from a reco::CaloMET.
Definition at line 86 of file MET.h.
References caloMET_.
Referenced by caloSpecific().
|
inline |
True if this pat::MET was made from a reco::pfMET.
Definition at line 88 of file MET.h.
References pfMET_.
Referenced by METTester::analyze(), and pfSpecific().
|
inline |
|
inline |
Returns the maximum energy deposited in ECAL towers.
Definition at line 94 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::MaxEtInEmTowers.
|
inline |
Returns the maximum energy deposited in HCAL towers.
Definition at line 96 of file MET.h.
References caloSpecific(), and SpecificCaloMETData::MaxEtInHadTowers.
double MET::metSignificance | ( | ) | const |
double MET::metSumPtUnclustered | ( | ) | const |
|
inline |
Definition at line 141 of file MET.h.
References SpecificPFMETData::MuonFraction, and pfSpecific().
Referenced by METTester::analyze(), and METAnalyzer::fillMonitorElement().
|
inline |
Definition at line 137 of file MET.h.
References SpecificPFMETData::NeutralEMFraction, and pfSpecific().
Referenced by METTester::analyze(), and METAnalyzer::fillMonitorElement().
|
inline |
Definition at line 138 of file MET.h.
References SpecificPFMETData::NeutralHadFraction, and pfSpecific().
Referenced by METTester::analyze(), and METAnalyzer::fillMonitorElement().
Definition at line 97 of file MET.cc.
References caloMET_, caloPackedMet_, corrections_, genMET_, metSig_, pfMET_, sumPtUnclustered_, uncertainties_, uncertaintiesRaw_, uncertaintiesType1_, and uncertaintiesType1p2_.
Referenced by MET().
|
inline |
accessor for the pfMET-specific structure
Definition at line 145 of file MET.h.
References Exception, isPFMET(), and pfMET_.
Referenced by ChargedEMEtFraction(), ChargedHadEtFraction(), MuonEtFraction(), NeutralEMFraction(), NeutralHadEtFraction(), Type6EtFraction(), and Type7EtFraction().
void MET::setCorShift | ( | double | px, |
double | py, | ||
double | sumEt, | ||
MET::METCorrectionType | level | ||
) |
Definition at line 352 of file MET.cc.
References corrections_, personalPlayback::level, reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::MET::sumEt().
void MET::setGenMET | ( | const reco::GenMET & | gm | ) |
void MET::setMETSignificance | ( | const double & | metSig | ) |
Definition at line 124 of file MET.cc.
References metSig_.
Referenced by pat::PATMETProducer::produce(), and CorrectedPATMETProducer::produce().
void MET::setMETSumPtUnclustered | ( | const double & | sumPtUnclustered | ) |
Definition at line 128 of file MET.cc.
References met_cff::sumPtUnclustered, and sumPtUnclustered_.
Referenced by pat::PATMETProducer::produce().
void MET::setUncShift | ( | double | px, |
double | py, | ||
double | sumEt, | ||
METUncertainty | shift, | ||
bool | isSmeared = false |
||
) |
Definition at line 336 of file MET.cc.
References pat::MET::PackedMETUncertainty::dpx(), pat::MET::PackedMETUncertainty::dpy(), pat::MET::PackedMETUncertainty::dsumEt(), JetResDown, reco::LeafCandidate::px(), reco::LeafCandidate::py(), edm::shift, reco::MET::sumEt(), and uncertainties_.
MET::Vector2 MET::shiftedP2 | ( | MET::METUncertainty | shift, |
MET::METCorrectionLevel | cor = Type1 |
||
) | const |
Definition at line 241 of file MET.cc.
References caloPackedMet_, pat::MET::PackedMETUncertainty::dpx(), pat::MET::PackedMETUncertainty::dpy(), findMETTotalShift(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), runTheMatrix::ret, edm::shift, shiftedP2_74x(), uncertaintiesRaw_, uncertaintiesType1_, and findQualityFiles::v.
Referenced by caloMETP2(), corP2(), shiftedPhi(), shiftedPt(), shiftedPx(), shiftedPy(), and uncorP2().
MET::Vector2 MET::shiftedP2_74x | ( | MET::METUncertainty | shift, |
MET::METCorrectionLevel | level | ||
) | const |
Definition at line 371 of file MET.cc.
References Exception, personalPlayback::level, reco::LeafCandidate::px(), reco::LeafCandidate::py(), Raw, runTheMatrix::ret, edm::shift, Type1, uncertaintiesRaw_, uncertaintiesType1_, and findQualityFiles::v.
Referenced by shiftedP2().
MET::Vector MET::shiftedP3 | ( | MET::METUncertainty | shift, |
MET::METCorrectionLevel | cor = Type1 |
||
) | const |
Definition at line 262 of file MET.cc.
References caloPackedMet_, pat::MET::PackedMETUncertainty::dpx(), pat::MET::PackedMETUncertainty::dpy(), findMETTotalShift(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), edm::shift, shiftedP3_74x(), createJobs::tmp, uncertaintiesRaw_, uncertaintiesType1_, and findQualityFiles::v.
MET::Vector MET::shiftedP3_74x | ( | MET::METUncertainty | shift, |
MET::METCorrectionLevel | level | ||
) | const |
Definition at line 388 of file MET.cc.
References Exception, personalPlayback::level, reco::LeafCandidate::px(), reco::LeafCandidate::py(), Raw, edm::shift, Type1, uncertaintiesRaw_, uncertaintiesType1_, and findQualityFiles::v.
Referenced by shiftedP3().
MET::LorentzVector MET::shiftedP4 | ( | METUncertainty | shift, |
MET::METCorrectionLevel | cor = Type1 |
||
) | const |
Definition at line 283 of file MET.cc.
References caloPackedMet_, pat::MET::PackedMETUncertainty::dpx(), pat::MET::PackedMETUncertainty::dpy(), findMETTotalShift(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), edm::shift, shiftedP4_74x(), createJobs::tmp, uncertaintiesRaw_, uncertaintiesType1_, findQualityFiles::v, and reco::LeafCandidate::y().
MET::LorentzVector MET::shiftedP4_74x | ( | METUncertainty | shift, |
MET::METCorrectionLevel | level | ||
) | const |
Definition at line 404 of file MET.cc.
References Exception, personalPlayback::level, reco::LeafCandidate::px(), reco::LeafCandidate::py(), Raw, edm::shift, Type1, uncertaintiesRaw_, uncertaintiesType1_, findQualityFiles::v, and reco::LeafCandidate::y().
Referenced by shiftedP4().
|
inline |
Definition at line 227 of file MET.h.
References personalPlayback::level, pat::MET::Vector2::phi(), edm::shift, and shiftedP2().
|
inline |
Definition at line 224 of file MET.h.
References personalPlayback::level, pat::MET::Vector2::pt(), edm::shift, and shiftedP2().
Referenced by METTester::analyze().
|
inline |
Definition at line 218 of file MET.h.
References personalPlayback::level, pat::MET::Vector2::px, edm::shift, and shiftedP2().
Referenced by pat::PATMETSlimmer::OneMETShift::readAndSet().
|
inline |
Definition at line 221 of file MET.h.
References personalPlayback::level, pat::MET::Vector2::py, edm::shift, and shiftedP2().
Referenced by pat::PATMETSlimmer::OneMETShift::readAndSet().
double MET::shiftedSumEt | ( | MET::METUncertainty | shift, |
MET::METCorrectionLevel | cor = Type1 |
||
) | const |
Definition at line 306 of file MET.cc.
References caloPackedMet_, pat::MET::PackedMETUncertainty::dsumEt(), findMETTotalShift(), edm::shift, shiftedSumEt_74x(), reco::MET::sumEt(), uncertaintiesRaw_, uncertaintiesType1_, and findQualityFiles::v.
Referenced by caloMETSumEt(), corSumEt(), pat::PATMETSlimmer::OneMETShift::readAndSet(), and uncorSumEt().
double MET::shiftedSumEt_74x | ( | MET::METUncertainty | shift, |
MET::METCorrectionLevel | level | ||
) | const |
Definition at line 422 of file MET.cc.
References Exception, personalPlayback::level, Raw, edm::shift, reco::MET::sumEt(), Type1, uncertaintiesRaw_, uncertaintiesType1_, and findQualityFiles::v.
Referenced by shiftedSumEt().
|
inline |
Definition at line 142 of file MET.h.
References pfSpecific(), and SpecificPFMETData::Type6Fraction.
Referenced by METTester::analyze(), and METAnalyzer::fillMonitorElement().
|
inline |
Definition at line 143 of file MET.h.
References pfSpecific(), and SpecificPFMETData::Type7Fraction.
Referenced by METTester::analyze(), and METAnalyzer::fillMonitorElement().
MET::Vector2 MET::uncorP2 | ( | ) | const |
Definition at line 331 of file MET.cc.
References NoShift, Raw, and shiftedP2().
Referenced by uncorPhi(), uncorPt(), uncorPx(), and uncorPy().
MET::Vector MET::uncorP3 | ( | ) | const |
MET::LorentzVector MET::uncorP4 | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
double MET::uncorSumEt | ( | ) | const |
|
private |
Definition at line 322 of file MET.h.
Referenced by caloSpecific(), isCaloMET(), isRecoMET(), MET(), and operator=().
|
protected |
Definition at line 344 of file MET.h.
Referenced by operator=(), shiftedP2(), shiftedP3(), shiftedP4(), and shiftedSumEt().
|
private |
Definition at line 333 of file MET.h.
Referenced by findMETTotalShift(), and initCorMap().
|
protected |
Definition at line 342 of file MET.h.
Referenced by findMETTotalShift(), operator=(), and setCorShift().
|
private |
Definition at line 320 of file MET.h.
Referenced by genMET(), operator=(), and setGenMET().
|
private |
Definition at line 327 of file MET.h.
Referenced by MET(), metSignificance(), operator=(), and setMETSignificance().
|
private |
Definition at line 324 of file MET.h.
Referenced by isPFMET(), isRecoMET(), MET(), operator=(), and pfSpecific().
|
private |
Definition at line 329 of file MET.h.
Referenced by MET(), metSumPtUnclustered(), operator=(), and setMETSumPtUnclustered().
|
protected |
Definition at line 341 of file MET.h.
Referenced by findMETTotalShift(), operator=(), and setUncShift().
|
protected |
Definition at line 339 of file MET.h.
Referenced by operator=(), shiftedP2(), shiftedP2_74x(), shiftedP3(), shiftedP3_74x(), shiftedP4(), shiftedP4_74x(), shiftedSumEt(), and shiftedSumEt_74x().
|
protected |
Definition at line 339 of file MET.h.
Referenced by operator=(), shiftedP2(), shiftedP2_74x(), shiftedP3(), shiftedP3_74x(), shiftedP4(), shiftedP4_74x(), shiftedSumEt(), and shiftedSumEt_74x().
|
protected |
Definition at line 339 of file MET.h.
Referenced by operator=().