CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EcalTPGCompressor Class Reference

#include <EcalTPGCompressor.h>

Public Member Functions

EcalTriggerPrimitiveSample compress (const EcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const
 
void compress (const IntegerCaloSamples &ics, const std::vector< bool > &fineGrain, EcalTriggerPrimitiveDigi &digi) const
 
 EcalTPGCompressor (const CaloTPGTranscoder *coder)
 

Private Attributes

const CaloTPGTranscodercoder_
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 12 of file EcalTPGCompressor.h.

Constructor & Destructor Documentation

◆ EcalTPGCompressor()

EcalTPGCompressor::EcalTPGCompressor ( const CaloTPGTranscoder coder)

Definition at line 4 of file EcalTPGCompressor.cc.

4 : coder_(coder) {}

Member Function Documentation

◆ compress() [1/2]

EcalTriggerPrimitiveSample EcalTPGCompressor::compress ( const EcalTrigTowerDetId id,
unsigned int  sample,
bool  fineGrain 
) const

Definition at line 14 of file EcalTPGCompressor.cc.

16  {
17  return coder_->ecalCompress(id, sample, fineGrain);
18 }

References coder_, CaloTPGTranscoder::ecalCompress(), and simplePhotonAnalyzer_cfi::sample.

◆ compress() [2/2]

void EcalTPGCompressor::compress ( const IntegerCaloSamples ics,
const std::vector< bool > &  fineGrain,
EcalTriggerPrimitiveDigi digi 
) const

Definition at line 6 of file EcalTPGCompressor.cc.

8  {
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 }

References coder_, CaloTPGTranscoder::ecalCompress(), mps_fire::i, Ecal07UnpackerData_cfi::ics, EcalTriggerPrimitiveDigi::setSample(), and EcalTriggerPrimitiveDigi::setSize().

Member Data Documentation

◆ coder_

const CaloTPGTranscoder* EcalTPGCompressor::coder_
private

Definition at line 21 of file EcalTPGCompressor.h.

Referenced by compress().

mps_fire.i
i
Definition: mps_fire.py:428
simplePhotonAnalyzer_cfi.sample
sample
Definition: simplePhotonAnalyzer_cfi.py:12
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.
Ecal07UnpackerData_cfi.ics
ics
Definition: Ecal07UnpackerData_cfi.py:55