test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTPGCoder.h
Go to the documentation of this file.
1 #ifndef CALIBFORMATS_HCALOBJECTS_HCALTPGCODER_H
2 #define CALIBFORMATS_HCALOBJECTS_HCALTPGCODER_H 1
3 
8 
9 // forward declaration of EventSetup is all that is needed here
10 namespace edm {
11  class EventSetup;
12 }
13 
24 class HcalTPGCoder {
25 public:
26  virtual void adc2Linear(const HBHEDataFrame& df, IntegerCaloSamples& ics) const = 0;
27  virtual void adc2Linear(const HFDataFrame& df, IntegerCaloSamples& ics) const = 0;
28  virtual unsigned short adc2Linear(HcalQIESample sample,HcalDetId id) const = 0;
29  unsigned short adc2Linear(unsigned char adc, HcalDetId id) const { return adc2Linear(HcalQIESample(adc,0,0,0),id); }
30  virtual void compress(const IntegerCaloSamples& ics, const std::vector<bool>& featureBits, HcalTriggerPrimitiveDigi& tp) const = 0;
31  virtual float getLUTPedestal(HcalDetId id) const = 0;
32  virtual float getLUTGain(HcalDetId id) const = 0;
36  virtual std::vector<unsigned short> getLinearizationLUT(HcalDetId id) const;
37 };
38 
39 #endif
int adc(sample_type sample)
get the ADC sample (12 bits)
virtual float getLUTPedestal(HcalDetId id) const =0
virtual float getLUTGain(HcalDetId id) const =0
virtual void compress(const IntegerCaloSamples &ics, const std::vector< bool > &featureBits, HcalTriggerPrimitiveDigi &tp) 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...
Definition: HcalTPGCoder.cc:3
virtual void adc2Linear(const HBHEDataFrame &df, IntegerCaloSamples &ics) const =0
unsigned short adc2Linear(unsigned char adc, HcalDetId id) const
Definition: HcalTPGCoder.h:29