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;
173 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for CalMuEta LUT ( " << lutName <<
")"<< std::endl;
174 }
else if(element >= (
int)
m_lut_CalMuEta.find(lutName)->second.size()) {
175 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for CalMuEta LUT (" << lutName <<
") size = " <<
m_lut_CalMuEta.find(lutName)->second.size() << std::endl;
187 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for CalMuPhi LUT ( " << lutName <<
")"<< std::endl;
188 }
else if(element >= (
int)
m_lut_CalMuPhi.find(lutName)->second.size()) {
189 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for CalMuPhi LUT (" << lutName <<
") size = " <<
m_lut_CalMuPhi.find(lutName)->second.size() << std::endl;
205 std::size_t
pos = lutName.find(
"-");
208 name += lutName.substr(0,pos);
212 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
220 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for DeltaEta LUT ( " << lutName <<
")"<< std::endl;
221 }
else if (element >= (
int)
m_lut_DeltaEta.find(lutName)->second.size()) {
222 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for DeltaEta LUT (" << lutName <<
") size = " <<
m_lut_DeltaEta.find(lutName)->second.size() << std::endl;
230 unsigned int value = 0;
237 std::size_t
pos = lutName.find(
"-");
240 name += lutName.substr(0,pos);
246 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for DeltaEta not found" << std::endl;
261 std::size_t
pos = lutName.find(
"-");
264 name += lutName.substr(0,pos);
268 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
276 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for DeltaPhi LUT ( " << lutName <<
")"<< std::endl;
277 }
else if(element >= (
int)
m_lut_DeltaPhi.find(lutName)->second.size()) {
278 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for DeltaPhi LUT (" << lutName <<
") size = " <<
m_lut_DeltaPhi.find(lutName)->second.size() << std::endl;
286 unsigned int value = 0;
293 std::size_t
pos = lutName.find(
"-");
296 name += lutName.substr(0,pos);
302 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for DeltaPhi not found" << std::endl;
314 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Pt LUT ( " << lutName <<
")"<< std::endl;
315 }
else if(element >= (
int)
m_lut_Pt.find(lutName)->second.size()) {
316 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Pt LUT (" << lutName <<
") size = " <<
m_lut_Pt.find(lutName)->second.size() << std::endl;
318 value =
m_lut_Pt.find(lutName)->second.at(element);
324 unsigned int value = 0;
329 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Pt not found" << std::endl;
343 std::size_t
pos = lutName.find(
"-");
346 name += lutName.substr(0,pos);
350 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
358 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Cosh LUT ( " << lutName <<
")"<< std::endl;
359 }
else if(element >= (
int)
m_lut_Cosh.find(lutName)->second.size()) {
360 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Cosh LUT (" << lutName <<
") size = " <<
m_lut_Cosh.find(lutName)->second.size() << std::endl;
362 value =
m_lut_Cosh.find(lutName)->second.at(element);
368 unsigned int value = 0;
375 std::size_t
pos = lutName.find(
"-");
378 name += lutName.substr(0,pos);
384 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Cosh not found" << std::endl;
398 std::size_t
pos = lutName.find(
"-");
401 name += lutName.substr(0,pos);
405 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" or " << name <<
" exists! " << std::endl;
413 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Cos LUT ( " << lutName <<
")"<< std::endl;
414 }
else if(element >= (
int)
m_lut_DeltaPhi.find(lutName)->second.size()) {
415 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Cos LUT (" << lutName <<
") size = " <<
m_lut_Cos.find(lutName)->second.size() << std::endl;
417 value =
m_lut_Cos.find(lutName)->second.at(element);
428 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" exists! " << std::endl;
433 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Cos LUT ( " << lutName <<
")"<< std::endl;
434 }
else if (element >= (
int)
m_lut_Cos.find(lutName)->second.size()) {
435 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Cos LUT (" << lutName <<
") size = " <<
m_lut_Cos.find(lutName)->second.size() << std::endl;
437 value =
m_lut_Cos.find(lutName)->second.at(element);
448 edm::LogError(
"GlobalScales") <<
"Warning: No LUT by name "<< lutName <<
" exists! " << std::endl;
453 edm::LogError(
"GlobalScales") <<
"Error: Negative index, " << element <<
", requested for Sin LUT ( " << lutName <<
")"<< std::endl;
454 }
else if(element >= (
int)
m_lut_Sin.find(lutName)->second.size()) {
455 edm::LogError(
"GlobalScales") <<
"Error: Element Requested " << element <<
" too large for Sin LUT (" << lutName <<
") size = " <<
m_lut_Sin.find(lutName)->second.size() << std::endl;
457 value =
m_lut_Sin.find(lutName)->second.at(element);
464 unsigned int value = 0;
471 std::size_t
pos = lutName.find(
"-");
474 name += lutName.substr(0,pos);
480 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Cos not found" << std::endl;
488 unsigned int value = 0;
493 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Sin not found" << std::endl;
500 unsigned int value = 0;
505 edm::LogError(
"GlobalScales") <<
"Warning: LUT " << lutName <<
" for Sin not found" << std::endl;
553 std::vector<long long> dumpV;
554 unsigned int prec = 0;
598 dumpV =
m_lut_Pt.find(name)->second;
605 myCout <<
"=========================================" << std::endl;
606 myCout <<
" LUT: " << type <<
" Table: " << name <<
" Size = " << dumpV.size() <<
" Precision " << prec << std::endl;
607 myCout <<
"=========================================" << std::endl;
608 for(
int i=0;
i<(
int)dumpV.size();
i++) {
609 myCout <<
" Element " <<
i <<
" " << dumpV.at(
i) << std::endl;
616 myCout <<
"\n ************* L1T Global Scales ************" << std::endl;
619 myCout <<
" Muon Scales: " << std::endl;
622 myCout <<
" EG Scales: "<< std::endl;
625 myCout <<
" Tau Scales: "<< std::endl;
628 myCout <<
" Jet Scales: "<< std::endl;
632 myCout <<
" HTT Scales: "<< std::endl;
635 myCout <<
" ETT Scales: "<< std::endl;
638 myCout <<
" HTM Scales: "<< std::endl;
641 myCout <<
" ETM Scales: "<< std::endl;
646 myCout <<
" LUTs Stored: " << std::endl;
647 myCout <<
" CalMuEta:";
649 myCout <<
" " << itr->first;
653 myCout <<
" CalMuPhi:";
655 myCout <<
" " << itr->first;
659 myCout <<
" DeltaEta:";
661 myCout <<
" " << itr->first;
665 myCout <<
" DeltaPhi:";
667 myCout <<
" " << itr->first;
673 myCout <<
" " << itr->first;
679 myCout <<
" " << itr->first;
685 myCout <<
" " << itr->first;
691 myCout <<
" " << itr->first;
699 myCout <<
" Pt Min = " << std::setw(10) << scale.
etMin 700 <<
" Pt Max = " << std::setw(10) << scale.
etMax 701 <<
" Pt Step = " << std::setw(10) << scale.
etStep 702 <<
" Number = " << std::setw(10) << scale.
etBins.size()
706 std::pair<double, double> binEdges = scale.
etBins.at(
i);
707 myCout <<
" etBins[" <<
i <<
"]\trange:\t" << binEdges.first <<
" - " << binEdges.second << std::endl;
710 myCout <<
"\n Phi Min = " << std::setw(10) << scale.
phiMin 711 <<
" Phi Max = " << std::setw(10) << scale.
phiMax 712 <<
" Phi Step = " << std::setw(10) << scale.
phiStep 713 <<
" Number = " << std::setw(10) << scale.
phiBins.size()
717 std::pair<double, double> binEdges = scale.
phiBins.at(
i);
718 myCout <<
" phiBins[" <<
i <<
"]\trange:\t" << binEdges.first <<
" - " << binEdges.second << std::endl;
721 myCout <<
"\n Eta Min = " << std::setw(10) << scale.
etaMin 722 <<
" Eta Max = " << std::setw(10) << scale.
etaMax 723 <<
" Eta Step = " << std::setw(10) << scale.
etaStep 724 <<
" Number = " << std::setw(10) << scale.
etaBins.size()
728 std::pair<double, double> binEdges = scale.
etaBins.at(
i);
729 myCout <<
" etaBins[" <<
i <<
"]\trange:\t" << binEdges.first <<
" - " << binEdges.second << std::endl;
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