10 : famos_(famos), init_(
false),
32 if (it!=linMap.
end()) {
35 else std::cout <<
" could not find EcalTPGLinearizationConstMap entry for "<<raw << std::endl;
38 if (itped!=ecaltpPed->
end())
peds_=&(*itped);
39 else std::cout <<
" could not find EcalTPGPedestalsMap entry for "<<raw << std::endl;
44 if (itbadX!=badXMap.
end()) {
49 edm::LogWarning(
"EcalTPG")<<
" could not find EcalTPGCrystalStatusMap entry for "<<raw;
65 if(
famos_ || output<0)
return 0;
67 if(output<0)
return shift_ << 12;
70 if(output>0X3FFFF)output=0X3FFFF;
79 if(RawSam.
raw()>0X3FFF)
81 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 self & getMap() const
EcalFenixLinearizer(bool famos)
uint16_t raw() const
get the raw word
int gainId() const
get the gainId (2 bits)
EcalCondObjectContainer< EcalTPGLinearizationConstant >::const_iterator EcalTPGLinearizationConstMapIterator
EcalTPGCrystalStatusMap::const_iterator EcalTPGCrystalStatusMapIterator
uint16_t getStatusCode() const
virtual ~EcalFenixLinearizer()
int setInput(const EcalMGPASample &RawSam)
const EcalTPGLinearizationConstant * linConsts_
const EcalTPGCrystalStatusCode * badXStatus_
std::vector< const EcalTPGCrystalStatusCode * > vectorbadXStatus_
const_iterator find(uint32_t rawId) const
const EcalTPGPedestal * peds_
const_iterator end() const
int adc() const
get the ADC sample (12 bits)