Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CalibFormats
CaloTPG
src
EcalTPGCompressor.cc
Go to the documentation of this file.
1
#include "
CalibFormats/CaloTPG/interface/CaloTPGTranscoder.h
"
2
#include "
CalibFormats/CaloTPG/interface/EcalTPGCompressor.h
"
3
4
EcalTPGCompressor::EcalTPGCompressor
(
const
CaloTPGTranscoder
* coder) : coder_(coder) {
5
}
6
7
void
EcalTPGCompressor::compress
(
const
IntegerCaloSamples
&
ics
,
const
std::vector<bool>& fineGrain,
EcalTriggerPrimitiveDigi
& digi)
const
{
8
digi.
setSize
(ics.
size
());
9
for
(
int
i
=0;
i
<ics.
size
();
i
++)
10
digi.
setSample
(
i
,
coder_
->
ecalCompress
(ics.
id
(),ics[
i
],fineGrain[
i
]));
11
}
12
13
EcalTriggerPrimitiveSample
EcalTPGCompressor::compress
(
const
EcalTrigTowerDetId
&
id
,
unsigned
int
sample
,
bool
fineGrain)
const
{
14
return
coder_
->
ecalCompress
(
id
, sample, fineGrain);
15
}
i
int i
Definition:
DBlmapReader.cc:9
EcalTriggerPrimitiveDigi
Definition:
EcalTriggerPrimitiveDigi.h:18
EcalTPGCompressor::EcalTPGCompressor
EcalTPGCompressor(const CaloTPGTranscoder *coder)
Definition:
EcalTPGCompressor.cc:4
IntegerCaloSamples
Definition:
IntegerCaloSamples.h:18
EcalTrigTowerDetId
Definition:
EcalTrigTowerDetId.h:17
h2_mapping_cfi.ics
tuple ics
Definition:
h2_mapping_cfi.py:4
CaloTPGTranscoder.h
EcalTriggerPrimitiveSample
Definition:
EcalTriggerPrimitiveSample.h:15
EcalTriggerPrimitiveDigi::setSize
void setSize(int size)
Definition:
EcalTriggerPrimitiveDigi.cc:68
IntegerCaloSamples::size
int size() const
get the size
Definition:
IntegerCaloSamples.h:27
EcalTriggerPrimitiveDigi::setSample
void setSample(int i, const EcalTriggerPrimitiveSample &sam)
Definition:
EcalTriggerPrimitiveDigi.h:39
EcalTPGCompressor::compress
void compress(const IntegerCaloSamples &ics, const std::vector< bool > &fineGrain, EcalTriggerPrimitiveDigi &digi) const
Definition:
EcalTPGCompressor.cc:7
CaloTPGTranscoder::ecalCompress
virtual EcalTriggerPrimitiveSample ecalCompress(const EcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const =0
Compression from linear samples+fine grain in the ECAL.
EcalTPGCompressor.h
EcalTPGCompressor::coder_
const CaloTPGTranscoder * coder_
Definition:
EcalTPGCompressor.h:20
CaloTPGTranscoder
Definition:
CaloTPGTranscoder.h:26
IntegerCaloSamples::id
DetId id() const
get the (generic) id
Definition:
IntegerCaloSamples.h:24
compare_using_db.sample
string sample
Definition:
compare_using_db.py:29
Generated for CMSSW Reference Manual by
1.8.5