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 }
CaloTPGTranscoder
Definition: CaloTPGTranscoder.h:24
mps_fire.i
i
Definition: mps_fire.py:355
simplePhotonAnalyzer_cfi.sample
sample
Definition: simplePhotonAnalyzer_cfi.py:12
EcalTPGCompressor::EcalTPGCompressor
EcalTPGCompressor(const CaloTPGTranscoder *coder)
Definition: EcalTPGCompressor.cc:4
EcalTrigTowerDetId
Definition: EcalTrigTowerDetId.h:14
CaloTPGTranscoder.h
IntegerCaloSamples
Definition: IntegerCaloSamples.h:16
EcalTPGCompressor::compress
void compress(const IntegerCaloSamples &ics, const std::vector< bool > &fineGrain, EcalTriggerPrimitiveDigi &digi) const
Definition: EcalTPGCompressor.cc:6
EcalTPGCompressor.h
EcalTriggerPrimitiveDigi::setSize
void setSize(int size)
Definition: EcalTriggerPrimitiveDigi.cc:60
EcalTPGCompressor::coder_
const CaloTPGTranscoder * coder_
Definition: EcalTPGCompressor.h:21
EcalTriggerPrimitiveDigi::setSample
void setSample(int i, const EcalTriggerPrimitiveSample &sam)
Definition: EcalTriggerPrimitiveDigi.h:36
CaloTPGTranscoder::ecalCompress
virtual EcalTriggerPrimitiveSample ecalCompress(const EcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const =0
Compression from linear samples+fine grain in the ECAL.
EcalTriggerPrimitiveDigi
Definition: EcalTriggerPrimitiveDigi.h:16
Ecal07UnpackerData_cfi.ics
ics
Definition: Ecal07UnpackerData_cfi.py:55
EcalTriggerPrimitiveSample
Definition: EcalTriggerPrimitiveSample.h:12