CMS 3D CMS Logo

MHT.h
Go to the documentation of this file.
1 #ifndef DataFormats_PatCandidates_MHT_h
2 #define DataFormats_PatCandidates_MHT_h
3 
6 
7 namespace pat {
8 
10  public:
11  MHT() {}
12  MHT(const Candidate::LorentzVector& p4, double ht, double signif)
13  : CompositeRefBaseCandidate(0, p4), ht_(ht), significance_(signif) {}
14  ~MHT() override {}
15 
16  double mht() const { return pt(); }
17  // ????double phi() const {return phi();}
18  double ht() const { return ht_; }
19  double significance() const { return significance_; }
20  double error() const { return 0.5 * significance() * mht() * mht(); }
21 
22  double getNumberOfJets() const;
23  void setNumberOfJets(const double& numberOfJets);
24 
25  double getNumberOfElectrons() const;
26  void setNumberOfElectrons(const double& numberOfElectrons);
27 
28  double getNumberOfMuons() const;
29  void setNumberOfMuons(const double& numberOfMuons);
30 
31  private:
32  double ht_;
33  double significance_;
37  };
38 
39  typedef std::vector<pat::MHT> MHTCollection;
40 } // namespace pat
41 
42 #endif
void setNumberOfMuons(const double &numberOfMuons)
Definition: MHT.cc:3
double pt() const final
transverse momentum
void setNumberOfJets(const double &numberOfJets)
Definition: MHT.cc:7
double ht() const
Definition: MHT.h:18
MHT(const Candidate::LorentzVector &p4, double ht, double signif)
Definition: MHT.h:12
Definition: MHT.h:9
MHT()
Definition: MHT.h:11
double getNumberOfMuons() const
Definition: MHT.cc:5
const LorentzVector & p4() const final
four-momentum Lorentz vector
double significance_
Definition: MHT.h:33
Definition: HeavyIon.h:7
~MHT() override
Definition: MHT.h:14
double error() const
Definition: MHT.h:20
CompositeRefBaseCandidate()
default constructor
std::vector< pat::MHT > MHTCollection
Definition: MHT.h:39
double ht_
Definition: MHT.h:32
double number_of_electrons_
Definition: MHT.h:35
double number_of_muons_
Definition: MHT.h:36
double getNumberOfJets() const
Definition: MHT.cc:9
double number_of_jets_
Definition: MHT.h:34
double significance() const
Definition: MHT.h:19
double mht() const
Definition: MHT.h:16
void setNumberOfElectrons(const double &numberOfElectrons)
Definition: MHT.cc:11
math::PtEtaPhiELorentzVectorF LorentzVector
double getNumberOfElectrons() const
Definition: MHT.cc:13