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;
154 LogTrace(
"GlobalScales") <<
" LUT \"" << lutName
155 <<
"\"already exists in the LUT map- not inserted!" << std::endl;
175 edm::LogError(
"GlobalScales") <<
"Warning: Element Requested " << element <<
" too large for CalMuEta LUT (" << lutName <<
") size = " <<
m_lut_CalMuEta.find(lutName)->second.size() << std::endl;
187 edm::LogError(
"GlobalScales") <<
"Warning: Element Requested " << element <<
" too large for CalMuPhi LUT (" << lutName <<
") size = " <<
m_lut_CalMuPhi.find(lutName)->second.size() << std::endl;
201 std::size_t
pos = lutName.find(
"-");
204 name += lutName.substr(0,pos);
208 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
219 edm::LogError(
"GlobalScales") <<
"Warning: Element Requested " << element <<
" too large for DeltaEta LUT (" << lutName <<
") size = " <<
m_lut_DeltaEta.find(lutName)->second.size() << std::endl;
225 unsigned int value = 0;
232 std::size_t
pos = lutName.find(
"-");
235 name += lutName.substr(0,pos);
241 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for DeltaEta not found" << std::endl;
256 std::size_t
pos = lutName.find(
"-");
259 name += lutName.substr(0,pos);
263 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
274 edm::LogError(
"GlobalScales") <<
"Warning: Element Requested " << element <<
" too large for DeltaPhi LUT (" << lutName <<
") size = " <<
m_lut_DeltaPhi.find(lutName)->second.size() << std::endl;
280 unsigned int value = 0;
287 std::size_t
pos = lutName.find(
"-");
290 name += lutName.substr(0,pos);
296 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for DeltaPhi not found" << std::endl;
307 if(element < (
int)
m_lut_Pt.find(lutName)->second.size()) {
308 value =
m_lut_Pt.find(lutName)->second.at(element);
310 edm::LogError(
"GlobalScales") <<
"Warning: Element Requested " << element <<
" too large for Pt LUT (" << lutName <<
") size = " <<
m_lut_Pt.find(lutName)->second.size() << std::endl;
316 unsigned int value = 0;
321 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Pt not found" << std::endl;
335 std::size_t
pos = lutName.find(
"-");
338 name += lutName.substr(0,pos);
342 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
349 if(element < (
int)
m_lut_Cosh.find(lutName)->second.size()) {
350 value =
m_lut_Cosh.find(lutName)->second.at(element);
352 edm::LogError(
"GlobalScales") <<
"Warning: Element Requested " << element <<
" too large for Cosh LUT (" << lutName <<
") size = " <<
m_lut_Cosh.find(lutName)->second.size() << std::endl;
358 unsigned int value = 0;
365 std::size_t
pos = lutName.find(
"-");
368 name += lutName.substr(0,pos);
374 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Cosh not found" << std::endl;
388 std::size_t
pos = lutName.find(
"-");
391 name += lutName.substr(0,pos);
395 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
402 if(element < (
int)
m_lut_Cos.find(lutName)->second.size()) {
403 value =
m_lut_Cos.find(lutName)->second.at(element);
405 edm::LogError(
"GlobalScales") <<
"Warning: Element Requested " << element <<
" too large for Cos LUT (" << lutName <<
") size = " <<
m_lut_Cos.find(lutName)->second.size() << std::endl;
416 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" exists! " << std::endl;
420 if(element < (
int)
m_lut_Cos.find(lutName)->second.size()) {
421 value =
m_lut_Cos.find(lutName)->second.at(element);
423 edm::LogError(
"GlobalScales") <<
"Warning: Element Requested " << element <<
" too large for Cos LUT (" << lutName <<
") size = " <<
m_lut_Cos.find(lutName)->second.size() << std::endl;
434 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" exists! " << std::endl;
438 if(element < (
int)
m_lut_Sin.find(lutName)->second.size()) {
439 value =
m_lut_Sin.find(lutName)->second.at(element);
441 edm::LogError(
"GlobalScales") <<
"Warning: Element Requested " << element <<
" too large for Sin LUT (" << lutName <<
") size = " <<
m_lut_Sin.find(lutName)->second.size() << std::endl;
448 unsigned int value = 0;
455 std::size_t
pos = lutName.find(
"-");
458 name += lutName.substr(0,pos);
464 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Cos not found" << std::endl;
472 unsigned int value = 0;
477 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Sin not found" << std::endl;
484 unsigned int value = 0;
489 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Sin not found" << std::endl;
537 std::vector<long long> dumpV;
538 unsigned int prec = 0;
582 dumpV =
m_lut_Pt.find(name)->second;
589 myCout <<
"=========================================" << std::endl;
590 myCout <<
" LUT: " << type <<
" Table: " << name <<
" Size = " << dumpV.size() <<
" Precision " << prec << std::endl;
591 myCout <<
"=========================================" << std::endl;
592 for(
int i=0;
i<(
int)dumpV.size();
i++) {
593 myCout <<
" Element " <<
i <<
" " << dumpV.at(
i) << std::endl;
600 myCout <<
"\n ************* L1T Global Scales ************" << std::endl;
603 myCout <<
" Muon Scales: " << std::endl;
606 myCout <<
" EG Scales: "<< std::endl;
609 myCout <<
" Tau Scales: "<< std::endl;
612 myCout <<
" Jet Scales: "<< std::endl;
616 myCout <<
" HTT Scales: "<< std::endl;
619 myCout <<
" ETT Scales: "<< std::endl;
622 myCout <<
" HTM Scales: "<< std::endl;
625 myCout <<
" ETM Scales: "<< std::endl;
630 myCout <<
" LUTs Stored: " << std::endl;
631 myCout <<
" CalMuEta:";
633 myCout <<
" " << itr->first;
637 myCout <<
" CalMuPhi:";
639 myCout <<
" " << itr->first;
643 myCout <<
" DeltaEta:";
645 myCout <<
" " << itr->first;
649 myCout <<
" DeltaPhi:";
651 myCout <<
" " << itr->first;
657 myCout <<
" " << itr->first;
663 myCout <<
" " << itr->first;
669 myCout <<
" " << itr->first;
675 myCout <<
" " << itr->first;
683 myCout <<
" Pt Min = " << std::setw(10) << scale.
etMin 684 <<
" Pt Max = " << std::setw(10) << scale.
etMax 685 <<
" Pt Step = " << std::setw(10) << scale.
etStep 686 <<
" Number = " << std::setw(10) << scale.
etBins.size()
687 <<
"\n Phi Min = " << std::setw(10) << scale.
phiMin 688 <<
" Phi Max = " << std::setw(10) << scale.
phiMax 689 <<
" Phi Step = " << std::setw(10) << scale.
phiStep 690 <<
" Number = " << std::setw(10) << scale.
phiBins.size()
691 <<
"\n Eta Min = " << std::setw(10) << scale.
etaMin 692 <<
" Eta Max = " << std::setw(10) << scale.
etaMax 693 <<
" Eta Step = " << std::setw(10) << scale.
etaStep 694 <<
" Number = " << std::setw(10) << scale.
etaBins.size()
std::map< std::string, unsigned int > m_Prec_Pt
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, unsigned int > m_Prec_Cosh
std::vector< std::pair< double, double > > etaBins
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
std::vector< std::pair< double, double > > phiBins
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
std::map< std::string, unsigned int > m_Prec_Cos
ScaleParameters m_etmScales
std::map< std::string, std::vector< long long > > m_lut_Sin
ScaleParameters m_egScales
std::map< std::string, unsigned int > m_Prec_DeltaEta
virtual void dumpAllLUTs(std::ostream &myCout) const
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)
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_DeltaPhi
std::vector< std::pair< double, double > > etBins
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, std::vector< long long > > m_lut_DeltaEta
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)
typedef for a single object template
unsigned int getPrec_DeltaPhi(const std::string &lutName) const
std::map< std::string, unsigned int > m_Prec_Sin
std::map< std::string, std::vector< long long > > m_lut_Cosh
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
virtual void printScale(ScaleParameters scale, std::ostream &myCout) const
ScaleParameters m_muScales