CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1AnalysisL1HO.cc
Go to the documentation of this file.
3 
5 
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 
19  ++l1ho_.nHcalQIESamples;
20  }
21 
22  ++l1ho_.nHcalDetIds;
23  }
24 }
void SetHO(const edm::SortedCollection< HODataFrame > &hoDataFrame)
constexpr bool er() const
is the error bit set?
Definition: HcalQIESample.h:51
std::vector< T >::const_iterator const_iterator
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
constexpr 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
constexpr bool dv() const
is the Data Valid bit set?
Definition: HcalQIESample.h:49
const_iterator begin() const