CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::EtSumHelper Class Reference

#include <EtSumHelper.h>

Public Member Functions

 EtSumHelper (const edm::Handle< l1t::EtSumBxCollection > &sum)
 
double MissingEt () const
 
double MissingEtPhi () const
 
double MissingHt () const
 
double MissingHtPhi () const
 
double TotalEt () const
 
double TotalHt () const
 

Private Attributes

const edm::Handle< l1t::EtSumBxCollection > & sum_
 

Detailed Description

Definition at line 12 of file EtSumHelper.h.

Constructor & Destructor Documentation

l1t::EtSumHelper::EtSumHelper ( const edm::Handle< l1t::EtSumBxCollection > &  sum)
inline

Definition at line 14 of file EtSumHelper.h.

References MissingEt(), MissingEtPhi(), MissingHt(), MissingHtPhi(), TotalEt(), and TotalHt().

14 :sum_(sum) {} // class assumes sum has been checked to be valid.
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:23

Member Function Documentation

double EtSumHelper::MissingEt ( ) const

Definition at line 7 of file EtSumHelper.cc.

References l1t::EtSum::kMissingEt, and sum_.

Referenced by L1TBasicDemo::analyze(), and EtSumHelper().

7  {
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 }
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:23
double EtSumHelper::MissingEtPhi ( ) const

Definition at line 14 of file EtSumHelper.cc.

References l1t::EtSum::kMissingEt, and sum_.

Referenced by L1TBasicDemo::analyze(), and EtSumHelper().

14  {
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 }
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:23
double EtSumHelper::MissingHt ( ) const

Definition at line 21 of file EtSumHelper.cc.

References l1t::EtSum::kMissingHt, and sum_.

Referenced by L1TBasicDemo::analyze(), and EtSumHelper().

21  {
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 }
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:23
double EtSumHelper::MissingHtPhi ( ) const

Definition at line 28 of file EtSumHelper.cc.

References l1t::EtSum::kMissingHt, and sum_.

Referenced by L1TBasicDemo::analyze(), and EtSumHelper().

28  {
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 }
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:23
double EtSumHelper::TotalEt ( ) const

Definition at line 35 of file EtSumHelper.cc.

References l1t::EtSum::kTotalEt, and sum_.

Referenced by L1TBasicDemo::analyze(), and EtSumHelper().

35  {
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 }
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:23
double EtSumHelper::TotalHt ( ) const

Definition at line 42 of file EtSumHelper.cc.

References l1t::EtSum::kTotalHt, and sum_.

Referenced by L1TBasicDemo::analyze(), and EtSumHelper().

42  {
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 }
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:23

Member Data Documentation

const edm::Handle<l1t::EtSumBxCollection>& l1t::EtSumHelper::sum_
private

Definition at line 23 of file EtSumHelper.h.

Referenced by MissingEt(), MissingEtPhi(), MissingHt(), MissingHtPhi(), TotalEt(), and TotalHt().