CMS 3D CMS Logo

HcalTPGCompressor Class Reference

Date
2006/09/14 16:24:10
Revision
1.1
More...

#include <CalibFormats/CaloTPG/interface/HcalTPGCompressor.h>

List of all members.

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 CaloTPGTranscodercoder_


Detailed Description

Date
2006/09/14 16:24:10
Revision
1.1

Author:
J. Mans - Minnesota

Definition at line 14 of file HcalTPGCompressor.h.


Constructor & Destructor Documentation

HcalTPGCompressor::HcalTPGCompressor ( const CaloTPGTranscoder coder  ) 

Definition at line 4 of file HcalTPGCompressor.cc.

00004                                                                    : coder_(coder) {
00005 }


Member Function Documentation

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 }


Member Data Documentation

const CaloTPGTranscoder* HcalTPGCompressor::coder_ [private]

Definition at line 20 of file HcalTPGCompressor.h.

Referenced by compress().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:24:00 2009 for CMSSW by  doxygen 1.5.4