#include <CalibFormats/CaloTPG/interface/HcalTPGCompressor.h>
Public Member Functions | |
HcalTriggerPrimitiveSample | compress (const HcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const |
void | compress (const IntegerCaloSamples &ics, const std::vector< bool > &fineGrain, HcalTriggerPrimitiveDigi &digi) const |
HcalTPGCompressor (const CaloTPGTranscoder *coder) | |
Private Attributes | |
const CaloTPGTranscoder * | coder_ |
Definition at line 14 of file HcalTPGCompressor.h.
HcalTPGCompressor::HcalTPGCompressor | ( | const CaloTPGTranscoder * | coder | ) |
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().
00014 { 00015 return coder_->hcalCompress(id, sample, fineGrain); 00016 }
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().
00007 { 00008 digi.setSize(ics.size()); 00009 digi.setPresamples(ics.presamples()); 00010 for (int i=0; i<ics.size(); i++) 00011 digi.setSample(i,coder_->hcalCompress(ics.id(),ics[i],fineGrain[i])); 00012 }
const CaloTPGTranscoder* HcalTPGCompressor::coder_ [private] |