CMS 3D CMS Logo

List of all members | Public Member Functions
CastorNominalCoder Class Reference

#include <CastorNominalCoder.h>

Inheritance diagram for CastorNominalCoder:
CastorCoder

Public Member Functions

void adc2fC (const CastorDataFrame &df, CaloSamples &lf) const override
 
void fC2adc (const CaloSamples &clf, CastorDataFrame &df, int fCapIdOffset) const override
 
- Public Member Functions inherited from CastorCoder
virtual ~CastorCoder ()=default
 

Detailed Description

Simple coder which uses the QIESample to convert to fC

Definition at line 11 of file CastorNominalCoder.h.

Member Function Documentation

◆ adc2fC()

void CastorNominalCoder::adc2fC ( const CastorDataFrame df,
CaloSamples lf 
) const
overridevirtual

Implements CastorCoder.

Definition at line 3 of file CastorNominalCoder.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 mps_fire::i, CastorDataFrame::id(), CastorDataFrame::presamples(), CaloSamples::setPresamples(), and CastorDataFrame::size().

◆ fC2adc()

void CastorNominalCoder::fC2adc ( const CaloSamples clf,
CastorDataFrame df,
int  fCapIdOffset 
) const
overridevirtual

Implements CastorCoder.

Definition at line 29 of file CastorNominalCoder.cc.

29  {
30  CastorNominalCoderTemplate::process(clf, df, fCapIdOffset);
31 }

References CastorNominalCoderTemplate::process().

mps_fire.i
i
Definition: mps_fire.py:355
CastorDataFrame::id
const HcalCastorDetId & id() const
Definition: CastorDataFrame.h:22
CastorNominalCoderTemplate::process
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)
Definition: CastorNominalCoder.cc:12
CaloSamples::setPresamples
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:33
CastorDataFrame::size
int size() const
total number of samples in the digi
Definition: CastorDataFrame.h:26
CastorDataFrame::presamples
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware)
Definition: CastorDataFrame.h:28
CaloSamples
Definition: CaloSamples.h:14