CMS 3D CMS Logo

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 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
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157