#include <HcalTPGCompressor.h>
Public Member Functions | |
void | compress (const IntegerCaloSamples &ics, const std::vector< bool > &fineGrain, HcalTriggerPrimitiveDigi &digi) const |
HcalTriggerPrimitiveSample | compress (const HcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const |
HcalTPGCompressor (const CaloTPGTranscoder *coder) | |
Private Attributes | |
const CaloTPGTranscoder * | coder_ |
HcalTPGCompressor::HcalTPGCompressor | ( | const CaloTPGTranscoder * | coder | ) |
Definition at line 4 of file HcalTPGCompressor.cc.
: coder_(coder) { }
void HcalTPGCompressor::compress | ( | const IntegerCaloSamples & | ics, |
const std::vector< bool > & | fineGrain, | ||
HcalTriggerPrimitiveDigi & | digi | ||
) | const |
Definition at line 7 of file HcalTPGCompressor.cc.
References coder_, CaloTPGTranscoder::hcalCompress(), i, IntegerCaloSamples::id(), IntegerCaloSamples::presamples(), HcalTriggerPrimitiveDigi::setPresamples(), HcalTriggerPrimitiveDigi::setSample(), HcalTriggerPrimitiveDigi::setSize(), and IntegerCaloSamples::size().
Referenced by HcalTriggerPrimitiveAlgo::analyze(), and HcalTriggerPrimitiveAlgo::analyzeHF().
{ digi.setSize(ics.size()); digi.setPresamples(ics.presamples()); for (int i=0; i<ics.size(); i++) digi.setSample(i,coder_->hcalCompress(ics.id(),ics[i],fineGrain[i])); }
HcalTriggerPrimitiveSample HcalTPGCompressor::compress | ( | const HcalTrigTowerDetId & | id, |
unsigned int | sample, | ||
bool | fineGrain | ||
) | const |
Definition at line 14 of file HcalTPGCompressor.cc.
References coder_, and CaloTPGTranscoder::hcalCompress().
{ return coder_->hcalCompress(id, sample, fineGrain); }
const CaloTPGTranscoder* HcalTPGCompressor::coder_ [private] |
Definition at line 20 of file HcalTPGCompressor.h.
Referenced by compress().