CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
int presamples() const
access presample information
int size() const
get the size
HcalTPGCompressor(const CaloTPGTranscoder *coder)
void compress(const IntegerCaloSamples &ics, const std::vector< int > &fineGrain, HcalTriggerPrimitiveDigi &digi) const
DetId id() const
get the (generic) id
const CaloTPGTranscoder * coder_