10 : famos_(famos), init_(
false)
26 if (it!=linMap.
end()) {
29 else edm::LogWarning(
"EcalTPG")<<
" could not find EcalTPGLinearizationConstMap entry for "<<raw;
33 if (itped!=pedMap.
end())
peds_=&(*itped);
34 else edm::LogWarning(
"EcalTPG")<<
" could not find EcalTPGPedestalsMap entry for "<<raw;
39 if (itbadX!=badXMap.
end()) {
44 edm::LogWarning(
"EcalTPG")<<
" could not find EcalTPGCrystalStatusMap entry for "<<raw;
54 if(
famos_ && output<0)
return 0;
56 if(output<0)
return shift_ << 12;
58 if(output>0X3FFFF)output=0X3FFFF;
64 if(RawSam.
raw()>0X3FFF)
66 LogDebug(
"EcalTPG")<<
"ERROR IN INPUT SAMPLE OF FENIX LINEARIZER";
void setParameters(uint32_t raw, const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGCrystalStatus *ecaltpBadX)
EcalTPGPedestalsMap::const_iterator EcalTPGPedestalsMapIterator
const EcalTPGPedestal * peds_
const self & getMap() const
EcalFenixLinearizer(bool famos)
uint16_t raw() const
get the raw word
int gainId() const
get the gainId (2 bits)
const EcalTPGLinearizationConstant * linConsts_
EcalCondObjectContainer< EcalTPGLinearizationConstant >::const_iterator EcalTPGLinearizationConstMapIterator
EcalTPGCrystalStatusMap::const_iterator EcalTPGCrystalStatusMapIterator
uint16_t getStatusCode() const
const EcalTPGCrystalStatusCode * badXStatus_
virtual ~EcalFenixLinearizer()
int setInput(const EcalMGPASample &RawSam)
const_iterator find(uint32_t rawId) const
const_iterator end() const
volatile std::atomic< bool > shutdown_flag false
std::vector< const EcalTPGCrystalStatusCode * > vectorbadXStatus_
int adc() const
get the ADC sample (12 bits)