CMS 3D CMS Logo

CastorTPGCoder.h
Go to the documentation of this file.
1 #ifndef CALIBFORMATS_CASTOROBJECTS_CASTORTPGCODER_H
2 #define CALIBFORMATS_CASTOROBJECTS_CASTORTPGCODER_H 1
3 
7 
8 // forward declaration of EventSetup is all that is needed here
9 namespace edm {
10  class EventSetup;
11 }
12 
24 public:
25  virtual ~CastorTPGCoder() = default;
26  // virtual void adc2Linear(const CastorDataFrame& df, IntegerCaloSamples& ics) const = 0;
27 
28  virtual unsigned short adc2Linear(HcalQIESample sample, HcalDetId id) const = 0;
29  unsigned short adc2Linear(unsigned char adc, HcalDetId id) const {
30  return adc2Linear(HcalQIESample(adc, 0, 0, 0), id);
31  }
32  virtual float getLUTPedestal(HcalDetId id) const = 0;
33  virtual float getLUTGain(HcalDetId id) const = 0;
37  virtual std::vector<unsigned short> getLinearizationLUT(HcalDetId id) const;
38 };
39 
40 #endif
virtual ~CastorTPGCoder()=default
virtual unsigned short adc2Linear(HcalQIESample sample, HcalDetId id) const =0
virtual std::vector< unsigned short > getLinearizationLUT(HcalDetId id) const
Get the full linearization LUT (128 elements). Default implementation just uses adc2Linear to get all...
virtual float getLUTPedestal(HcalDetId id) const =0
HLT enums.
virtual float getLUTGain(HcalDetId id) const =0
unsigned short adc2Linear(unsigned char adc, HcalDetId id) const
uint16_t *__restrict__ uint16_t const *__restrict__ adc