10 : debug_(
debug), inputsAlreadyIn_(0), shift_(maxSamplesUsed_) {}
16 edm::LogError(
"EcalEBPhase2TimeReconstructor::setInput") <<
"ERROR IN INPUT OF TIME FILTER" << std::endl;
21 LogDebug(
"") <<
" EcalEBPhase2TimeReconstructor::setInput inputsAlreadyIn_<5 input " <<
input << std::endl;
29 LogDebug(
"") <<
" EcalEBPhase2TimeReconstructor::setInput inputsAlreadyIn buffer " <<
buffer_[
i] << std::endl;
38 std::vector<int> &RecoOutput,
39 std::vector<int64_t> &
output) {
49 ampIn_[0] = ampRecoOutput[0] >> 4;
50 ampIn_[1] = ampRecoOutput[1] >> 4;
52 for (
unsigned int i = 0;
i < addout.size();
i++) {
56 LogDebug(
"") <<
" EcalEBPhase2TimeReconstructor::process(std::vector<int> buffer_ " << std::endl;
66 LogDebug(
"") <<
" EcalEBPhase2TimeReconstructor::process(std::vector<int>) i = 11 " << std::endl;
69 LogDebug(
"") <<
" EcalEBPhase2TimeReconstructor::process(std::vector<int>) after process() " 73 LogDebug(
"") <<
" EcalEBPhase2TimeReconstructor::process(std::vector<int>) after setting the output " 77 LogDebug(
"") <<
" EcalEBPhase2TimeReconstructor::process(std::vector<int>) i = 15 " << std::endl;
92 for (
int i = 0;
i < 12;
i++) {
100 LogDebug(
"") <<
" TimeFilter local output " <<
output << std::endl;
110 LogDebug(
"") <<
" Begininning Final TimeFilter Calculation" << std::endl;
114 LogDebug(
"") <<
" output*tmpInvAmpAr " << tmpOutput << std::endl;
118 LogDebug(
"") <<
" output after bit shift " <<
output << std::endl;
135 uint32_t params_[12];
138 LogDebug(
"") <<
" EcalEBPhase2TimeReconstructor::setParameters groupmap size " << groupmap.size() << std::endl;
140 if (
it != groupmap.end()) {
141 uint32_t weightid = (*it).second;
145 (*itw).second.getValues(params_[0],
159 LogDebug(
"") <<
" EcalEBPhase2TimeReconstructor::setParameters time weights after the map " << params_[0] <<
" " 160 << params_[1] <<
" " << params_[2] <<
" " << params_[3] <<
" " << params_[4] <<
" " << params_[5]
161 <<
" " << params_[6] <<
" " << params_[7] <<
" " << params_[8] <<
" " << params_[9] <<
" " 162 << params_[10] <<
" " << params_[11] << std::endl;
167 for (
int i = 0;
i < 12; ++
i) {
168 weights_[
i] = (params_[
i] & 0x8000) ? (
int)(params_[
i] | 0xffff8000) : (
int)(params_[
i]);
173 <<
" EcalEBPhase2TimeReconstructor::setParameters could not find EcalTPGGroupsMap entry for " << raw;
uint64_t ampIn_[maxSamplesUsed_]
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
int buffer_[maxSamplesUsed_]
const EcalEBPhase2TPGTimeWeightMap & getMap() const
std::map< uint32_t, EcalEBPhase2TPGTimeWeights > EcalEBPhase2TPGTimeWeightMap
const EcalTPGGroupsMap & getMap() const
Log< level::Error, false > LogError
static std::string const input
static constexpr unsigned int sampleSize
static const int maxSamplesUsed_
int weights_[maxSamplesUsed_]
EcalEBPhase2TimeReconstructor(bool debug)
Log< level::Warning, false > LogWarning
void setParameters(uint32_t raw, const EcalEBPhase2TPGTimeWeightIdMap *ecaltpgTimeWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup)
virtual ~EcalEBPhase2TimeReconstructor()
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
std::map< uint32_t, EcalEBPhase2TPGTimeWeights >::const_iterator EcalEBPhase2TPGTimeWeightMapItr