test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EtSumHelper.cc
Go to the documentation of this file.
1 
3 
4 using namespace l1t;
5 
6 
7 double EtSumHelper::MissingEt() const {
8  for (auto it=sum_->begin(0); it!=sum_->end(0); it++){
9  if (it->getType() == EtSum::kMissingEt) 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) return it->phi();
17  }
18  return -999.0;
19 }
20 
21 double EtSumHelper::MissingHt() const {
22  for (auto it=sum_->begin(0); it!=sum_->end(0); it++){
23  if (it->getType() == EtSum::kMissingHt) return it->et();
24  }
25  return -999.0;
26 }
27 
28 double EtSumHelper::MissingHtPhi() const {
29  for (auto it=sum_->begin(0); it!=sum_->end(0); it++){
30  if (it->getType() == EtSum::kMissingHt) return it->phi();
31  }
32  return -999.0;
33 }
34 
35 double EtSumHelper::TotalEt() const {
36  for (auto it=sum_->begin(0); it!=sum_->end(0); it++){
37  if (it->getType() == EtSum::kTotalEt) return it->et();
38  }
39  return -999.0;
40 }
41 
42 double EtSumHelper::TotalHt() const {
43  for (auto it=sum_->begin(0); it!=sum_->end(0); it++){
44  if (it->getType() == EtSum::kTotalHt) return it->et();
45  }
46  return -999.0;
47 }
48 
double MissingEtPhi() const
Definition: EtSumHelper.cc:14
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:23
double TotalEt() const
Definition: EtSumHelper.cc:35
double MissingHt() const
Definition: EtSumHelper.cc:21
double TotalHt() const
Definition: EtSumHelper.cc:42
double MissingHtPhi() const
Definition: EtSumHelper.cc:28
double MissingEt() const
Definition: EtSumHelper.cc:7