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
// ---------- const member functions ---------------------
29
EtMissType
type
()
const
{
return
type_
; }
// kMET or kMHT
30
// For type = kMET, this is |MET|; for type = kMHT, this is |MHT|
31
double
etMiss
()
const
{
return
et
(); }
32
// For type = kMET, this is total ET; for type = kMHT, this is total HT
33
double
etTotal
()
const
{
return
etTot_
; }
34
// EtMiss and EtTot from PU vertices
35
double
etMissPU
()
const
{
return
etMissPU_
; }
36
double
etTotalPU
()
const
{
return
etTotalPU_
; }
37
int
bx
()
const
{
return
bx_
; }
38
const
edm::Ref<TkPrimaryVertexCollection>
&
vtxRef
()
const
{
return
vtxRef_
; }
39
40
// ---------- member functions ---------------------------
41
void
setEtTotal
(
const
double
&
etTotal
) {
etTot_
=
etTotal
; }
42
void
setBx
(
int
bx
) {
bx_
=
bx
; }
43
44
private
:
45
// ---------- member data --------------------------------
46
EtMissType
type_
;
47
double
etTot_
;
48
double
etMissPU_
;
49
double
etTotalPU_
;
50
edm::Ref<TkPrimaryVertexCollection>
vtxRef_
;
51
int
bx_
;
52
};
53
}
// namespace l1t
54
55
#endif
l1t::TkEtMiss
Definition:
TkEtMiss.h:9
l1t::TkEtMiss::etMissPU_
double etMissPU_
Definition:
TkEtMiss.h:48
l1t::TkEtMiss::EtMissType
EtMissType
Definition:
TkEtMiss.h:11
TkPrimaryVertex.h
l1t::TkEtMiss::vtxRef
const edm::Ref< TkPrimaryVertexCollection > & vtxRef() const
Definition:
TkEtMiss.h:38
l1t::TkEtMiss::etTot_
double etTot_
Definition:
TkEtMiss.h:47
l1t::TkEtMiss::etMiss
double etMiss() const
Definition:
TkEtMiss.h:31
edm::Ref< TkPrimaryVertexCollection >
l1t::TkEtMiss::kMHT
Definition:
TkEtMiss.h:11
l1t::L1Candidate
Definition:
L1Candidate.h:15
l1t::TkEtMiss::TkEtMiss
TkEtMiss()
Definition:
TkEtMiss.cc:5
l1t::TkEtMiss::setBx
void setBx(int bx)
Definition:
TkEtMiss.h:42
l1t::TkEtMiss::setEtTotal
void setEtTotal(const double &etTotal)
Definition:
TkEtMiss.h:41
l1t
delete x;
Definition:
CaloConfig.h:22
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
l1t::TkEtMiss::etMissPU
double etMissPU() const
Definition:
TkEtMiss.h:35
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition:
LeafCandidate.h:114
l1t::TkEtMiss::bx_
int bx_
Definition:
TkEtMiss.h:51
l1t::TkEtMiss::etTotal
double etTotal() const
Definition:
TkEtMiss.h:33
L1Candidate.h
l1t::TkEtMiss::type_
EtMissType type_
Definition:
TkEtMiss.h:46
l1t::TkEtMiss::vtxRef_
edm::Ref< TkPrimaryVertexCollection > vtxRef_
Definition:
TkEtMiss.h:50
reco::LeafCandidate::et
double et() const final
transverse energy
Definition:
LeafCandidate.h:127
l1t::TkEtMiss::etTotalPU
double etTotalPU() const
Definition:
TkEtMiss.h:36
Ref.h
l1t::TkEtMiss::type
EtMissType type() const
Definition:
TkEtMiss.h:29
l1t::TkEtMiss::etTotalPU_
double etTotalPU_
Definition:
TkEtMiss.h:49
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition:
HLTMuonMatchAndPlot.h:49
l1t::TkEtMiss::bx
int bx() const
Definition:
TkEtMiss.h:37
l1t::TkEtMiss::kNumTypes
Definition:
TkEtMiss.h:11
l1t::TkEtMiss::kMET
Definition:
TkEtMiss.h:11
Generated for CMSSW Reference Manual by
1.8.16