CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1Analysis::L1AnalysisL1HO Class Reference

#include <L1AnalysisL1HO.h>

Public Member Functions

L1AnalysisL1HODataFormatgetData ()
 
 L1AnalysisL1HO ()
 
void Reset ()
 
void SetHO (const edm::SortedCollection< HODataFrame > &hoDataFrame)
 
 ~L1AnalysisL1HO ()
 

Private Attributes

L1AnalysisL1HODataFormat l1ho_
 

Detailed Description

Definition at line 10 of file L1AnalysisL1HO.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisL1HO::L1AnalysisL1HO ( )

Definition at line 2 of file L1AnalysisL1HO.cc.

3 {
4 }
L1Analysis::L1AnalysisL1HO::~L1AnalysisL1HO ( )

Definition at line 6 of file L1AnalysisL1HO.cc.

7 {
8 }

Member Function Documentation

L1AnalysisL1HODataFormat* L1Analysis::L1AnalysisL1HO::getData ( void  )
inline

Definition at line 17 of file L1AnalysisL1HO.h.

References l1ho_.

Referenced by L1HOTreeProducer::L1HOTreeProducer().

17 {return &l1ho_;}
L1AnalysisL1HODataFormat l1ho_
void L1Analysis::L1AnalysisL1HO::Reset ( )
inline
void L1Analysis::L1AnalysisL1HO::SetHO ( const edm::SortedCollection< HODataFrame > &  hoDataFrame)

Definition at line 10 of file L1AnalysisL1HO.cc.

References HcalQIESample::adc(), edm::SortedCollection< T, SORT >::begin(), HcalQIESample::dv(), edm::SortedCollection< T, SORT >::end(), HcalQIESample::er(), L1Analysis::L1AnalysisL1HODataFormat::hcalDetIdIEta, L1Analysis::L1AnalysisL1HODataFormat::hcalDetIdIPhi, L1Analysis::L1AnalysisL1HODataFormat::hcalQIESample, L1Analysis::L1AnalysisL1HODataFormat::hcalQIESampleAdc, L1Analysis::L1AnalysisL1HODataFormat::hcalQIESampleDv, L1Analysis::L1AnalysisL1HODataFormat::hcalQIESampleEr, mps_fire::i, HcalDetId::ieta(), HcalDetId::iphi(), l1ho_, L1Analysis::L1AnalysisL1HODataFormat::nHcalDetIds, and L1Analysis::L1AnalysisL1HODataFormat::nHcalQIESamples.

Referenced by L1HOTreeProducer::analyze(), and Reset().

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 }
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:103
L1AnalysisL1HODataFormat l1ho_
bool er() const
is the error bit set?
Definition: HcalQIESample.h:30
const_iterator begin() const

Member Data Documentation

L1AnalysisL1HODataFormat L1Analysis::L1AnalysisL1HO::l1ho_
private

Definition at line 20 of file L1AnalysisL1HO.h.

Referenced by getData(), Reset(), and SetHO().