CMS 3D CMS Logo

CastorCoderDb.h
Go to the documentation of this file.
1 #ifndef CASTOR_CODER_DB_H
2 #define CASTOR_CODER_DB_H
3 
6 
13 class CastorQIECoder;
14 class CastorQIEShape;
15 
16 class CastorCoderDb : public CastorCoder {
17 public:
18  CastorCoderDb (const CastorQIECoder& fCoder, const CastorQIEShape& fShape);
19 
20  virtual void adc2fC(const CastorDataFrame& df, CaloSamples& lf) const;
21 
22  virtual void fC2adc(const CaloSamples& clf, CastorDataFrame& df, int fCapIdOffset) const;
23 
24  private:
25  template <class Digi> void adc2fC_ (const Digi& df, CaloSamples& clf) const;
26  template <class Digi> void fC2adc_ (const CaloSamples& clf, Digi& df, int fCapIdOffset) const;
27 
30 };
31 
32 #endif
CastorCoderDb(const CastorQIECoder &fCoder, const CastorQIEShape &fShape)
void adc2fC_(const Digi &df, CaloSamples &clf) const
std::tuple< unsigned int, int, int, DigiType, int, int, int, float > Digi
Definition: GenericDigi.h:30
const CastorQIEShape * mShape
Definition: CastorCoderDb.h:29
virtual void fC2adc(const CaloSamples &clf, CastorDataFrame &df, int fCapIdOffset) const
void fC2adc_(const CaloSamples &clf, Digi &df, int fCapIdOffset) const
const CastorQIECoder * mCoder
Definition: CastorCoderDb.h:28
virtual void adc2fC(const CastorDataFrame &df, CaloSamples &lf) const