Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
PatCandidates
interface
MHT.h
Go to the documentation of this file.
1
#ifndef DataFormats_PatCandidates_MHT_h
2
#define DataFormats_PatCandidates_MHT_h
3
4
#include "
DataFormats/Candidate/interface/CompositeRefBaseCandidate.h
"
5
#include "
DataFormats/Candidate/interface/Candidate.h
"
6
7
8
namespace
pat {
9
10
class
MHT
:
public
reco::CompositeRefBaseCandidate
{
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_
;
36
double
number_of_jets_
;
37
double
number_of_electrons_
;
38
double
number_of_muons_
;
39
};
40
41
typedef
std::vector<pat::MHT>
MHTCollection
;
42
}
43
44
#endif
45
46
47
48
49
50
pat::MHT::setNumberOfMuons
void setNumberOfMuons(const double &numberOfMuons)
Definition:
MHT.cc:4
reco::CompositeRefBaseCandidate
Definition:
CompositeRefBaseCandidate.h:19
pat::MHT::significance
double significance() const
Definition:
MHT.h:20
pat::MHT::setNumberOfJets
void setNumberOfJets(const double &numberOfJets)
Definition:
MHT.cc:16
pat::MHT::mht
double mht() const
Definition:
MHT.h:17
pat::MHT::MHT
MHT(const Candidate::LorentzVector &p4, double ht, double signif)
Definition:
MHT.h:13
pat::MHT::getNumberOfMuons
double getNumberOfMuons() const
Definition:
MHT.cc:10
pat::MHT
Definition:
MHT.h:10
pat::MHT::MHT
MHT()
Definition:
MHT.h:12
pat::MHT::significance_
double significance_
Definition:
MHT.h:35
Candidate.h
CompositeRefBaseCandidate.h
reco::CompositeRefBaseCandidate::CompositeRefBaseCandidate
CompositeRefBaseCandidate()
default constructor
Definition:
CompositeRefBaseCandidate.h:24
pat::MHTCollection
std::vector< pat::MHT > MHTCollection
Definition:
MHT.h:41
pat::MHT::ht_
double ht_
Definition:
MHT.h:34
pat::MHT::ht
double ht() const
Definition:
MHT.h:19
pat::MHT::number_of_electrons_
double number_of_electrons_
Definition:
MHT.h:37
pat::MHT::error
double error() const
Definition:
MHT.h:21
pat::MHT::number_of_muons_
double number_of_muons_
Definition:
MHT.h:38
pat::MHT::number_of_jets_
double number_of_jets_
Definition:
MHT.h:36
reco::LeafCandidate::pt
virtual double pt() const
transverse momentum
Definition:
LeafCandidate.cc:127
pat::MHT::getNumberOfJets
double getNumberOfJets() const
Definition:
MHT.cc:22
pat::MHT::~MHT
virtual ~MHT()
Definition:
MHT.h:15
pat::MHT::getNumberOfElectrons
double getNumberOfElectrons() const
Definition:
MHT.cc:32
pat::MHT::setNumberOfElectrons
void setNumberOfElectrons(const double &numberOfElectrons)
Definition:
MHT.cc:27
reco::LeafCandidate::p4
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Definition:
LeafCandidate.h:108
reco::JetExtendedAssociation::LorentzVector
math::PtEtaPhiELorentzVectorF LorentzVector
Definition:
JetExtendedAssociation.h:26
Generated for CMSSW Reference Manual by
1.8.5