Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:11

0001 #ifndef CASTORCODER_H
0002 #define CASTORCODER_H 1
0003 
0004 #include "DataFormats/HcalDigi/interface/CastorDataFrame.h"
0005 #include "CalibFormats/CaloObjects/interface/CaloSamples.h"
0006 
0007 /** \class CastorCoder
0008     
0009     Abstract interface of a coder/decoder which converts ADC values to
0010     and from femtocoulombs of collected charge.
0011 
0012 */
0013 class CastorCoder {
0014 public:
0015   virtual void adc2fC(const CastorDataFrame& df, CaloSamples& lf) const = 0;
0016   virtual void fC2adc(const CaloSamples& clf, CastorDataFrame& df, int fCapIdOffset) const = 0;
0017   virtual ~CastorCoder() = default;
0018 };
0019 
0020 #endif