CMS 3D CMS Logo

EtSumHelper.cc
Go to the documentation of this file.
1 
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 }
double TotalEt() const
Definition: EtSumHelper.cc:38
double MissingEt() const
Definition: EtSumHelper.cc:6
delete x;
Definition: CaloConfig.h:22
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:24
double MissingEtPhi() const
Definition: EtSumHelper.cc:14
double MissingHt() const
Definition: EtSumHelper.cc:22
double TotalHt() const
Definition: EtSumHelper.cc:46
double MissingHtPhi() const
Definition: EtSumHelper.cc:30