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
bool isWithinJet() const
Definition: PUSubMETData.h:37
const float dZ() const
Definition: PUSubMETData.h:31
void setDZ(float dZ)
Definition: PUSubMETData.h:47
void setP4(const reco::Candidate::LorentzVector p4)
Definition: PUSubMETData.h:46
float offsetEnCorr() const
Definition: PUSubMETData.h:39
void setMvaVal(float mva)
Definition: PUSubMETData.h:56
reco::Candidate::LorentzVector p4_
Definition: PUSubMETData.h:66
void setIsWithinJet(bool isWJ)
Definition: PUSubMETData.h:53
metsig::SigInputObj pfMEtSignObj_
Definition: PUSubMETData.h:79
void setPassesLooseJetId(float jetId)
Definition: PUSubMETData.h:54
const reco::Candidate::LorentzVector & p4() const
Definition: PUSubMETData.h:30
void setCharge(int charge)
Definition: PUSubMETData.h:50
void setChargedEnFrac(float chEnF)
Definition: PUSubMETData.h:57
bool operator<(const reco::PUSubMETCandInfo &) const
Definition: PUSubMETData.cc:19
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
float chargedEnFrac() const
Definition: PUSubMETData.h:41
void setType(int type)
Definition: PUSubMETData.h:49
fixed size matrix
float passesLooseJetId() const
Definition: PUSubMETData.h:38
void setMEtSignObj(metsig::SigInputObj msig)
Definition: PUSubMETData.h:59
void setOffsetEnCorr(float offset)
Definition: PUSubMETData.h:55
const metsig::SigInputObj & metSignObj() const
Definition: PUSubMETData.h:43