Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CALIBFORMATS_CALOTPG_HCALTPGCOMPRESSOR_H
0002 #define CALIBFORMATS_CALOTPG_HCALTPGCOMPRESSOR_H 1
0003 
0004 #include "CalibFormats/CaloObjects/interface/IntegerCaloSamples.h"
0005 #include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveDigi.h"
0006 class CaloTPGTranscoder;
0007 
0008 /** \class HcalTPGCompressor
0009   *  
0010   * \author J. Mans - Minnesota
0011   */
0012 class HcalTPGCompressor {
0013 public:
0014   HcalTPGCompressor(const CaloTPGTranscoder* coder);
0015   void compress(const IntegerCaloSamples& ics, const std::vector<int>& fineGrain, HcalTriggerPrimitiveDigi& digi) const;
0016   HcalTriggerPrimitiveSample compress(const HcalTrigTowerDetId& id, unsigned int sample, bool fineGrain) const;
0017 
0018 private:
0019   const CaloTPGTranscoder* coder_;
0020 };
0021 
0022 #endif