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 }
CaloTPGTranscoder
Definition: CaloTPGTranscoder.h:24
mps_fire.i
i
Definition: mps_fire.py:428
HcalTPGCompressor::coder_
const CaloTPGTranscoder * coder_
Definition: HcalTPGCompressor.h:19
simplePhotonAnalyzer_cfi.sample
sample
Definition: simplePhotonAnalyzer_cfi.py:12
HcalTriggerPrimitiveSample
Definition: HcalTriggerPrimitiveSample.h:11
HcalTPGCompressor::compress
void compress(const IntegerCaloSamples &ics, const std::vector< int > &fineGrain, HcalTriggerPrimitiveDigi &digi) const
Definition: HcalTPGCompressor.cc:6
HcalTriggerPrimitiveDigi::setSample
void setSample(int i, const HcalTriggerPrimitiveSample &sam)
Definition: HcalTriggerPrimitiveDigi.h:43
CaloTPGTranscoder.h
HcalTPGCompressor.h
IntegerCaloSamples
Definition: IntegerCaloSamples.h:16
HcalTPGCompressor::HcalTPGCompressor
HcalTPGCompressor(const CaloTPGTranscoder *coder)
Definition: HcalTPGCompressor.cc:4
HcalTriggerPrimitiveDigi
Definition: HcalTriggerPrimitiveDigi.h:13
HcalTriggerPrimitiveDigi::setPresamples
void setPresamples(int ps)
Definition: HcalTriggerPrimitiveDigi.cc:15
Ecal07UnpackerData_cfi.ics
ics
Definition: Ecal07UnpackerData_cfi.py:55
CaloTPGTranscoder::hcalCompress
virtual HcalTriggerPrimitiveSample hcalCompress(const HcalTrigTowerDetId &id, unsigned int sample, int fineGrain) const =0
Compression from linear samples+fine grain in the HTR.
HcalTriggerPrimitiveDigi::setSize
void setSize(int size)
Definition: HcalTriggerPrimitiveDigi.cc:7
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14