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
namespace
pat
{
8
9
class
MHT
:
public
reco::CompositeRefBaseCandidate
{
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_
;
34
double
number_of_jets_
;
35
double
number_of_electrons_
;
36
double
number_of_muons_
;
37
};
38
39
typedef
std::vector<pat::MHT>
MHTCollection
;
40
}
// namespace pat
41
42
#endif
pat::MHT::setNumberOfMuons
void setNumberOfMuons(const double &numberOfMuons)
Definition:
MHT.cc:3
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition:
LeafCandidate.h:146
reco::CompositeRefBaseCandidate
Definition:
CompositeRefBaseCandidate.h:17
pat::MHT::setNumberOfJets
void setNumberOfJets(const double &numberOfJets)
Definition:
MHT.cc:7
pat::MHT::ht
double ht() const
Definition:
MHT.h:18
pat::MHT::MHT
MHT(const Candidate::LorentzVector &p4, double ht, double signif)
Definition:
MHT.h:12
pat::MHT
Definition:
MHT.h:9
pat::MHT::MHT
MHT()
Definition:
MHT.h:11
pat::MHT::getNumberOfMuons
double getNumberOfMuons() const
Definition:
MHT.cc:5
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition:
LeafCandidate.h:114
pat::MHT::significance_
double significance_
Definition:
MHT.h:33
pat
Definition:
HeavyIon.h:7
Candidate.h
CompositeRefBaseCandidate.h
pat::MHT::~MHT
~MHT() override
Definition:
MHT.h:14
pat::MHT::error
double error() const
Definition:
MHT.h:20
reco::CompositeRefBaseCandidate::CompositeRefBaseCandidate
CompositeRefBaseCandidate()
default constructor
Definition:
CompositeRefBaseCandidate.h:22
pat::MHTCollection
std::vector< pat::MHT > MHTCollection
Definition:
MHT.h:39
pat::MHT::ht_
double ht_
Definition:
MHT.h:32
pat::MHT::number_of_electrons_
double number_of_electrons_
Definition:
MHT.h:35
pat::MHT::number_of_muons_
double number_of_muons_
Definition:
MHT.h:36
pat::MHT::getNumberOfJets
double getNumberOfJets() const
Definition:
MHT.cc:9
pat::MHT::number_of_jets_
double number_of_jets_
Definition:
MHT.h:34
pat::MHT::significance
double significance() const
Definition:
MHT.h:19
pat::MHT::mht
double mht() const
Definition:
MHT.h:16
pat::MHT::setNumberOfElectrons
void setNumberOfElectrons(const double &numberOfElectrons)
Definition:
MHT.cc:11
reco::JetExtendedAssociation::LorentzVector
math::PtEtaPhiELorentzVectorF LorentzVector
Definition:
JetExtendedAssociation.h:25
pat::MHT::getNumberOfElectrons
double getNumberOfElectrons() const
Definition:
MHT.cc:13
Generated for CMSSW Reference Manual by
1.8.14