CMS 3D CMS Logo

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