CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GenMET.h
Go to the documentation of this file.
1 #ifndef METReco_GenMET_h
2 #define METReco_GenMET_h
3 
18 
19 namespace reco {
20  class GenMET : public MET {
21  public:
22  /* Constructors*/
23  GenMET();
24  GenMET(const SpecificGenMETData& gen_data_, double sumet_, const LorentzVector& fP4, const Point& fVertex)
25  : MET(sumet_, fP4, fVertex), gen_data(gen_data_) {}
26  /* Default destructor*/
27  ~GenMET() override {}
28 
29  //Get Neutral EM Et Fraction
31 
32  //Get Neutral EM Et
33  double NeutralEMEt() const { return gen_data.NeutralEMEtFraction * sumEt(); }
34 
35  //Get Charged EM Et Fraction
37 
38  //Get Charged EM Et
39  double ChargedEMEt() const { return gen_data.ChargedEMEtFraction * sumEt(); }
40 
41  //Get Neutral Had Et Fraction
43 
44  //Get Neutral Had Et
45  double NeutralHadEt() const { return gen_data.NeutralHadEtFraction * sumEt(); }
46 
47  //Get Charged Had Et Fraction
49 
50  //Get Charged Had Et
51  double ChargedHadEt() const { return gen_data.ChargedHadEtFraction * sumEt(); }
52 
53  //Get Muon Et Fraction
54  double MuonEtFraction() const { return gen_data.MuonEtFraction; }
55 
56  //Get Muon Et
57  double MuonEt() const { return gen_data.MuonEtFraction * sumEt(); }
58 
59  //Get Invisible Et Fraction
61 
62  //Get Invisible Et
63  double InvisibleEt() const { return gen_data.InvisibleEtFraction * sumEt(); }
64 
65  // Old Accessors (to be removed as soon as possible)
67  double emEnergy() const { return gen_data.m_EmEnergy; };
69  double hadEnergy() const { return gen_data.m_HadEnergy; };
71  double invisibleEnergy() const { return gen_data.m_InvisibleEnergy; };
73  double auxiliaryEnergy() const { return gen_data.m_AuxiliaryEnergy; };
74  // block accessors
75 
76  // block accessors
77  private:
78  bool overlap(const Candidate&) const override;
79  // Data members
80  //Variables specific to to the GenMET class
82  };
83 } // namespace reco
84 #endif
double ChargedEMEt() const
Definition: GenMET.h:39
double MuonEtFraction() const
Definition: GenMET.h:54
double InvisibleEt() const
Definition: GenMET.h:63
double NeutralHadEt() const
Definition: GenMET.h:45
double MuonEt() const
Definition: GenMET.h:57
double invisibleEnergy() const
Definition: GenMET.h:71
~GenMET() override
Definition: GenMET.h:27
double sumEt() const
Definition: MET.h:56
Definition: MET.h:41
double ChargedEMEtFraction() const
Definition: GenMET.h:36
double auxiliaryEnergy() const
Definition: GenMET.h:73
double InvisibleEtFraction() const
Definition: GenMET.h:60
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
double ChargedHadEt() const
Definition: GenMET.h:51
double NeutralEMEtFraction() const
Definition: GenMET.h:30
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
double hadEnergy() const
Definition: GenMET.h:69
double NeutralHadEtFraction() const
Definition: GenMET.h:42
double NeutralEMEt() const
Definition: GenMET.h:33
double ChargedHadEtFraction() const
Definition: GenMET.h:48
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition: GenMET.cc:20
GenMET(const SpecificGenMETData &gen_data_, double sumet_, const LorentzVector &fP4, const Point &fVertex)
Definition: GenMET.h:24
SpecificGenMETData gen_data
Definition: GenMET.h:81
double emEnergy() const
Definition: GenMET.h:67