CMS 3D CMS Logo

L1AnalysisL1HO.cc
Go to the documentation of this file.
3 {
4 }
5 
7 {
8 }
9 
11 {
12  for (edm::SortedCollection<HODataFrame>::const_iterator it = hoDataFrame.begin(); it != hoDataFrame.end(); ++it){
13  HcalDetId hcalDetId = it->id();
14 
15  for (int i = 0; i < it->size(); ++i) {
16  HcalQIESample hcalQIESample = it->sample(i);
17  l1ho_.hcalDetIdIEta.push_back(hcalDetId.ieta());
18  l1ho_.hcalDetIdIPhi.push_back(hcalDetId.iphi());
19  l1ho_.hcalQIESample.push_back(i);
20  l1ho_.hcalQIESampleAdc.push_back(hcalQIESample.adc());
21  l1ho_.hcalQIESampleDv.push_back(hcalQIESample.dv());
22  l1ho_.hcalQIESampleEr.push_back(hcalQIESample.er());
23 
25  }
26 
28  }
29 }
30 
void SetHO(const edm::SortedCollection< HODataFrame > &hoDataFrame)
constexpr bool er() const
is the error bit set?
Definition: HcalQIESample.h:69
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:59
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:67
L1AnalysisL1HODataFormat l1ho_
const_iterator begin() const