test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
21 
23 
24  //functions
25  public:
26 
29 
30  bool operator<(const reco::PUSubMETCandInfo&) const;
31 
32 
33  //Access functions ================
34  const reco::Candidate::LorentzVector& p4() const {return p4_;};
35  const float dZ() const {return dZ_;};
36 
37  int type() const {return type_;};
38  int charge() const {return charge_;};
39 
40  //Jet specific
41  bool isWithinJet() const {return isWithinJet_;};
42  float passesLooseJetId() const {return passesLooseJetId_;};
43  float offsetEnCorr() const {return offsetEnCorr_;};
44  float mva() const {return mva_;};
45  float chargedEnFrac() const {return chargedEnFrac_;};
46 
47  const metsig::SigInputObj& metSignObj() const {return pfMEtSignObj_;};
48 
49  //setting functions ================
51  void setDZ(float dZ) {dZ_ = dZ;};
52 
53  void setType(int type) {type_ = type;};
54  void setCharge(int charge) {charge_ = charge;};
55 
56  //Jet specific
57  void setIsWithinJet(bool isWJ) {isWithinJet_ = isWJ;};
58  void setPassesLooseJetId(float jetId) {passesLooseJetId_ = jetId;};
60  void setMvaVal(float mva) {mva_ = mva;};
61  void setChargedEnFrac(float chEnF) {chargedEnFrac_ = chEnF;};
62 
64 
65  //variables =================
66  public:
67 
68  enum { kUndefined=0, kHS, kChHS, kPU, kChPU, kNeutral };
69 
70  private:
71 
73  float dZ_;
74 
75  int type_;
76  int charge_;
77 
78  //Jet specific
82  float mva_;
84 
85  metsig::SigInputObj pfMEtSignObj_; // contribution of this PFJet to PFMET significance matrix
86 
87 
88  };
89 
90 }
91 
92 #endif
type
Definition: HCALResponse.h:21
void setDZ(float dZ)
Definition: PUSubMETData.h:51
void setP4(const reco::Candidate::LorentzVector p4)
Definition: PUSubMETData.h:50
void setMvaVal(float mva)
Definition: PUSubMETData.h:60
reco::Candidate::LorentzVector p4_
Definition: PUSubMETData.h:72
bool isWithinJet() const
Definition: PUSubMETData.h:41
bool operator<(const reco::PUSubMETCandInfo &) const
Definition: PUSubMETData.cc:25
void setIsWithinJet(bool isWJ)
Definition: PUSubMETData.h:57
metsig::SigInputObj pfMEtSignObj_
Definition: PUSubMETData.h:85
void setPassesLooseJetId(float jetId)
Definition: PUSubMETData.h:58
float mva() const
Definition: PUSubMETData.h:44
void setCharge(int charge)
Definition: PUSubMETData.h:54
void setChargedEnFrac(float chEnF)
Definition: PUSubMETData.h:61
const float dZ() const
Definition: PUSubMETData.h:35
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setType(int type)
Definition: PUSubMETData.h:53
float offsetEnCorr() const
Definition: PUSubMETData.h:43
float chargedEnFrac() const
Definition: PUSubMETData.h:45
void setMEtSignObj(metsig::SigInputObj msig)
Definition: PUSubMETData.h:63
float passesLooseJetId() const
Definition: PUSubMETData.h:42
void setOffsetEnCorr(float offset)
Definition: PUSubMETData.h:59
const metsig::SigInputObj & metSignObj() const
Definition: PUSubMETData.h:47
const reco::Candidate::LorentzVector & p4() const
Definition: PUSubMETData.h:34