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

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

double EtSumHelper::MissingEt ( ) const

Definition at line 6 of file EtSumHelper.cc.

References BXVector< T >::begin(), BXVector< T >::end(), l1t::EtSum::kMissingEt, and sum_.

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

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_iterator end(int bx) const
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:24
const_iterator begin(int bx) const
double EtSumHelper::MissingEtPhi ( ) const

Definition at line 14 of file EtSumHelper.cc.

References BXVector< T >::begin(), BXVector< T >::end(), 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)
17  return it->phi();
18  }
19  return -999.0;
20 }
const_iterator end(int bx) const
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:24
const_iterator begin(int bx) const
double EtSumHelper::MissingHt ( ) const

Definition at line 22 of file EtSumHelper.cc.

References BXVector< T >::begin(), BXVector< T >::end(), l1t::EtSum::kMissingHt, and sum_.

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

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_iterator end(int bx) const
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:24
const_iterator begin(int bx) const
double EtSumHelper::MissingHtPhi ( ) const

Definition at line 30 of file EtSumHelper.cc.

References BXVector< T >::begin(), BXVector< T >::end(), l1t::EtSum::kMissingHt, and sum_.

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

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_iterator end(int bx) const
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:24
const_iterator begin(int bx) const
double EtSumHelper::TotalEt ( ) const

Definition at line 38 of file EtSumHelper.cc.

References BXVector< T >::begin(), BXVector< T >::end(), l1t::EtSum::kTotalEt, and sum_.

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

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_iterator end(int bx) const
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:24
const_iterator begin(int bx) const
double EtSumHelper::TotalHt ( ) const

Definition at line 46 of file EtSumHelper.cc.

References BXVector< T >::begin(), BXVector< T >::end(), l1t::EtSum::kTotalHt, and sum_.

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

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_iterator end(int bx) const
const edm::Handle< l1t::EtSumBxCollection > & sum_
Definition: EtSumHelper.h:24
const_iterator begin(int bx) const

Member Data Documentation

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