CMS 3D CMS Logo

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