8 : debug_(
debug), init_(
false), peds_(nullptr), badXStatus_(nullptr) {}
25 if (itped != ecaltpPed->
end())
28 edm::LogError(
"EcalEBPhase2Linearizer") <<
" could not find EcalLiteDTUPedestal entry for " <<
detId << std::endl;
32 if (
it != linMap.
end()) {
36 <<
" could not find EcalEBPhase2TPGLinearizationConstMap entry for " <<
detId.rawId() << std::endl;
40 if (itbadX != badXMap.
end()) {
43 edm::LogWarning(
"EcalTPG") <<
" could not find EcalTPGCrystalStatusMap entry for " <<
detId.rawId();
98 for (
int i = 0;
i <
df.size();
i++) {
105 LogDebug(
"EcalEBPhase2Linearizer") <<
" mult " 107 for (
int i = 0;
i <
df.size();
i++) {
116 for (
int i = 0;
i <
df.size();
i++) {
125 for (
int i = 0;
i <
df.size();
i++) {
134 for (
int i = 0;
i <
df.size();
i++) {
143 for (
int i = 0;
i <
df.size();
i++) {
152 for (
int i = 0;
i <
df.size();
i++) {
158 LogDebug(
"") <<
" EcalEBPhase2Linearizer::process(const .. Final output " << std::endl;
161 for (
int i = 0;
i <
df.size();
i++) {
const EcalEBPhase2TPGLinearizationConstant * linConsts_
std::vector< const EcalTPGCrystalStatusCode * > vectorbadXStatus_
EcalCondObjectContainer< EcalEBPhase2TPGLinearizationConstant >::const_iterator EcalEBPhase2TPGLinearizationConstMapIterator
void process(const EBDigiCollectionPh2::Digi &df, std::vector< int > &output_percry)
int adc() const
get the ADC sample (12 bits)
Log< level::Error, false > LogError
float mean(unsigned int i) const
virtual ~EcalEBPhase2Linearizer()
EcalEBPhase2Linearizer(bool debug)
EcalTPGCrystalStatusMap::const_iterator EcalTPGCrystalStatusMapIterator
int setInput(const EcalLiteDTUSample &RawSam)
const_iterator find(uint32_t rawId) const
const EcalLiteDTUPedestals * peds_
int gainId() const
get the gainId (2 bits)
std::vector< Item >::const_iterator const_iterator
void setParameters(EBDetId id, const EcalLiteDTUPedestalsMap *peds, const EcalEBPhase2TPGLinearizationConstMap *ecaltplin, const EcalTPGCrystalStatus *ecaltpBadX)
const EcalTPGCrystalStatusCode * badXStatus_
const self & getMap() const
const_iterator end() const
Log< level::Warning, false > LogWarning