CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1Analysis::L1AnalysisL1HO Class Reference

#include <L1AnalysisL1HO.h>

Public Member Functions

L1AnalysisL1HODataFormatgetData ()
 
 L1AnalysisL1HO ()
 
void Reset ()
 
void SetHO (const edm::SortedCollection< HODataFrame > &hoDataFrame)
 
 ~L1AnalysisL1HO ()
 

Private Attributes

L1AnalysisL1HODataFormat l1ho_
 

Detailed Description

Definition at line 9 of file L1AnalysisL1HO.h.

Constructor & Destructor Documentation

◆ L1AnalysisL1HO()

L1Analysis::L1AnalysisL1HO::L1AnalysisL1HO ( )

Definition at line 2 of file L1AnalysisL1HO.cc.

2 {}

◆ ~L1AnalysisL1HO()

L1Analysis::L1AnalysisL1HO::~L1AnalysisL1HO ( )

Definition at line 4 of file L1AnalysisL1HO.cc.

4 {}

Member Function Documentation

◆ getData()

L1AnalysisL1HODataFormat* L1Analysis::L1AnalysisL1HO::getData ( void  )
inline

Definition at line 15 of file L1AnalysisL1HO.h.

References l1ho_.

Referenced by L1HOTreeProducer::L1HOTreeProducer().

15 { return &l1ho_; }
L1AnalysisL1HODataFormat l1ho_

◆ Reset()

void L1Analysis::L1AnalysisL1HO::Reset ( )
inline

◆ SetHO()

void L1Analysis::L1AnalysisL1HO::SetHO ( const edm::SortedCollection< HODataFrame > &  hoDataFrame)

Definition at line 6 of file L1AnalysisL1HO.cc.

References HcalQIESample::adc(), edm::SortedCollection< T, SORT >::begin(), HcalQIESample::dv(), edm::SortedCollection< T, SORT >::end(), HcalQIESample::er(), mps_fire::i, HcalDetId::ieta(), and HcalDetId::iphi().

Referenced by L1HOTreeProducer::analyze().

6  {
7  for (edm::SortedCollection<HODataFrame>::const_iterator it = hoDataFrame.begin(); it != hoDataFrame.end(); ++it) {
8  HcalDetId hcalDetId = it->id();
9 
10  for (int i = 0; i < it->size(); ++i) {
11  HcalQIESample hcalQIESample = it->sample(i);
12  l1ho_.hcalDetIdIEta.push_back(hcalDetId.ieta());
13  l1ho_.hcalDetIdIPhi.push_back(hcalDetId.iphi());
14  l1ho_.hcalQIESample.push_back(i);
15  l1ho_.hcalQIESampleAdc.push_back(hcalQIESample.adc());
16  l1ho_.hcalQIESampleDv.push_back(hcalQIESample.dv());
17  l1ho_.hcalQIESampleEr.push_back(hcalQIESample.er());
18 
20  }
21 
23  }
24 }
constexpr bool dv() const
is the Data Valid bit set?
Definition: HcalQIESample.h:49
std::vector< T >::const_iterator const_iterator
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
const_iterator begin() const
const_iterator end() const
constexpr bool er() const
is the error bit set?
Definition: HcalQIESample.h:51
constexpr int adc() const
get the ADC sample
Definition: HcalQIESample.h:43
L1AnalysisL1HODataFormat l1ho_
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157

Member Data Documentation

◆ l1ho_

L1AnalysisL1HODataFormat L1Analysis::L1AnalysisL1HO::l1ho_
private

Definition at line 18 of file L1AnalysisL1HO.h.

Referenced by getData(), and Reset().