Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CalibFormats
CaloTPG
src
HcalTPGCompressor.cc
Go to the documentation of this file.
1
#include "
CalibFormats/CaloTPG/interface/CaloTPGTranscoder.h
"
2
#include "
CalibFormats/CaloTPG/interface/HcalTPGCompressor.h
"
3
4
HcalTPGCompressor::HcalTPGCompressor
(
const
CaloTPGTranscoder
* coder) : coder_(coder) {}
5
6
void
HcalTPGCompressor::compress
(
const
IntegerCaloSamples
&
ics
,
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
15
HcalTriggerPrimitiveSample
HcalTPGCompressor::compress
(
const
HcalTrigTowerDetId
&
id
,
16
unsigned
int
sample
,
17
bool
fineGrain)
const
{
18
return
coder_
->
hcalCompress
(
id
, sample, fineGrain);
19
}
CaloTPGTranscoder::hcalCompress
virtual HcalTriggerPrimitiveSample hcalCompress(const HcalTrigTowerDetId &id, unsigned int sample, int fineGrain) const =0
Compression from linear samples+fine grain in the HTR.
HcalTriggerPrimitiveDigi::setSample
void setSample(int i, const HcalTriggerPrimitiveSample &sam)
Definition:
HcalTriggerPrimitiveDigi.h:43
IntegerCaloSamples::presamples
int presamples() const
access presample information
Definition:
IntegerCaloSamples.h:32
IntegerCaloSamples
Definition:
IntegerCaloSamples.h:16
mps_fire.i
i
Definition:
mps_fire.py:428
HcalTriggerPrimitiveDigi::setSize
void setSize(int size)
Definition:
HcalTriggerPrimitiveDigi.cc:7
h2_mapping_cfi.ics
tuple ics
Definition:
h2_mapping_cfi.py:4
makeMEIFBenchmarkPlots.sample
list sample
Definition:
makeMEIFBenchmarkPlots.py:9
CaloTPGTranscoder.h
IntegerCaloSamples::size
int size() const
get the size
Definition:
IntegerCaloSamples.h:25
HcalTPGCompressor.h
HcalTPGCompressor::HcalTPGCompressor
HcalTPGCompressor(const CaloTPGTranscoder *coder)
Definition:
HcalTPGCompressor.cc:4
HcalTPGCompressor::compress
void compress(const IntegerCaloSamples &ics, const std::vector< int > &fineGrain, HcalTriggerPrimitiveDigi &digi) const
Definition:
HcalTPGCompressor.cc:6
HcalTriggerPrimitiveSample
Definition:
HcalTriggerPrimitiveSample.h:11
HcalTriggerPrimitiveDigi
Definition:
HcalTriggerPrimitiveDigi.h:13
CaloTPGTranscoder
Definition:
CaloTPGTranscoder.h:24
HcalTriggerPrimitiveDigi::setPresamples
void setPresamples(int ps)
Definition:
HcalTriggerPrimitiveDigi.cc:15
HcalTrigTowerDetId
Definition:
HcalTrigTowerDetId.h:14
IntegerCaloSamples::id
DetId id() const
get the (generic) id
Definition:
IntegerCaloSamples.h:22
HcalTPGCompressor::coder_
const CaloTPGTranscoder * coder_
Definition:
HcalTPGCompressor.h:19
Generated for CMSSW Reference Manual by
1.8.5