CMS 3D CMS Logo

List of all members | Public Member Functions
HcalNominalCoder Class Reference

#include <HcalNominalCoder.h>

Inheritance diagram for HcalNominalCoder:
HcalCoder

Public Member Functions

void adc2fC (const HBHEDataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const HcalCalibDataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const HFDataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const HODataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const QIE10DataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const QIE11DataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const ZDCDataFrame &df, CaloSamples &lf) const override
 
void fC2adc (const CaloSamples &clf, HBHEDataFrame &df, int fCapIdOffset) const override
 
void fC2adc (const CaloSamples &clf, HcalCalibDataFrame &df, int fCapIdOffset) const override
 
void fC2adc (const CaloSamples &clf, HFDataFrame &df, int fCapIdOffset) const override
 
void fC2adc (const CaloSamples &clf, HODataFrame &df, int fCapIdOffset) const override
 
void fC2adc (const CaloSamples &clf, QIE10DataFrame &df, int fCapIdOffset) const override
 
void fC2adc (const CaloSamples &clf, QIE11DataFrame &df, int fCapIdOffset) const override
 
void fC2adc (const CaloSamples &clf, ZDCDataFrame &df, int fCapIdOffset) const override
 
- Public Member Functions inherited from HcalCoder
virtual ~HcalCoder ()=default
 

Detailed Description

Simple coder which uses the QIESample to convert to fC

Definition at line 11 of file HcalNominalCoder.h.

Member Function Documentation

◆ adc2fC() [1/7]

void HcalNominalCoder::adc2fC ( const HBHEDataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements HcalCoder.

Definition at line 3 of file HcalNominalCoder.cc.

3  {
4  lf = CaloSamples(df.id(), df.size());
5  for (int i = 0; i < df.size(); i++)
6  lf[i] = df[i].nominal_fC();
7  lf.setPresamples(df.presamples());
8 }

References hgcalPerformanceValidation::df, mps_fire::i, and CaloSamples::setPresamples().

◆ adc2fC() [2/7]

void HcalNominalCoder::adc2fC ( const HcalCalibDataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements HcalCoder.

Definition at line 27 of file HcalNominalCoder.cc.

27  {
28  lf = CaloSamples(df.id(), df.size());
29  for (int i = 0; i < df.size(); i++)
30  lf[i] = df[i].nominal_fC();
31  lf.setPresamples(df.presamples());
32 }

References hgcalPerformanceValidation::df, mps_fire::i, and CaloSamples::setPresamples().

◆ adc2fC() [3/7]

void HcalNominalCoder::adc2fC ( const HFDataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements HcalCoder.

Definition at line 15 of file HcalNominalCoder.cc.

15  {
16  lf = CaloSamples(df.id(), df.size());
17  for (int i = 0; i < df.size(); i++)
18  lf[i] = df[i].nominal_fC();
19  lf.setPresamples(df.presamples());
20 }

References hgcalPerformanceValidation::df, mps_fire::i, and CaloSamples::setPresamples().

◆ adc2fC() [4/7]

void HcalNominalCoder::adc2fC ( const HODataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements HcalCoder.

Definition at line 9 of file HcalNominalCoder.cc.

9  {
10  lf = CaloSamples(df.id(), df.size());
11  for (int i = 0; i < df.size(); i++)
12  lf[i] = df[i].nominal_fC();
13  lf.setPresamples(df.presamples());
14 }

References hgcalPerformanceValidation::df, mps_fire::i, and CaloSamples::setPresamples().

◆ adc2fC() [5/7]

void HcalNominalCoder::adc2fC ( const QIE10DataFrame df,
CaloSamples lf 
) const
inlineoverridevirtual

Implements HcalCoder.

Definition at line 23 of file HcalNominalCoder.h.

23 {}

◆ adc2fC() [6/7]

void HcalNominalCoder::adc2fC ( const QIE11DataFrame df,
CaloSamples lf 
) const
inlineoverridevirtual

Implements HcalCoder.

Definition at line 25 of file HcalNominalCoder.h.

25 {}

◆ adc2fC() [7/7]

void HcalNominalCoder::adc2fC ( const ZDCDataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements HcalCoder.

Definition at line 21 of file HcalNominalCoder.cc.

21  {
22  lf = CaloSamples(df.id(), df.size());
23  for (int i = 0; i < df.size(); i++)
24  lf[i] = df[i].nominal_fC();
25  lf.setPresamples(df.presamples());
26 }

References hgcalPerformanceValidation::df, mps_fire::i, and CaloSamples::setPresamples().

◆ fC2adc() [1/7]

void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HBHEDataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements HcalCoder.

Definition at line 53 of file HcalNominalCoder.cc.

53  {
54  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
55 }

References hgcalPerformanceValidation::df, and HcalNominalCoderTemplate::process().

◆ fC2adc() [2/7]

void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HcalCalibDataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements HcalCoder.

Definition at line 65 of file HcalNominalCoder.cc.

65  {
66  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
67 }

References hgcalPerformanceValidation::df, and HcalNominalCoderTemplate::process().

◆ fC2adc() [3/7]

void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HFDataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements HcalCoder.

Definition at line 56 of file HcalNominalCoder.cc.

56  {
57  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
58 }

References hgcalPerformanceValidation::df, and HcalNominalCoderTemplate::process().

◆ fC2adc() [4/7]

void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HODataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements HcalCoder.

Definition at line 59 of file HcalNominalCoder.cc.

59  {
60  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
61 }

References hgcalPerformanceValidation::df, and HcalNominalCoderTemplate::process().

◆ fC2adc() [5/7]

void HcalNominalCoder::fC2adc ( const CaloSamples clf,
QIE10DataFrame df,
int  fCapIdOffset 
) const
inlineoverridevirtual

Implements HcalCoder.

Definition at line 24 of file HcalNominalCoder.h.

24 {}

◆ fC2adc() [6/7]

void HcalNominalCoder::fC2adc ( const CaloSamples clf,
QIE11DataFrame df,
int  fCapIdOffset 
) const
inlineoverridevirtual

Implements HcalCoder.

Definition at line 26 of file HcalNominalCoder.h.

26 {}

◆ fC2adc() [7/7]

void HcalNominalCoder::fC2adc ( const CaloSamples clf,
ZDCDataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements HcalCoder.

Definition at line 62 of file HcalNominalCoder.cc.

62  {
63  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
64 }

References hgcalPerformanceValidation::df, and HcalNominalCoderTemplate::process().

mps_fire.i
i
Definition: mps_fire.py:428
CaloSamples::setPresamples
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:33
CaloSamples
Definition: CaloSamples.h:14
hgcalPerformanceValidation.df
df
Definition: hgcalPerformanceValidation.py:640
HcalNominalCoderTemplate::process
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
Definition: HcalNominalCoder.cc:36