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)
int adc() const
get the ADC sample
Definition: HcalQIESample.h:22
std::vector< T >::const_iterator const_iterator
bool dv() const
is the Data Valid bit set?
Definition: HcalQIESample.h:28
int ieta() const
get the cell ieta
Definition: HcalDetId.h:56
const_iterator end() const
int iphi() const
get the cell iphi
Definition: HcalDetId.cc:124
L1AnalysisL1HODataFormat l1ho_
bool er() const
is the error bit set?
Definition: HcalQIESample.h:30
const_iterator begin() const