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

L1Analysis::L1AnalysisL1HO::L1AnalysisL1HO ( )

Definition at line 2 of file L1AnalysisL1HO.cc.

2 {}
L1Analysis::L1AnalysisL1HO::~L1AnalysisL1HO ( )

Definition at line 4 of file L1AnalysisL1HO.cc.

4 {}

Member Function Documentation

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_
void L1Analysis::L1AnalysisL1HO::Reset ( )
inline
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(), L1Analysis::L1AnalysisL1HODataFormat::hcalDetIdIEta, L1Analysis::L1AnalysisL1HODataFormat::hcalDetIdIPhi, L1Analysis::L1AnalysisL1HODataFormat::hcalQIESample, L1Analysis::L1AnalysisL1HODataFormat::hcalQIESampleAdc, L1Analysis::L1AnalysisL1HODataFormat::hcalQIESampleDv, L1Analysis::L1AnalysisL1HODataFormat::hcalQIESampleEr, mps_fire::i, HcalDetId::ieta(), HcalDetId::iphi(), l1ho_, L1Analysis::L1AnalysisL1HODataFormat::nHcalDetIds, and L1Analysis::L1AnalysisL1HODataFormat::nHcalQIESamples.

Referenced by L1HOTreeProducer::analyze(), and Reset().

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 er() const
is the error bit set?
Definition: HcalQIESample.h:51
std::vector< T >::const_iterator const_iterator
int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
constexpr int adc() const
get the ADC sample
Definition: HcalQIESample.h:43
const_iterator end() const
int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
constexpr bool dv() const
is the Data Valid bit set?
Definition: HcalQIESample.h:49
L1AnalysisL1HODataFormat l1ho_
const_iterator begin() const

Member Data Documentation

L1AnalysisL1HODataFormat L1Analysis::L1AnalysisL1HO::l1ho_
private

Definition at line 18 of file L1AnalysisL1HO.h.

Referenced by getData(), Reset(), and SetHO().