CMS 3D CMS Logo

HcalTPGCompressor.cc
Go to the documentation of this file.
3 
5 
7  const std::vector<int>& fineGrain,
8  HcalTriggerPrimitiveDigi& digi) const {
9  digi.setSize(ics.size());
10  digi.setPresamples(ics.presamples());
11  for (int i = 0; i < ics.size(); i++)
12  digi.setSample(i, coder_->hcalCompress(ics.id(), ics[i], fineGrain[i]));
13 }
14 
16  unsigned int sample,
17  bool fineGrain) const {
18  return coder_->hcalCompress(id, sample, fineGrain);
19 }
virtual HcalTriggerPrimitiveSample hcalCompress(const HcalTrigTowerDetId &id, unsigned int sample, int fineGrain) const =0
Compression from linear samples+fine grain in the HTR.
void setSample(int i, const HcalTriggerPrimitiveSample &sam)
void compress(const IntegerCaloSamples &ics, const std::vector< int > &fineGrain, HcalTriggerPrimitiveDigi &digi) const
HcalTPGCompressor(const CaloTPGTranscoder *coder)
const CaloTPGTranscoder * coder_