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.

Member Function Documentation

◆ MissingEt()

double EtSumHelper::MissingEt ( ) const

Definition at line 6 of file EtSumHelper.cc.

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 }

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

Referenced by L1TBasicDemo::analyze().

◆ MissingEtPhi()

double EtSumHelper::MissingEtPhi ( ) const

Definition at line 14 of file EtSumHelper.cc.

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 }

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

Referenced by L1TBasicDemo::analyze().

◆ MissingHt()

double EtSumHelper::MissingHt ( ) const

Definition at line 22 of file EtSumHelper.cc.

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 }

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

Referenced by L1TBasicDemo::analyze().

◆ MissingHtPhi()

double EtSumHelper::MissingHtPhi ( ) const

Definition at line 30 of file EtSumHelper.cc.

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 }

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

Referenced by L1TBasicDemo::analyze().

◆ TotalEt()

double EtSumHelper::TotalEt ( ) const

Definition at line 38 of file EtSumHelper.cc.

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 }

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

Referenced by L1TBasicDemo::analyze().

◆ TotalHt()

double EtSumHelper::TotalHt ( ) const

Definition at line 46 of file EtSumHelper.cc.

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 }

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

Referenced by L1TBasicDemo::analyze().

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().

l1t::EtSumHelper::sum_
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:24
l1t::EtSum::kTotalHt
Definition: EtSum.h:24
l1t::EtSum::kMissingEt
Definition: EtSum.h:25
l1t::EtSum::kMissingHt
Definition: EtSum.h:26
l1t::EtSum::kTotalEt
Definition: EtSum.h:23