CMS 3D CMS Logo

Public Member Functions | Private Attributes

pat::MHT Class Reference

#include <MHT.h>

Inheritance diagram for pat::MHT:
reco::CompositeRefBaseCandidate reco::LeafCandidate reco::Candidate

List of all members.

Public Member Functions

double error () const
double getNumberOfElectrons () const
double getNumberOfJets () const
double getNumberOfMuons () const
double ht () const
double mht () const
 MHT (const Candidate::LorentzVector &p4, double ht, double signif)
 MHT ()
double phi () const
 momentum azimuthal angle
void setNumberOfElectrons (const double &numberOfElectrons)
void setNumberOfJets (const double &numberOfJets)
void setNumberOfMuons (const double &numberOfMuons)
double significance () const
virtual ~MHT ()

Private Attributes

double ht_
double number_of_electrons_
double number_of_jets_
double number_of_muons_
double significance_

Detailed Description

Definition at line 10 of file MHT.h.


Constructor & Destructor Documentation

pat::MHT::MHT ( ) [inline]

Definition at line 12 of file MHT.h.

{}
pat::MHT::MHT ( const Candidate::LorentzVector p4,
double  ht,
double  signif 
) [inline]

Definition at line 13 of file MHT.h.

virtual pat::MHT::~MHT ( ) [inline, virtual]

Definition at line 15 of file MHT.h.

{}

Member Function Documentation

double pat::MHT::error ( ) const [inline]

Definition at line 21 of file MHT.h.

References mht(), and significance().

{return 0.5*significance()*mht()*mht();};
double pat::MHT::getNumberOfElectrons ( ) const

Definition at line 32 of file MHT.cc.

                                  {
  return number_of_electrons_;
}
double pat::MHT::getNumberOfJets ( ) const

Definition at line 22 of file MHT.cc.

                             {
  return number_of_jets_;
}
double pat::MHT::getNumberOfMuons ( ) const

Definition at line 10 of file MHT.cc.

{
  return number_of_muons_;
}
double pat::MHT::ht ( ) const [inline]

Definition at line 19 of file MHT.h.

References ht_.

{return ht_;};
double pat::MHT::mht ( ) const [inline]

Definition at line 17 of file MHT.h.

References reco::LeafCandidate::pt().

Referenced by error().

{return pt();};
double pat::MHT::phi ( ) const [inline, virtual]

momentum azimuthal angle

Reimplemented from reco::LeafCandidate.

Definition at line 18 of file MHT.h.

References phi().

Referenced by phi().

{return phi();};
void pat::MHT::setNumberOfElectrons ( const double &  numberOfElectrons)

Definition at line 27 of file MHT.cc.

Referenced by pat::PATMHTProducer::produce().

                                                            {
  number_of_electrons_ = numberOfElectrons;
}
void pat::MHT::setNumberOfJets ( const double &  numberOfJets)

Definition at line 16 of file MHT.cc.

Referenced by pat::PATMHTProducer::produce().

{
  number_of_jets_ = numberOfJets;
}
void pat::MHT::setNumberOfMuons ( const double &  numberOfMuons)

Definition at line 4 of file MHT.cc.

References number_of_muons_.

Referenced by pat::PATMHTProducer::produce().

{
  number_of_muons_ = numberOfMuons;
}
double pat::MHT::significance ( ) const [inline]

Definition at line 20 of file MHT.h.

References significance_.

Referenced by error().

{return significance_;};

Member Data Documentation

double pat::MHT::ht_ [private]

Definition at line 34 of file MHT.h.

Referenced by ht().

Definition at line 37 of file MHT.h.

double pat::MHT::number_of_jets_ [private]

Definition at line 36 of file MHT.h.

double pat::MHT::number_of_muons_ [private]

Definition at line 38 of file MHT.h.

Referenced by setNumberOfMuons().

double pat::MHT::significance_ [private]

Definition at line 35 of file MHT.h.

Referenced by significance().