31 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName <<
"\"already exists in the LUT map- not inserted!" 44 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName <<
"\"already exists in the LUT map- not inserted!" 56 std::vector<long long> lut,
59 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName <<
"\"already exists in the LUT map- not inserted!" 72 std::vector<long long> lut,
75 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName <<
"\"already exists in the LUT map- not inserted!" 89 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName <<
"\"already exists in the LUT map- not inserted!" 103 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName <<
"\"already exists in the LUT map- not inserted!" 117 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName <<
"\"already exists in the LUT map- not inserted!" 131 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName <<
"\"already exists in the LUT map- not inserted!" 147 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for CalMuEta LUT ( " 148 << lutName <<
")" << std::endl;
149 }
else if (element >= (
int)
m_lut_CalMuEta.find(lutName)->second.size()) {
150 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for CalMuEta LUT (" 151 << lutName <<
") size = " <<
m_lut_CalMuEta.find(lutName)->second.size() << std::endl;
162 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for CalMuPhi LUT ( " 163 << lutName <<
")" << std::endl;
164 }
else if (element >= (
int)
m_lut_CalMuPhi.find(lutName)->second.size()) {
165 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for CalMuPhi LUT (" 166 << lutName <<
") size = " <<
m_lut_CalMuPhi.find(lutName)->second.size() << std::endl;
179 std::size_t
pos = lutName.find(
"-");
182 name += lutName.substr(0, pos);
186 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name " << lutName <<
" or " << name <<
" exists! " 195 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for DeltaEta LUT ( " 196 << lutName <<
")" << std::endl;
197 }
else if (element >= (
int)
m_lut_DeltaEta.find(lutName)->second.size()) {
198 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for DeltaEta LUT (" 199 << lutName <<
") size = " <<
m_lut_DeltaEta.find(lutName)->second.size() << std::endl;
206 unsigned int value = 0;
212 std::size_t
pos = lutName.find(
"-");
215 name += lutName.substr(0, pos);
221 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for DeltaEta not found" << std::endl;
233 std::size_t
pos = lutName.find(
"-");
236 name += lutName.substr(0, pos);
240 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name " << lutName <<
" or " << name <<
" exists! " 249 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for DeltaPhi LUT ( " 250 << lutName <<
")" << std::endl;
251 }
else if (element >= (
int)
m_lut_DeltaPhi.find(lutName)->second.size()) {
252 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for DeltaPhi LUT (" 253 << lutName <<
") size = " <<
m_lut_DeltaPhi.find(lutName)->second.size() << std::endl;
260 unsigned int value = 0;
266 std::size_t
pos = lutName.find(
"-");
269 name += lutName.substr(0, pos);
275 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for DeltaPhi not found" << std::endl;
285 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Pt LUT ( " << lutName
287 }
else if (element >= (
int)
m_lut_Pt.find(lutName)->second.size()) {
288 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Pt LUT (" << lutName
289 <<
") size = " <<
m_lut_Pt.find(lutName)->second.size() << std::endl;
291 value =
m_lut_Pt.find(lutName)->second.at(element);
296 unsigned int value = 0;
301 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Pt not found" << std::endl;
312 std::size_t
pos = lutName.find(
"-");
315 name += lutName.substr(0, pos);
319 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name " << lutName <<
" or " << name <<
" exists! " 328 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Cosh LUT ( " << lutName
330 }
else if (element >= (
int)
m_lut_Cosh.find(lutName)->second.size()) {
331 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Cosh LUT (" << lutName
332 <<
") size = " <<
m_lut_Cosh.find(lutName)->second.size() << std::endl;
334 value =
m_lut_Cosh.find(lutName)->second.at(element);
339 unsigned int value = 0;
345 std::size_t
pos = lutName.find(
"-");
348 name += lutName.substr(0, pos);
354 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Cosh not found" << std::endl;
366 std::size_t
pos = lutName.find(
"-");
369 name += lutName.substr(0, pos);
373 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name " << lutName <<
" or " << name <<
" exists! " 382 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Cos LUT ( " << lutName
384 }
else if (element >= (
int)
m_lut_DeltaPhi.find(lutName)->second.size()) {
385 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Cos LUT (" << lutName
386 <<
") size = " <<
m_lut_Cos.find(lutName)->second.size() << std::endl;
388 value =
m_lut_Cos.find(lutName)->second.at(element);
398 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name " << lutName <<
" exists! " << std::endl;
403 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Cos LUT ( " << lutName
405 }
else if (element >= (
int)
m_lut_Cos.find(lutName)->second.size()) {
406 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Cos LUT (" << lutName
407 <<
") size = " <<
m_lut_Cos.find(lutName)->second.size() << std::endl;
409 value =
m_lut_Cos.find(lutName)->second.at(element);
419 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name " << lutName <<
" exists! " << std::endl;
424 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Sin LUT ( " << lutName
426 }
else if (element >= (
int)
m_lut_Sin.find(lutName)->second.size()) {
427 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Sin LUT (" << lutName
428 <<
") size = " <<
m_lut_Sin.find(lutName)->second.size() << std::endl;
430 value =
m_lut_Sin.find(lutName)->second.at(element);
436 unsigned int value = 0;
442 std::size_t
pos = lutName.find(
"-");
445 name += lutName.substr(0, pos);
451 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Cos not found" << std::endl;
458 unsigned int value = 0;
463 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Sin not found" << std::endl;
469 unsigned int value = 0;
474 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Sin not found" << std::endl;
483 dumpLUT(myCout, 1, itr->first);
489 dumpLUT(myCout, 2, itr->first);
495 dumpLUT(myCout, 3, itr->first);
501 dumpLUT(myCout, 4, itr->first);
506 dumpLUT(myCout, 5, itr->first);
511 dumpLUT(myCout, 6, itr->first);
516 dumpLUT(myCout, 7, itr->first);
521 dumpLUT(myCout, 8, itr->first);
526 std::vector<long long> dumpV;
527 unsigned int prec = 0;
571 dumpV =
m_lut_Pt.find(name)->second;
578 myCout <<
"=========================================" << std::endl;
579 myCout <<
" LUT: " << type <<
" Table: " << name <<
" Size = " << dumpV.size() <<
" Precision " << prec
581 myCout <<
"=========================================" << std::endl;
582 for (
int i = 0;
i < (
int)dumpV.size();
i++) {
583 myCout <<
" Element " <<
i <<
" " << dumpV.at(
i) << std::endl;
588 myCout <<
"\n ************* L1T Global Scales ************" << std::endl;
590 myCout <<
" Muon Scales: " << std::endl;
593 myCout <<
" EG Scales: " << std::endl;
596 myCout <<
" Tau Scales: " << std::endl;
599 myCout <<
" Jet Scales: " << std::endl;
602 myCout <<
" HTT Scales: " << std::endl;
605 myCout <<
" ETT Scales: " << std::endl;
608 myCout <<
" HTM Scales: " << std::endl;
611 myCout <<
" ETM Scales: " << std::endl;
615 myCout <<
" LUTs Stored: " << std::endl;
616 myCout <<
" CalMuEta:";
620 myCout <<
" " << itr->first;
624 myCout <<
" CalMuPhi:";
628 myCout <<
" " << itr->first;
632 myCout <<
" DeltaEta:";
636 myCout <<
" " << itr->first;
640 myCout <<
" DeltaPhi:";
644 myCout <<
" " << itr->first;
651 myCout <<
" " << itr->first;
658 myCout <<
" " << itr->first;
665 myCout <<
" " << itr->first;
672 myCout <<
" " << itr->first;
677 myCout <<
" Pt Min = " << std::setw(10) << scale.
etMin <<
" Pt Max = " << std::setw(10) << scale.
etMax 678 <<
" Pt Step = " << std::setw(10) << scale.
etStep <<
" Number = " << std::setw(10)
679 << scale.
etBins.size() << std::endl;
682 std::pair<double, double> binEdges = scale.
etBins.at(
i);
683 myCout <<
" etBins[" <<
i <<
"]\trange:\t" << binEdges.first <<
" - " << binEdges.second << std::endl;
686 myCout <<
"\n Phi Min = " << std::setw(10) << scale.
phiMin <<
" Phi Max = " << std::setw(10) << scale.
phiMax 687 <<
" Phi Step = " << std::setw(10) << scale.
phiStep <<
" Number = " << std::setw(10)
688 << scale.
phiBins.size() << std::endl;
691 std::pair<double, double> binEdges = scale.
phiBins.at(
i);
692 myCout <<
" phiBins[" <<
i <<
"]\trange:\t" << binEdges.first <<
" - " << binEdges.second << std::endl;
695 myCout <<
"\n Eta Min = " << std::setw(10) << scale.
etaMin <<
" Eta Max = " << std::setw(10) << scale.
etaMax 696 <<
" Eta Step = " << std::setw(10) << scale.
etaStep <<
" Number = " << std::setw(10)
697 << scale.
etaBins.size() << std::endl;
700 std::pair<double, double> binEdges = scale.
etaBins.at(
i);
701 myCout <<
" etaBins[" <<
i <<
"]\trange:\t" << binEdges.first <<
" - " << binEdges.second << std::endl;
unsigned int getPrec_Cos(const std::string &lutName) const
unsigned int getPrec_Pt(const std::string &lutName) const
ScaleParameters m_ettScales
long long getLUT_Sin(const std::string &lutName, int element) const
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
ScaleParameters m_tauScales
ScaleParameters m_jetScales
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
std::string m_ScaleSetName
unsigned int getPrec_DeltaEta_Cosh(const std::string &lutName) const
virtual void setLUT_CalMuPhi(const std::string &lutName, std::vector< long long > lut)
virtual void setLUT_DeltaEta(const std::string &lutName, std::vector< long long > lut, unsigned int precision)
long long getLUT_DeltaEta(std::string lutName, int element) const
unsigned int getPrec_Sin(const std::string &lutName) const
ScaleParameters m_etmScales
std::map< std::string, std::vector< long long > > m_lut_Sin
ScaleParameters m_egScales
virtual void dumpAllLUTs(std::ostream &myCout) const
std::vector< std::pair< double, double > > phiBins
ScaleParameters m_htmScales
virtual void setLUT_Cos(const std::string &lutName, std::vector< long long > lut, unsigned int precision)
Container::value_type value_type
long long getLUT_DeltaPhi_Cos(std::string lutName, int element) const
long long getLUT_Cos(const std::string &lutName, int element) const
long long getLUT_Pt(const std::string &lutName, int element) const
unsigned int getPrec_DeltaEta(const std::string &lutName) const
virtual void print(std::ostream &myCout) const
std::map< std::string, std::vector< long long > > m_lut_Pt
long long getLUT_CalMuPhi(const std::string &lutName, int element) const
virtual void setLUT_Cosh(const std::string &lutName, std::vector< long long > lut, unsigned int precision)
std::map< std::string, unsigned int > m_Prec_Cos
ScaleParameters m_httScales
long long getLUT_CalMuEta(const std::string &lutName, int element) const
virtual void dumpLUT(std::ostream &myCout, int LUTtype, std::string name) const
std::map< std::string, unsigned int > m_Prec_DeltaEta
long long getLUT_DeltaEta_Cosh(std::string lutName, int element) const
virtual void setLUT_DeltaPhi(const std::string &lutName, std::vector< long long > lut, unsigned int precision)
long long getLUT_DeltaPhi(std::string lutName, int element) const
std::map< std::string, unsigned int > m_Prec_DeltaPhi
std::map< std::string, unsigned int > m_Prec_Pt
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
std::map< std::string, unsigned int > m_Prec_Cosh
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
virtual void setLUT_Pt(const std::string &lutName, std::vector< long long > lut, unsigned int precision)
std::vector< std::pair< double, double > > etBins
typedef for a single object template
unsigned int getPrec_DeltaPhi(const std::string &lutName) const
std::map< std::string, std::vector< long long > > m_lut_Cosh
std::map< std::string, unsigned int > m_Prec_Sin
virtual void setLUT_CalMuEta(const std::string &lutName, std::vector< long long > lut)
unsigned int getPrec_DeltaPhi_Cos(const std::string &lutName) const
virtual void setLUT_Sin(const std::string &lutName, std::vector< long long > lut, unsigned int precision)
std::map< std::string, std::vector< long long > > m_lut_Cos
virtual std::string getScalesName() const
std::vector< std::pair< double, double > > etaBins
virtual void printScale(ScaleParameters scale, std::ostream &myCout) const
ScaleParameters m_muScales