CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
HcalNominalCoder Class Reference

#include <HcalNominalCoder.h>

Inheritance diagram for HcalNominalCoder:
HcalCoder

Public Member Functions

virtual void adc2fC (const HBHEDataFrame &df, CaloSamples &lf) const
 
virtual void adc2fC (const HODataFrame &df, CaloSamples &lf) const
 
virtual void adc2fC (const HFDataFrame &df, CaloSamples &lf) const
 
virtual void adc2fC (const ZDCDataFrame &df, CaloSamples &lf) const
 
virtual void adc2fC (const HcalCalibDataFrame &df, CaloSamples &lf) const
 
virtual void adc2fC (const HcalUpgradeDataFrame &df, CaloSamples &lf) const
 
virtual void fC2adc (const CaloSamples &clf, HBHEDataFrame &df, int fCapIdOffset) const
 
virtual void fC2adc (const CaloSamples &clf, HFDataFrame &df, int fCapIdOffset) const
 
virtual void fC2adc (const CaloSamples &clf, HODataFrame &df, int fCapIdOffset) const
 
virtual void fC2adc (const CaloSamples &clf, ZDCDataFrame &df, int fCapIdOffset) const
 
virtual void fC2adc (const CaloSamples &clf, HcalCalibDataFrame &df, int fCapIdOffset) const
 
virtual void fC2adc (const CaloSamples &clf, HcalUpgradeDataFrame &df, int fCapIdOffset) const
 

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
virtual

Implements HcalCoder.

Definition at line 3 of file HcalNominalCoder.cc.

References 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++) lf[i]=df[i].nominal_fC();
6  lf.setPresamples(df.presamples());
7 }
int i
Definition: DBlmapReader.cc:9
int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:26
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:29
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HBHEDataFrame.h:28
const HcalDetId & id() const
Definition: HBHEDataFrame.h:22
void HcalNominalCoder::adc2fC ( const HODataFrame df,
CaloSamples lf 
) const
virtual

Implements HcalCoder.

Definition at line 8 of file HcalNominalCoder.cc.

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

8  {
9  lf=CaloSamples(df.id(),df.size());
10  for (int i=0; i<df.size(); i++) lf[i]=df[i].nominal_fC();
11  lf.setPresamples(df.presamples());
12 }
int i
Definition: DBlmapReader.cc:9
const HcalDetId & id() const
Definition: HODataFrame.h:23
int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:29
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HODataFrame.h:29
void HcalNominalCoder::adc2fC ( const HFDataFrame df,
CaloSamples lf 
) const
virtual

Implements HcalCoder.

Definition at line 13 of file HcalNominalCoder.cc.

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

13  {
14  lf=CaloSamples(df.id(),df.size());
15  for (int i=0; i<df.size(); i++) lf[i]=df[i].nominal_fC();
16  lf.setPresamples(df.presamples());
17 }
int i
Definition: DBlmapReader.cc:9
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:29
int size() const
total number of samples in the digi
Definition: HFDataFrame.h:26
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HFDataFrame.h:28
const HcalDetId & id() const
Definition: HFDataFrame.h:22
void HcalNominalCoder::adc2fC ( const ZDCDataFrame df,
CaloSamples lf 
) const
virtual

Implements HcalCoder.

Definition at line 18 of file HcalNominalCoder.cc.

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

18  {
19  lf=CaloSamples(df.id(),df.size());
20  for (int i=0; i<df.size(); i++) lf[i]=df[i].nominal_fC();
21  lf.setPresamples(df.presamples());
22 }
int i
Definition: DBlmapReader.cc:9
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:29
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
virtual

Implements HcalCoder.

Definition at line 23 of file HcalNominalCoder.cc.

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

23  {
24  lf=CaloSamples(df.id(),df.size());
25  for (int i=0; i<df.size(); i++) lf[i]=df[i].nominal_fC();
26  lf.setPresamples(df.presamples());
27 }
int i
Definition: DBlmapReader.cc:9
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:29
virtual void HcalNominalCoder::adc2fC ( const HcalUpgradeDataFrame df,
CaloSamples lf 
) const
inlinevirtual

Implements HcalCoder.

Definition at line 23 of file HcalNominalCoder.h.

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

Implements HcalCoder.

Definition at line 48 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

48  {
49  HcalNominalCoderTemplate::process(clf,df, fCapIdOffset);
50 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HFDataFrame df,
int  fCapIdOffset 
) const
virtual

Implements HcalCoder.

Definition at line 51 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

51  {
52  HcalNominalCoderTemplate::process(clf,df, fCapIdOffset);
53 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HODataFrame df,
int  fCapIdOffset 
) const
virtual

Implements HcalCoder.

Definition at line 54 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

54  {
55  HcalNominalCoderTemplate::process(clf,df, fCapIdOffset);
56 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
void HcalNominalCoder::fC2adc ( const CaloSamples clf,
ZDCDataFrame df,
int  fCapIdOffset 
) const
virtual

Implements HcalCoder.

Definition at line 57 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

57  {
58  HcalNominalCoderTemplate::process(clf,df, fCapIdOffset);
59 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HcalCalibDataFrame df,
int  fCapIdOffset 
) const
virtual

Implements HcalCoder.

Definition at line 60 of file HcalNominalCoder.cc.

References HcalNominalCoderTemplate::process().

60  {
61  HcalNominalCoderTemplate::process(clf,df, fCapIdOffset);
62 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
virtual void HcalNominalCoder::fC2adc ( const CaloSamples clf,
HcalUpgradeDataFrame df,
int  fCapIdOffset 
) const
inlinevirtual

Implements HcalCoder.

Definition at line 24 of file HcalNominalCoder.h.

24 { }