CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CalibFormats/CaloTPG/interface/HcalTPGCompressor.h

Go to the documentation of this file.
00001 #ifndef CALIBFORMATS_CALOTPG_HCALTPGCOMPRESSOR_H
00002 #define CALIBFORMATS_CALOTPG_HCALTPGCOMPRESSOR_H 1
00003 
00004 #include "CalibFormats/CaloObjects/interface/IntegerCaloSamples.h"
00005 #include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveDigi.h"
00006 class CaloTPGTranscoder;
00007 
00014 class HcalTPGCompressor {
00015 public:
00016   HcalTPGCompressor(const CaloTPGTranscoder* coder);
00017   void compress(const IntegerCaloSamples& ics, const std::vector<bool>& fineGrain, HcalTriggerPrimitiveDigi& digi) const;
00018   HcalTriggerPrimitiveSample compress(const HcalTrigTowerDetId& id, unsigned int sample, bool fineGrain) const;
00019 private:
00020   const CaloTPGTranscoder* coder_;
00021 };
00022 
00023 #endif