src
DataFormats
L1TCorrelator
interface
TkEtMiss.h
Go to the documentation of this file.
1
#ifndef DataFormatsL1TCorrelator_TkEtMiss_h
2
#define DataFormatsL1TCorrelator_TkEtMiss_h
3
4
#include "
DataFormats/L1Trigger/interface/L1Candidate.h
"
5
#include "
DataFormats/Common/interface/Ref.h
"
6
#include "
DataFormats/L1TCorrelator/interface/TkPrimaryVertex.h
"
7
8
namespace
l1t
{
9
class
TkEtMiss
:
public
L1Candidate
{
10
public
:
11
enum
EtMissType
{
kMET
,
kMHT
,
kNumTypes
};
12
TkEtMiss
();
13
TkEtMiss
(
const
LorentzVector
&
p4
,
14
EtMissType
type
,
15
const
double
&
etTotal
,
16
const
double
&
etMissPU
,
17
const
double
&
etTotalPU
,
18
const
edm::Ref<TkPrimaryVertexCollection>
& aVtxRef =
edm::Ref<TkPrimaryVertexCollection>
(),
19
int
bx
= 0);
20
21
TkEtMiss
(
const
LorentzVector
&
p4
,
22
EtMissType
type
,
23
const
double
&
etTotal
,
24
const
double
&
etMissPU
,
25
const
double
&
etTotalPU
,
26
int
bx
= 0);
27
28
TkEtMiss
(
const
LorentzVector
&
p4
,
EtMissType
type
,
const
double
& EtPhi,
const
int
&
NumTracks
,
int
bx
= 0);
29
30
// ---------- const member functions ---------------------
31
EtMissType
type
()
const
{
return
type_
; }
// kMET or kMHT
32
// For type = kMET, this is |MET|; for type = kMHT, this is |MHT|
33
double
etMiss
()
const
{
return
et
(); }
34
// For type = kMET, this is total ET; for type = kMHT, this is total HT
35
double
etTotal
()
const
{
return
etTot_
; }
36
// EtMiss and EtTot from PU vertices
37
double
etMissPU
()
const
{
return
etMissPU_
; }
38
double
etTotalPU
()
const
{
return
etTotalPU_
; }
39
int
bx
()
const
{
return
bx_
; }
40
const
edm::Ref<TkPrimaryVertexCollection>
&
vtxRef
()
const
{
return
vtxRef_
; }
41
42
double
etPhi
()
const
{
return
etPhi_
; }
43
int
etQual
()
const
{
return
etQual_
; }
44
45
// ---------- member functions ---------------------------
46
void
setEtTotal
(
const
double
&
etTotal
) {
etTot_
=
etTotal
; }
47
void
setBx
(
int
bx
) {
bx_
=
bx
; }
48
49
private
:
50
// ---------- member data --------------------------------
51
EtMissType
type_
;
52
double
etTot_
;
53
double
etMissPU_
;
54
double
etTotalPU_
;
55
edm::Ref<TkPrimaryVertexCollection>
vtxRef_
;
56
57
double
etMiss_
;
58
double
etPhi_
;
59
int
etQual_
;
60
61
int
bx_
;
62
};
63
}
// namespace l1t
64
65
#endif
l1t::TkEtMiss::etMissPU
double etMissPU() const
Definition:
TkEtMiss.h:37
l1t::TkEtMiss::etTot_
double etTot_
Definition:
TkEtMiss.h:52
edm::Ref< TkPrimaryVertexCollection >
l1t::TkEtMiss::kMHT
Definition:
TkEtMiss.h:11
l1t::TkEtMiss::vtxRef_
edm::Ref< TkPrimaryVertexCollection > vtxRef_
Definition:
TkEtMiss.h:55
l1t::TkEtMiss::etPhi
double etPhi() const
Definition:
TkEtMiss.h:42
l1t::TkEtMiss::etQual_
int etQual_
Definition:
TkEtMiss.h:59
l1t::TkEtMiss::etTotalPU_
double etTotalPU_
Definition:
TkEtMiss.h:54
l1t
delete x;
Definition:
CaloConfig.h:22
ProducerES_cfi.NumTracks
NumTracks
Definition:
ProducerES_cfi.py:158
l1t::TkEtMiss::etTotalPU
double etTotalPU() const
Definition:
TkEtMiss.h:38
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
l1t::TkEtMiss::TkEtMiss
TkEtMiss()
Definition:
TkEtMiss.cc:5
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition:
LeafCandidate.h:114
l1t::TkEtMiss::etQual
int etQual() const
Definition:
TkEtMiss.h:43
l1t::TkEtMiss::etMiss_
double etMiss_
Definition:
TkEtMiss.h:57
l1t::L1Candidate
Definition:
L1Candidate.h:15
l1t::TkEtMiss::vtxRef
const edm::Ref< TkPrimaryVertexCollection > & vtxRef() const
Definition:
TkEtMiss.h:40
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition:
HLTMuonMatchAndPlot.h:47
l1t::TkEtMiss::etPhi_
double etPhi_
Definition:
TkEtMiss.h:58
l1t::TkEtMiss::etTotal
double etTotal() const
Definition:
TkEtMiss.h:35
TkPrimaryVertex.h
l1t::TkEtMiss::type_
EtMissType type_
Definition:
TkEtMiss.h:51
l1t::TkEtMiss::kNumTypes
Definition:
TkEtMiss.h:11
l1t::TkEtMiss::kMET
Definition:
TkEtMiss.h:11
l1t::TkEtMiss::type
EtMissType type() const
Definition:
TkEtMiss.h:31
l1t::TkEtMiss::setEtTotal
void setEtTotal(const double &etTotal)
Definition:
TkEtMiss.h:46
Ref.h
L1Candidate.h
l1t::TkEtMiss::bx
int bx() const
Definition:
TkEtMiss.h:39
l1t::TkEtMiss::bx_
int bx_
Definition:
TkEtMiss.h:61
l1t::TkEtMiss::setBx
void setBx(int bx)
Definition:
TkEtMiss.h:47
reco::LeafCandidate::et
double et() const final
transverse energy
Definition:
LeafCandidate.h:127
l1t::TkEtMiss::etMissPU_
double etMissPU_
Definition:
TkEtMiss.h:53
l1t::TkEtMiss::EtMissType
EtMissType
Definition:
TkEtMiss.h:11
l1t::TkEtMiss::etMiss
double etMiss() const
Definition:
TkEtMiss.h:33
l1t::TkEtMiss
Definition:
TkEtMiss.h:9
Generated for CMSSW Reference Manual by
1.8.14