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 }
mps_fire.i
i
Definition: mps_fire.py:428
edm::SortedCollection::const_iterator
std::vector< T >::const_iterator const_iterator
Definition: SortedCollection.h:80
HcalDetId::iphi
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
HcalQIESample::adc
constexpr int adc() const
get the ADC sample
Definition: HcalQIESample.h:43
edm::SortedCollection
Definition: SortedCollection.h:49
L1Analysis::L1AnalysisL1HO::L1AnalysisL1HO
L1AnalysisL1HO()
Definition: L1AnalysisL1HO.cc:2
HcalQIESample
Definition: HcalQIESample.h:32
L1AnalysisL1HO.h
HcalQIESample::er
constexpr bool er() const
is the error bit set?
Definition: HcalQIESample.h:51
edm::SortedCollection::begin
const_iterator begin() const
Definition: SortedCollection.h:262
L1Analysis::L1AnalysisL1HO::SetHO
void SetHO(const edm::SortedCollection< HODataFrame > &hoDataFrame)
Definition: L1AnalysisL1HO.cc:6
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
HcalDetId
Definition: HcalDetId.h:12
HcalQIESample::dv
constexpr bool dv() const
is the Data Valid bit set?
Definition: HcalQIESample.h:49
L1Analysis::L1AnalysisL1HO::~L1AnalysisL1HO
~L1AnalysisL1HO()
Definition: L1AnalysisL1HO.cc:4