CMS 3D CMS Logo

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
reco::GenMET::NeutralHadEtFraction
double NeutralHadEtFraction() const
Definition: GenMET.h:42
reco::GenMET::GenMET
GenMET()
Definition: GenMET.cc:5
reco::GenMET::ChargedEMEt
double ChargedEMEt() const
Definition: GenMET.h:39
reco::GenMET::MuonEtFraction
double MuonEtFraction() const
Definition: GenMET.h:54
reco::GenMET::NeutralEMEt
double NeutralEMEt() const
Definition: GenMET.h:33
reco::MET::sumEt
double sumEt() const
Definition: MET.h:56
SpecificGenMETData::InvisibleEtFraction
float InvisibleEtFraction
Definition: SpecificGenMETData.h:39
reco::GenMET::InvisibleEtFraction
double InvisibleEtFraction() const
Definition: GenMET.h:60
SpecificGenMETData::m_HadEnergy
float m_HadEnergy
Definition: SpecificGenMETData.h:43
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::GenMET::~GenMET
~GenMET() override
Definition: GenMET.h:27
reco::GenMET::InvisibleEt
double InvisibleEt() const
Definition: GenMET.h:63
SpecificGenMETData::MuonEtFraction
float MuonEtFraction
Definition: SpecificGenMETData.h:38
reco::GenMET::gen_data
SpecificGenMETData gen_data
Definition: GenMET.h:81
SpecificGenMETData::ChargedEMEtFraction
float ChargedEMEtFraction
Definition: SpecificGenMETData.h:36
SpecificGenMETData::NeutralEMEtFraction
float NeutralEMEtFraction
Definition: SpecificGenMETData.h:34
reco::GenMET::hadEnergy
double hadEnergy() const
Definition: GenMET.h:69
reco::MET
Definition: MET.h:41
SpecificGenMETData::m_InvisibleEnergy
float m_InvisibleEnergy
Definition: SpecificGenMETData.h:44
SpecificGenMETData::NeutralHadEtFraction
float NeutralHadEtFraction
Definition: SpecificGenMETData.h:35
reco::GenMET
Definition: GenMET.h:20
reco::GenMET::ChargedHadEtFraction
double ChargedHadEtFraction() const
Definition: GenMET.h:48
SpecificGenMETData::m_EmEnergy
float m_EmEnergy
Definition: SpecificGenMETData.h:42
reco::GenMET::invisibleEnergy
double invisibleEnergy() const
Definition: GenMET.h:71
reco::GenMET::ChargedEMEtFraction
double ChargedEMEtFraction() const
Definition: GenMET.h:36
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
reco::GenMET::auxiliaryEnergy
double auxiliaryEnergy() const
Definition: GenMET.h:73
SpecificGenMETData::ChargedHadEtFraction
float ChargedHadEtFraction
Definition: SpecificGenMETData.h:37
reco::GenMET::NeutralEMEtFraction
double NeutralEMEtFraction() const
Definition: GenMET.h:30
reco::GenMET::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition: GenMET.cc:20
reco::Candidate
Definition: Candidate.h:27
reco::GenMET::NeutralHadEt
double NeutralHadEt() const
Definition: GenMET.h:45
MET.h
SpecificGenMETData
Definition: SpecificGenMETData.h:21
SpecificGenMETData::m_AuxiliaryEnergy
float m_AuxiliaryEnergy
Definition: SpecificGenMETData.h:45
reco::GenMET::ChargedHadEt
double ChargedHadEt() const
Definition: GenMET.h:51
reco::GenMET::GenMET
GenMET(const SpecificGenMETData &gen_data_, double sumet_, const LorentzVector &fP4, const Point &fVertex)
Definition: GenMET.h:24
reco::GenMET::emEnergy
double emEnergy() const
Definition: GenMET.h:67
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
reco::GenMET::MuonEt
double MuonEt() const
Definition: GenMET.h:57
SpecificGenMETData.h