Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:15

0001 #include "L1Trigger/L1TNtuples/interface/L1AnalysisL1HO.h"
0002 L1Analysis::L1AnalysisL1HO::L1AnalysisL1HO() {}
0003 
0004 L1Analysis::L1AnalysisL1HO::~L1AnalysisL1HO() {}
0005 
0006 void L1Analysis::L1AnalysisL1HO::SetHO(const edm::SortedCollection<HODataFrame>& hoDataFrame) {
0007   for (edm::SortedCollection<HODataFrame>::const_iterator it = hoDataFrame.begin(); it != hoDataFrame.end(); ++it) {
0008     HcalDetId hcalDetId = it->id();
0009 
0010     for (int i = 0; i < it->size(); ++i) {
0011       HcalQIESample hcalQIESample = it->sample(i);
0012       l1ho_.hcalDetIdIEta.push_back(hcalDetId.ieta());
0013       l1ho_.hcalDetIdIPhi.push_back(hcalDetId.iphi());
0014       l1ho_.hcalQIESample.push_back(i);
0015       l1ho_.hcalQIESampleAdc.push_back(hcalQIESample.adc());
0016       l1ho_.hcalQIESampleDv.push_back(hcalQIESample.dv());
0017       l1ho_.hcalQIESampleEr.push_back(hcalQIESample.er());
0018 
0019       ++l1ho_.nHcalQIESamples;
0020     }
0021 
0022     ++l1ho_.nHcalDetIds;
0023   }
0024 }