CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 HODataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const HFDataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const ZDCDataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const HcalCalibDataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const QIE10DataFrame &df, CaloSamples &lf) const override
 
void adc2fC (const QIE11DataFrame &df, CaloSamples &lf) const override
 
void fC2adc (const CaloSamples &clf, HBHEDataFrame &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, ZDCDataFrame &df, int fCapIdOffset) const override
 
void fC2adc (const CaloSamples &clf, HcalCalibDataFrame &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
 
- 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

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

Implements HcalCoder.

Definition at line 3 of file HcalNominalCoder.cc.

References mps_fire::i, HBHEDataFrame::id(), HBHEDataFrame::presamples(), CaloSamples::setPresamples(), and HBHEDataFrame::size().

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 }
constexpr const HcalDetId & id() const
Definition: HBHEDataFrame.h:23
constexpr int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HBHEDataFrame.h:29
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:33
constexpr int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:27
void HcalNominalCoder::adc2fC ( const HODataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements HcalCoder.

Definition at line 9 of file HcalNominalCoder.cc.

References mps_fire::i, HODataFrame::id(), HODataFrame::presamples(), CaloSamples::setPresamples(), and HODataFrame::size().

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 }
constexpr int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:33
constexpr int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HODataFrame.h:29
constexpr HcalDetId const & id() const
Definition: HODataFrame.h:23
void HcalNominalCoder::adc2fC ( const HFDataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements HcalCoder.

Definition at line 15 of file HcalNominalCoder.cc.

References mps_fire::i, HFDataFrame::id(), HFDataFrame::presamples(), CaloSamples::setPresamples(), and HFDataFrame::size().

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 }
constexpr int size() const
total number of samples in the digi
Definition: HFDataFrame.h:27
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:33
constexpr int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HFDataFrame.h:29
constexpr HcalDetId const & id() const
Definition: HFDataFrame.h:23
void HcalNominalCoder::adc2fC ( const ZDCDataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements HcalCoder.

Definition at line 21 of file HcalNominalCoder.cc.

References mps_fire::i, ZDCDataFrame::id(), ZDCDataFrame::presamples(), CaloSamples::setPresamples(), and ZDCDataFrame::size().

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 }
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: ZDCDataFrame.h:28
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:33
const HcalZDCDetId & id() const
Definition: ZDCDataFrame.h:22
int size() const
total number of samples in the digi
Definition: ZDCDataFrame.h:26
void HcalNominalCoder::adc2fC ( const HcalCalibDataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements HcalCoder.

Definition at line 27 of file HcalNominalCoder.cc.

References mps_fire::i, HcalCalibDataFrame::id(), HcalCalibDataFrame::presamples(), CaloSamples::setPresamples(), and HcalCalibDataFrame::size().

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 }
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
int size() const
total number of samples in the digi
const HcalCalibDetId & id() const
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:33
void HcalNominalCoder::adc2fC ( const QIE10DataFrame df,
CaloSamples lf 
) const
inlineoverridevirtual

Implements HcalCoder.

Definition at line 23 of file HcalNominalCoder.h.

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

Implements HcalCoder.

Definition at line 25 of file HcalNominalCoder.h.

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

Implements HcalCoder.

Definition at line 53 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

53  {
54  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
55 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HFDataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements HcalCoder.

Definition at line 56 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

56  {
57  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
58 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HODataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements HcalCoder.

Definition at line 59 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

59  {
60  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
61 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
void HcalNominalCoder::fC2adc ( const CaloSamples clf,
ZDCDataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements HcalCoder.

Definition at line 62 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

62  {
63  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
64 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HcalCalibDataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements HcalCoder.

Definition at line 65 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

65  {
66  HcalNominalCoderTemplate::process(clf, df, fCapIdOffset);
67 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
void HcalNominalCoder::fC2adc ( const CaloSamples clf,
QIE10DataFrame df,
int  fCapIdOffset 
) const
inlineoverridevirtual

Implements HcalCoder.

Definition at line 24 of file HcalNominalCoder.h.

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

Implements HcalCoder.

Definition at line 26 of file HcalNominalCoder.h.

26 {}