11 : debug_(
debug), inputsAlreadyIn_(0), shift_(13) {}
17 edm::LogError(
"EcalEBPhase2AmplitudeReconstructor") <<
"ERROR IN INPUT OF AMPLITUDE FILTER" << std::endl;
23 LogDebug(
"") <<
" EcalEBPhase2AmplitudeReconstructor::setInput inputsAlreadyIn_<5 input " <<
input << std::endl;
31 LogDebug(
"") <<
" EcalEBPhase2AmplitudeReconstructor::setInput inputsAlreadyIn buffer " <<
buffer_[
i]
45 for (
unsigned int i = 0;
i < linout.size();
i++) {
69 int64_t tmpIntOutput = 0;
77 tmpIntOutput = tmpIntOutput >>
shift_;
79 LogDebug(
"") <<
" AmplitudeFilter tmpIntOutput " << tmpIntOutput <<
" shift_ " <<
shift_ << std::endl;
80 if (tmpIntOutput > 0X1FFF)
81 tmpIntOutput = 0X1FFF;
94 LogDebug(
"") <<
" EcalEBPhase2AmplitudeReconstructor::setParameters groupmap size " << groupmap.size()
95 <<
" channel ID " << raw << std::endl;
97 if (
it != groupmap.end()) {
98 uint32_t weightid = (*it).second;
103 (*itw).second.getValues(params_[0],
117 LogDebug(
"") <<
" EcalEBPhase2AmplitudeReconstructor::setParameters weights after the map " << params_[0] <<
" " 118 << params_[1] <<
" " << params_[2] <<
" " << params_[3] <<
" " << params_[4] <<
" " << params_[5]
119 <<
" " << params_[6] <<
" " << params_[7] <<
" " << params_[8] <<
" " << params_[9] <<
" " 120 << params_[10] <<
" " << params_[11] << std::endl;
126 weights_[
i] = (params_[
i] & 0x1000) ? (
int)(params_[
i] | 0xfffff000) : (
int)(params_[
i]);
131 LogDebug(
"") <<
" EcalEBPhase2AmplitudeReconstructor::setParameters weights after the cooking " <<
weights_[
i]
139 <<
" EcalEBPhase2AmplitudeReconstructor::setParameters could not find EcalTPGGroupsMap entry for " << raw;
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
const EcalTPGGroupsMap & getMap() const
Log< level::Error, false > LogError
static std::string const input
static constexpr unsigned int sampleSize
int buffer_[maxSamplesUsed_]
int weights_[maxSamplesUsed_]
const EcalEBPhase2TPGAmplWeightMap & getMap() const
std::map< uint32_t, EcalEBPhase2TPGAmplWeights > EcalEBPhase2TPGAmplWeightMap
EcalEBPhase2AmplitudeReconstructor(bool debug)
void setParameters(uint32_t raw, const EcalEBPhase2TPGAmplWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup)
static const int maxSamplesUsed_
Log< level::Warning, false > LogWarning
std::map< uint32_t, EcalEBPhase2TPGAmplWeights >::const_iterator EcalEBPhase2TPGAmplWeightMapItr
virtual ~EcalEBPhase2AmplitudeReconstructor()
std::map< uint32_t, uint32_t > EcalTPGGroupsMap