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

◆ EtSumHelper()

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

Definition at line 14 of file EtSumHelper.h.

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

Member Function Documentation

◆ MissingEt()

double EtSumHelper::MissingEt ( ) const

Definition at line 6 of file EtSumHelper.cc.

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

Referenced by L1TBasicDemo::analyze().

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

◆ MissingEtPhi()

double EtSumHelper::MissingEtPhi ( ) const

Definition at line 14 of file EtSumHelper.cc.

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

Referenced by L1TBasicDemo::analyze().

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

◆ MissingHt()

double EtSumHelper::MissingHt ( ) const

Definition at line 22 of file EtSumHelper.cc.

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

Referenced by L1TBasicDemo::analyze().

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

◆ MissingHtPhi()

double EtSumHelper::MissingHtPhi ( ) const

Definition at line 30 of file EtSumHelper.cc.

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

Referenced by L1TBasicDemo::analyze().

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

◆ TotalEt()

double EtSumHelper::TotalEt ( ) const

Definition at line 38 of file EtSumHelper.cc.

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

Referenced by L1TBasicDemo::analyze().

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

◆ TotalHt()

double EtSumHelper::TotalHt ( ) const

Definition at line 46 of file EtSumHelper.cc.

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

Referenced by L1TBasicDemo::analyze().

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

Member Data Documentation

◆ sum_

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

Definition at line 24 of file EtSumHelper.h.

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