CMS 3D CMS Logo

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

#include <CastorNominalCoder.h>

Inheritance diagram for CastorNominalCoder:
CastorCoder

Public Member Functions

virtual void adc2fC (const CastorDataFrame &df, CaloSamples &lf) const
 
virtual void fC2adc (const CaloSamples &clf, CastorDataFrame &df, int fCapIdOffset) const
 

Detailed Description

Simple coder which uses the QIESample to convert to fC

Definition at line 11 of file CastorNominalCoder.h.

Member Function Documentation

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

Implements CastorCoder.

Definition at line 3 of file CastorNominalCoder.cc.

References i, CastorDataFrame::id(), CastorDataFrame::presamples(), CaloSamples::setPresamples(), and CastorDataFrame::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 presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
void setPresamples(int pre)
set presample information
Definition: CaloSamples.cc:31
const HcalCastorDetId & id() const
int size() const
total number of samples in the digi
void CastorNominalCoder::fC2adc ( const CaloSamples clf,
CastorDataFrame df,
int  fCapIdOffset 
) const
virtual

Implements CastorCoder.

Definition at line 29 of file CastorNominalCoder.cc.

References CastorNominalCoderTemplate::process().

29  {
30  CastorNominalCoderTemplate::process(clf,df, fCapIdOffset);
31 }
void process(const CaloSamples &clf, Digi &df, int fCapIdOffset)