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 9 of file L1AnalysisL1HO.h.

Constructor & Destructor Documentation

◆ L1AnalysisL1HO()

L1Analysis::L1AnalysisL1HO::L1AnalysisL1HO ( )

Definition at line 2 of file L1AnalysisL1HO.cc.

2 {}

◆ ~L1AnalysisL1HO()

L1Analysis::L1AnalysisL1HO::~L1AnalysisL1HO ( )

Definition at line 4 of file L1AnalysisL1HO.cc.

4 {}

Member Function Documentation

◆ getData()

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

Definition at line 15 of file L1AnalysisL1HO.h.

15 { return &l1ho_; }

References l1ho_.

Referenced by L1HOTreeProducer::L1HOTreeProducer().

◆ Reset()

void L1Analysis::L1AnalysisL1HO::Reset ( )
inline

Definition at line 13 of file L1AnalysisL1HO.h.

13 { l1ho_.Reset(); }

References l1ho_, and L1Analysis::L1AnalysisL1HODataFormat::Reset().

Referenced by L1HOTreeProducer::analyze().

◆ SetHO()

void L1Analysis::L1AnalysisL1HO::SetHO ( const edm::SortedCollection< HODataFrame > &  hoDataFrame)

Definition at line 6 of file L1AnalysisL1HO.cc.

6  {
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 
20  }
21 
23  }
24 }

References HcalQIESample::adc(), edm::SortedCollection< T, SORT >::begin(), HcalQIESample::dv(), edm::SortedCollection< T, SORT >::end(), HcalQIESample::er(), mps_fire::i, HcalDetId::ieta(), and HcalDetId::iphi().

Referenced by L1HOTreeProducer::analyze().

Member Data Documentation

◆ l1ho_

L1AnalysisL1HODataFormat L1Analysis::L1AnalysisL1HO::l1ho_
private

Definition at line 18 of file L1AnalysisL1HO.h.

Referenced by getData(), and Reset().

L1Analysis::L1AnalysisL1HODataFormat::nHcalQIESamples
unsigned int nHcalQIESamples
Definition: L1AnalysisL1HODataFormat.h:23
mps_fire.i
i
Definition: mps_fire.py:355
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
L1Analysis::L1AnalysisL1HODataFormat::hcalDetIdIEta
std::vector< int > hcalDetIdIEta
Definition: L1AnalysisL1HODataFormat.h:24
HcalQIESample
Definition: HcalQIESample.h:32
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::L1AnalysisL1HODataFormat::hcalQIESampleEr
std::vector< int > hcalQIESampleEr
Definition: L1AnalysisL1HODataFormat.h:29
L1Analysis::L1AnalysisL1HODataFormat::Reset
void Reset()
Definition: L1AnalysisL1HODataFormat.h:11
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
L1Analysis::L1AnalysisL1HO::l1ho_
L1AnalysisL1HODataFormat l1ho_
Definition: L1AnalysisL1HO.h:18
HcalDetId
Definition: HcalDetId.h:12
L1Analysis::L1AnalysisL1HODataFormat::hcalQIESample
std::vector< int > hcalQIESample
Definition: L1AnalysisL1HODataFormat.h:26
L1Analysis::L1AnalysisL1HODataFormat::hcalDetIdIPhi
std::vector< int > hcalDetIdIPhi
Definition: L1AnalysisL1HODataFormat.h:25
L1Analysis::L1AnalysisL1HODataFormat::hcalQIESampleDv
std::vector< int > hcalQIESampleDv
Definition: L1AnalysisL1HODataFormat.h:28
HcalQIESample::dv
constexpr bool dv() const
is the Data Valid bit set?
Definition: HcalQIESample.h:49
L1Analysis::L1AnalysisL1HODataFormat::nHcalDetIds
unsigned int nHcalDetIds
Definition: L1AnalysisL1HODataFormat.h:22
L1Analysis::L1AnalysisL1HODataFormat::hcalQIESampleAdc
std::vector< int > hcalQIESampleAdc
Definition: L1AnalysisL1HODataFormat.h:27