CMS 3D CMS Logo

PUSubMETData.h
Go to the documentation of this file.
1 #ifndef DataFormats_METReco_PUSubMETData_h
2 #define DataFormats_METReco_PUSubMETData_h
3 
16 
18 
19 namespace reco {
20 
22  //functions
23  public:
26 
27  bool operator<(const reco::PUSubMETCandInfo&) const;
28 
29  //Access functions ================
30  const reco::Candidate::LorentzVector& p4() const { return p4_; };
31  const float dZ() const { return dZ_; };
32 
33  int type() const { return type_; };
34  int charge() const { return charge_; };
35 
36  //Jet specific
37  bool isWithinJet() const { return isWithinJet_; };
38  float passesLooseJetId() const { return passesLooseJetId_; };
39  float offsetEnCorr() const { return offsetEnCorr_; };
40  float mva() const { return mva_; };
41  float chargedEnFrac() const { return chargedEnFrac_; };
42 
43  const metsig::SigInputObj& metSignObj() const { return pfMEtSignObj_; };
44 
45  //setting functions ================
47  void setDZ(float dZ) { dZ_ = dZ; };
48 
49  void setType(int type) { type_ = type; };
50  void setCharge(int charge) { charge_ = charge; };
51 
52  //Jet specific
53  void setIsWithinJet(bool isWJ) { isWithinJet_ = isWJ; };
56  void setMvaVal(float mva) { mva_ = mva; };
57  void setChargedEnFrac(float chEnF) { chargedEnFrac_ = chEnF; };
58 
60 
61  //variables =================
62  public:
63  enum { kUndefined = 0, kHS, kChHS, kPU, kChPU, kNeutral };
64 
65  private:
67  float dZ_;
68 
69  int type_;
70  int charge_;
71 
72  //Jet specific
76  float mva_;
78 
79  metsig::SigInputObj pfMEtSignObj_; // contribution of this PFJet to PFMET significance matrix
80  };
81 
82 } // namespace reco
83 
84 #endif
reco::PUSubMETCandInfo::setIsWithinJet
void setIsWithinJet(bool isWJ)
Definition: PUSubMETData.h:53
reco::PUSubMETCandInfo::dZ_
float dZ_
Definition: PUSubMETData.h:67
reco::PUSubMETCandInfo::setPassesLooseJetId
void setPassesLooseJetId(float jetId)
Definition: PUSubMETData.h:54
reco::PUSubMETCandInfo::kUndefined
Definition: PUSubMETData.h:63
reco::PUSubMETCandInfo::mva
float mva() const
Definition: PUSubMETData.h:40
reco::PUSubMETCandInfo::p4_
reco::Candidate::LorentzVector p4_
Definition: PUSubMETData.h:66
reco::PUSubMETCandInfo::setCharge
void setCharge(int charge)
Definition: PUSubMETData.h:50
reco::PUSubMETCandInfo::passesLooseJetId_
float passesLooseJetId_
Definition: PUSubMETData.h:74
reco::PUSubMETCandInfo::setDZ
void setDZ(float dZ)
Definition: PUSubMETData.h:47
reco::PUSubMETCandInfo::setP4
void setP4(const reco::Candidate::LorentzVector p4)
Definition: PUSubMETData.h:46
reco::PUSubMETCandInfo::charge_
int charge_
Definition: PUSubMETData.h:70
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::PUSubMETCandInfo::setType
void setType(int type)
Definition: PUSubMETData.h:49
reco::PUSubMETCandInfo::chargedEnFrac
float chargedEnFrac() const
Definition: PUSubMETData.h:41
reco::PUSubMETCandInfo::setChargedEnFrac
void setChargedEnFrac(float chEnF)
Definition: PUSubMETData.h:57
reco::PUSubMETCandInfo::type_
int type_
Definition: PUSubMETData.h:69
reco::PUSubMETCandInfo
Definition: PUSubMETData.h:21
reco::PUSubMETCandInfo::mva_
float mva_
Definition: PUSubMETData.h:76
reco::PUSubMETCandInfo::type
int type() const
Definition: PUSubMETData.h:33
reco::PUSubMETCandInfo::isWithinJet_
bool isWithinJet_
Definition: PUSubMETData.h:73
reco::PUSubMETCandInfo::p4
const reco::Candidate::LorentzVector & p4() const
Definition: PUSubMETData.h:30
SigInputObj.h
reco::PUSubMETCandInfo::operator<
bool operator<(const reco::PUSubMETCandInfo &) const
Definition: PUSubMETData.cc:19
reco::PUSubMETCandInfo::passesLooseJetId
float passesLooseJetId() const
Definition: PUSubMETData.h:38
reco::PUSubMETCandInfo::PUSubMETCandInfo
PUSubMETCandInfo()
Definition: PUSubMETData.cc:5
reco::PUSubMETCandInfo::~PUSubMETCandInfo
~PUSubMETCandInfo()
Definition: PUSubMETData.cc:17
reco::PUSubMETCandInfo::metSignObj
const metsig::SigInputObj & metSignObj() const
Definition: PUSubMETData.h:43
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
reco::PUSubMETCandInfo::offsetEnCorr
float offsetEnCorr() const
Definition: PUSubMETData.h:39
reco::PUSubMETCandInfo::pfMEtSignObj_
metsig::SigInputObj pfMEtSignObj_
Definition: PUSubMETData.h:79
reco::PUSubMETCandInfo::kPU
Definition: PUSubMETData.h:63
reco::PUSubMETCandInfo::kChPU
Definition: PUSubMETData.h:63
reco::PUSubMETCandInfo::offsetEnCorr_
float offsetEnCorr_
Definition: PUSubMETData.h:75
reco::PUSubMETCandInfo::setOffsetEnCorr
void setOffsetEnCorr(float offset)
Definition: PUSubMETData.h:55
reco::PUSubMETCandInfo::setMvaVal
void setMvaVal(float mva)
Definition: PUSubMETData.h:56
reco::PUSubMETCandInfo::charge
int charge() const
Definition: PUSubMETData.h:34
reco::PUSubMETCandInfo::kChHS
Definition: PUSubMETData.h:63
reco::PUSubMETCandInfo::isWithinJet
bool isWithinJet() const
Definition: PUSubMETData.h:37
Candidate.h
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
PhotonMonitor_cff.jetId
jetId
Definition: PhotonMonitor_cff.py:70
reco::PUSubMETCandInfo::kHS
Definition: PUSubMETData.h:63
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
metsig::SigInputObj
Definition: SigInputObj.h:29
reco::PUSubMETCandInfo::dZ
const float dZ() const
Definition: PUSubMETData.h:31
reco::PUSubMETCandInfo::chargedEnFrac_
float chargedEnFrac_
Definition: PUSubMETData.h:77
reco::PUSubMETCandInfo::setMEtSignObj
void setMEtSignObj(metsig::SigInputObj msig)
Definition: PUSubMETData.h:59
reco::PUSubMETCandInfo::kNeutral
Definition: PUSubMETData.h:63