Main Page
Namespaces
Classes
Package Documentation
src
CalibFormats
CastorObjects
interface
CastorTPGCoder.h
Go to the documentation of this file.
1
#ifndef CALIBFORMATS_CASTOROBJECTS_CASTORTPGCODER_H
2
#define CALIBFORMATS_CASTOROBJECTS_CASTORTPGCODER_H 1
3
4
#include "
CalibFormats/CaloObjects/interface/IntegerCaloSamples.h
"
5
#include "
DataFormats/HcalDigi/interface/CastorDataFrame.h
"
6
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
7
8
// forward declaration of EventSetup is all that is needed here
9
namespace
edm
{
10
class
EventSetup
;
11
}
12
23
class
CastorTPGCoder
{
24
public
:
25
virtual
~
CastorTPGCoder
() =
default
;
26
// virtual void adc2Linear(const CastorDataFrame& df, IntegerCaloSamples& ics) const = 0;
27
28
virtual
unsigned
short
adc2Linear(
HcalQIESample
sample
,
HcalDetId
id
)
const
= 0;
29
unsigned
short
adc2Linear
(
unsigned
char
adc
,
HcalDetId
id
)
const
{
return
adc2Linear
(
HcalQIESample
(adc,0,0,0),
id
); }
30
virtual
float
getLUTPedestal(
HcalDetId
id
)
const
= 0;
31
virtual
float
getLUTGain(
HcalDetId
id
)
const
= 0;
35
virtual
std::vector<unsigned short> getLinearizationLUT(
HcalDetId
id
)
const
;
36
};
37
38
#endif
ecalMGPA::adc
int adc(sample_type sample)
get the ADC sample (12 bits)
Definition:
EcalMGPASample.h:11
CastorDataFrame.h
CastorTPGCoder
Definition:
CastorTPGCoder.h:23
simplePhotonAnalyzer_cfi.sample
sample
Definition:
simplePhotonAnalyzer_cfi.py:12
HcalQIESample
Definition:
HcalQIESample.h:13
CastorTPGCoder::adc2Linear
unsigned short adc2Linear(unsigned char adc, HcalDetId id) const
Definition:
CastorTPGCoder.h:29
EventSetup
HcalDetId
Definition:
HcalDetId.h:12
HcalDetId.h
IntegerCaloSamples.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
Generated for CMSSW Reference Manual by
1.8.11