DataFormats
L1Trigger
src
EtSumHelper.cc
Go to the documentation of this file.
1
2
#include "
DataFormats/L1Trigger/interface/EtSumHelper.h
"
3
4
using namespace
l1t
;
5
6
double
EtSumHelper::MissingEt
()
const
{
7
for
(
auto
it =
sum_
->begin(0); it !=
sum_
->end(0); it++) {
8
if
(it->getType() ==
EtSum::kMissingEt
)
9
return
it->et();
10
}
11
return
-999.0;
12
}
13
14
double
EtSumHelper::MissingEtPhi
()
const
{
15
for
(
auto
it =
sum_
->begin(0); it !=
sum_
->end(0); it++) {
16
if
(it->getType() ==
EtSum::kMissingEt
)
17
return
it->phi();
18
}
19
return
-999.0;
20
}
21
22
double
EtSumHelper::MissingHt
()
const
{
23
for
(
auto
it =
sum_
->begin(0); it !=
sum_
->end(0); it++) {
24
if
(it->getType() ==
EtSum::kMissingHt
)
25
return
it->et();
26
}
27
return
-999.0;
28
}
29
30
double
EtSumHelper::MissingHtPhi
()
const
{
31
for
(
auto
it =
sum_
->begin(0); it !=
sum_
->end(0); it++) {
32
if
(it->getType() ==
EtSum::kMissingHt
)
33
return
it->phi();
34
}
35
return
-999.0;
36
}
37
38
double
EtSumHelper::TotalEt
()
const
{
39
for
(
auto
it =
sum_
->begin(0); it !=
sum_
->end(0); it++) {
40
if
(it->getType() ==
EtSum::kTotalEt
)
41
return
it->et();
42
}
43
return
-999.0;
44
}
45
46
double
EtSumHelper::TotalHt
()
const
{
47
for
(
auto
it =
sum_
->begin(0); it !=
sum_
->end(0); it++) {
48
if
(it->getType() ==
EtSum::kTotalHt
)
49
return
it->et();
50
}
51
return
-999.0;
52
}
l1t::EtSumHelper::MissingHtPhi
double MissingHtPhi() const
Definition:
EtSumHelper.cc:30
l1t::EtSumHelper::sum_
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition:
EtSumHelper.h:24
l1t::EtSumHelper::MissingEtPhi
double MissingEtPhi() const
Definition:
EtSumHelper.cc:14
l1t::EtSumHelper::MissingHt
double MissingHt() const
Definition:
EtSumHelper.cc:22
l1t::EtSum::kTotalHt
Definition:
EtSum.h:24
l1t::EtSum::kMissingEt
Definition:
EtSum.h:25
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::EtSumHelper::TotalHt
double TotalHt() const
Definition:
EtSumHelper.cc:46
l1t::EtSum::kMissingHt
Definition:
EtSum.h:26
l1t::EtSumHelper::MissingEt
double MissingEt() const
Definition:
EtSumHelper.cc:6
l1t::EtSumHelper::TotalEt
double TotalEt() const
Definition:
EtSumHelper.cc:38
l1t::EtSum::kTotalEt
Definition:
EtSum.h:23
EtSumHelper.h
Generated for CMSSW Reference Manual by
1.8.16