42 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName
43 <<
"\"already exists in the LUT map- not inserted!" << std::endl;
58 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName
59 <<
"\"already exists in the LUT map- not inserted!" << std::endl;
74 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName
75 <<
"\"already exists in the LUT map- not inserted!" << std::endl;
90 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName
91 <<
"\"already exists in the LUT map- not inserted!" << std::endl;
106 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName
107 <<
"\"already exists in the LUT map- not inserted!" << std::endl;
122 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName
123 <<
"\"already exists in the LUT map- not inserted!" << std::endl;
138 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName
139 <<
"\"already exists in the LUT map- not inserted!" << std::endl;
159 std::cout <<
"Warning: Element Requested " << element <<
" too large for CalMuEta LUT (" << lutName <<
") size = " <<
m_lut_CalMuEta.find(lutName)->second.size() << std::endl;
171 std::cout <<
"Warning: Element Requested " << element <<
" too large for CalMuPhi LUT (" << lutName <<
") size = " <<
m_lut_CalMuPhi.find(lutName)->second.size() << std::endl;
185 std::size_t
pos = lutName.find(
"-");
188 name += lutName.substr(0,pos);
192 std::cout <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
203 std::cout <<
"Warning: Element Requested " << element <<
" too large for DeltaEta LUT (" << lutName <<
") size = " <<
m_lut_DeltaEta.find(lutName)->second.size() << std::endl;
209 unsigned int value = 0;
216 std::size_t
pos = lutName.find(
"-");
219 name += lutName.substr(0,pos);
225 std::cout <<
"Warning: LUT " << lutName <<
" for DeltaEta not found" << std::endl;
240 std::size_t
pos = lutName.find(
"-");
243 name += lutName.substr(0,pos);
247 std::cout <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
258 std::cout <<
"Warning: Element Requested " << element <<
" too large for DeltaPhi LUT (" << lutName <<
") size = " <<
m_lut_DeltaPhi.find(lutName)->second.size() << std::endl;
264 unsigned int value = 0;
271 std::size_t
pos = lutName.find(
"-");
274 name += lutName.substr(0,pos);
280 std::cout <<
"Warning: LUT " << lutName <<
" for DeltaPhi not found" << std::endl;
291 if(element < (
int)
m_lut_Pt.find(lutName)->second.size()) {
292 value =
m_lut_Pt.find(lutName)->second.at(element);
294 std::cout <<
"Warning: Element Requested " << element <<
" too large for Pt LUT (" << lutName <<
") size = " <<
m_lut_Pt.find(lutName)->second.size() << std::endl;
300 unsigned int value = 0;
305 std::cout <<
"Warning: LUT " << lutName <<
" for Pt not found" << std::endl;
319 std::size_t
pos = lutName.find(
"-");
322 name += lutName.substr(0,pos);
326 std::cout <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
333 if(element < (
int)
m_lut_Cosh.find(lutName)->second.size()) {
334 value =
m_lut_Cosh.find(lutName)->second.at(element);
336 std::cout <<
"Warning: Element Requested " << element <<
" too large for Cosh LUT (" << lutName <<
") size = " <<
m_lut_Cosh.find(lutName)->second.size() << std::endl;
342 unsigned int value = 0;
349 std::size_t
pos = lutName.find(
"-");
352 name += lutName.substr(0,pos);
358 std::cout <<
"Warning: LUT " << lutName <<
" for Cosh not found" << std::endl;
372 std::size_t
pos = lutName.find(
"-");
375 name += lutName.substr(0,pos);
379 std::cout <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
386 if(element < (
int)
m_lut_Cos.find(lutName)->second.size()) {
387 value =
m_lut_Cos.find(lutName)->second.at(element);
389 std::cout <<
"Warning: Element Requested " << element <<
" too large for Cos LUT (" << lutName <<
") size = " <<
m_lut_Cos.find(lutName)->second.size() << std::endl;
395 unsigned int value = 0;
402 std::size_t
pos = lutName.find(
"-");
405 name += lutName.substr(0,pos);
411 std::cout <<
"Warning: LUT " << lutName <<
" for Cos not found" << std::endl;
456 std::vector<long long> dumpV;
457 unsigned int prec = 0;
495 dumpV =
m_lut_Pt.find(name)->second;
502 myCout <<
"=========================================" << std::endl;
503 myCout <<
" LUT: " << type <<
" Table: " << name <<
" Size = " << dumpV.size() <<
" Precision " << prec << std::endl;
504 myCout <<
"=========================================" << std::endl;
505 for(
int i=0;
i<(
int)dumpV.size();
i++) {
506 myCout <<
" Element " <<
i <<
" " << dumpV.at(
i) << std::endl;
513 myCout <<
"\n ************* L1T Global Scales ************" << std::endl;
516 myCout <<
" Muon Scales: " << std::endl;
519 myCout <<
" EG Scales: "<< std::endl;
522 myCout <<
" Tau Scales: "<< std::endl;
525 myCout <<
" Jet Scales: "<< std::endl;
529 myCout <<
" HTT Scales: "<< std::endl;
532 myCout <<
" ETT Scales: "<< std::endl;
535 myCout <<
" HTM Scales: "<< std::endl;
538 myCout <<
" ETM Scales: "<< std::endl;
543 myCout <<
" LUTs Stored: " << std::endl;
544 myCout <<
" CalMuEta:";
546 myCout <<
" " << itr->first;
550 myCout <<
" CalMuPhi:";
552 myCout <<
" " << itr->first;
556 myCout <<
" DeltaEta:";
558 myCout <<
" " << itr->first;
562 myCout <<
" DeltaPhi:";
564 myCout <<
" " << itr->first;
570 myCout <<
" " << itr->first;
576 myCout <<
" " << itr->first;
582 myCout <<
" " << itr->first;
590 myCout <<
" Pt Min = " << std::setw(10) << scale.
etMin 591 <<
" Pt Max = " << std::setw(10) << scale.
etMax 592 <<
" Pt Step = " << std::setw(10) << scale.
etStep 593 <<
" Number = " << std::setw(10) << scale.
etBins.size()
594 <<
"\n Phi Min = " << std::setw(10) << scale.
phiMin 595 <<
" Phi Max = " << std::setw(10) << scale.
phiMax 596 <<
" Phi Step = " << std::setw(10) << scale.
phiStep 597 <<
" Number = " << std::setw(10) << scale.
phiBins.size()
598 <<
"\n Eta Min = " << std::setw(10) << scale.
etaMin 599 <<
" Eta Max = " << std::setw(10) << scale.
etaMax 600 <<
" Eta Step = " << std::setw(10) << scale.
etaStep 601 <<
" Number = " << std::setw(10) << scale.
etaBins.size()
std::map< std::string, unsigned int > m_Prec_Pt
virtual void setLUT_DeltaEta(std::string lutName, std::vector< long long > lut, unsigned int precision)
ScaleParameters m_ettScales
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
ScaleParameters m_tauScales
ScaleParameters m_jetScales
std::map< std::string, unsigned int > m_Prec_Cosh
std::vector< std::pair< double, double > > etaBins
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
unsigned int getPrec_Pt(std::string lutName) const
std::vector< std::pair< double, double > > phiBins
virtual void setLUT_CalMuPhi(std::string lutName, std::vector< long long > lut)
std::string m_ScaleSetName
long long getLUT_Cos(std::string lutName, int element) const
unsigned int getPrec_Cosh(std::string lutName) const
long long getLUT_DeltaEta(std::string lutName, int element) const
std::map< std::string, unsigned int > m_Prec_Cos
ScaleParameters m_etmScales
virtual void setLUT_Cosh(std::string lutName, std::vector< long long > lut, unsigned int precision)
ScaleParameters m_egScales
std::map< std::string, unsigned int > m_Prec_DeltaEta
virtual void dumpAllLUTs(std::ostream &myCout) const
long long getLUT_Pt(std::string lutName, int element) const
ScaleParameters m_htmScales
Container::value_type value_type
unsigned int getPrec_DeltaEta(std::string lutName) const
long long getLUT_Cosh(std::string lutName, int element) const
long long getLUT_CalMuEta(std::string lutName, int element) const
virtual void print(std::ostream &myCout) const
std::map< std::string, std::vector< long long > > m_lut_Pt
unsigned int getPrec_DeltaPhi(std::string lutName) const
virtual void setLUT_Cos(std::string lutName, std::vector< long long > lut, unsigned int precision)
virtual void setLUT_CalMuEta(std::string lutName, std::vector< long long > lut)
ScaleParameters m_httScales
virtual void dumpLUT(std::ostream &myCout, int LUTtype, std::string name) const
std::map< std::string, unsigned int > m_Prec_DeltaPhi
std::vector< std::pair< double, double > > etBins
long long getLUT_DeltaPhi(std::string lutName, int element) const
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
virtual void setLUT_DeltaPhi(std::string lutName, std::vector< long long > lut, unsigned int precision)
virtual void setLUT_Pt(std::string lutName, std::vector< long long > lut, unsigned int precision)
typedef for a single object template
std::map< std::string, std::vector< long long > > m_lut_Cosh
long long getLUT_CalMuPhi(std::string lutName, int element) const
std::map< std::string, std::vector< long long > > m_lut_Cos
virtual std::string getScalesName() const
unsigned int getPrec_Cos(std::string lutName) const
virtual void printScale(ScaleParameters scale, std::ostream &myCout) const
ScaleParameters m_muScales