Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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