CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
l1t::GlobalScales Class Reference

#include <GlobalScales.h>

Classes

class  cc
 
struct  ScaleParameters
 typedef for a single object template More...
 

Public Member Functions

virtual void dumpAllLUTs (std::ostream &myCout) const
 
virtual void dumpLUT (std::ostream &myCout, int LUTtype, std::string name) const
 
const ScaleParametersgetEGScales () const
 
const ScaleParametersgetETMHFScales () const
 
const ScaleParametersgetETMScales () const
 
const ScaleParametersgetETTEmScales () const
 
const ScaleParametersgetETTScales () const
 
const ScaleParametersgetHTMScales () const
 
const ScaleParametersgetHTTScales () const
 
const ScaleParametersgetJETScales () const
 
long long getLUT_CalMuEta (const std::string &lutName, int element) const
 
long long getLUT_CalMuPhi (const std::string &lutName, int element) const
 
long long getLUT_Cos (const std::string &lutName, int element) const
 
long long getLUT_DeltaEta (std::string lutName, int element) const
 
long long getLUT_DeltaEta_Cosh (std::string lutName, int element) const
 
long long getLUT_DeltaPhi (std::string lutName, int element) const
 
long long getLUT_DeltaPhi_Cos (std::string lutName, int element) const
 
long long getLUT_Pt (const std::string &lutName, int element) const
 
long long getLUT_Sin (const std::string &lutName, int element) const
 
const ScaleParametersgetMUScales () const
 
unsigned int getPrec_Cos (const std::string &lutName) const
 
unsigned int getPrec_DeltaEta (const std::string &lutName) const
 
unsigned int getPrec_DeltaEta_Cosh (const std::string &lutName) const
 
unsigned int getPrec_DeltaPhi (const std::string &lutName) const
 
unsigned int getPrec_DeltaPhi_Cos (const std::string &lutName) const
 
unsigned int getPrec_Pt (const std::string &lutName) const
 
unsigned int getPrec_Sin (const std::string &lutName) const
 
virtual std::string getScalesName () const
 
const ScaleParametersgetTAUScales () const
 
 GlobalScales ()
 
virtual void print (std::ostream &myCout) const
 
virtual void printScale (ScaleParameters scale, std::ostream &myCout) const
 
void setEGScales (ScaleParameters &scales)
 
void setETMHfScales (ScaleParameters &scales)
 
void setETMScales (ScaleParameters &scales)
 
void setETTEmScales (ScaleParameters &scales)
 
void setETTScales (ScaleParameters &scales)
 
void setHTMScales (ScaleParameters &scales)
 
void setHTTScales (ScaleParameters &scales)
 
void setJetScales (ScaleParameters &scales)
 
virtual void setLUT_CalMuEta (const std::string &lutName, std::vector< long long > lut)
 
virtual void setLUT_CalMuPhi (const std::string &lutName, std::vector< long long > lut)
 
virtual void setLUT_Cos (const std::string &lutName, std::vector< long long > lut, unsigned int precision)
 
virtual void setLUT_Cosh (const std::string &lutName, std::vector< long long > lut, unsigned int precision)
 
virtual void setLUT_DeltaEta (const std::string &lutName, std::vector< long long > lut, unsigned int precision)
 
virtual void setLUT_DeltaPhi (const std::string &lutName, std::vector< long long > lut, unsigned int precision)
 
virtual void setLUT_Pt (const std::string &lutName, std::vector< long long > lut, unsigned int precision)
 
virtual void setLUT_Sin (const std::string &lutName, std::vector< long long > lut, unsigned int precision)
 
void setMuonScales (ScaleParameters &scales)
 
void setScalesName (const std::string &name)
 
void setTauScales (ScaleParameters &scales)
 
virtual ~GlobalScales ()
 

Private Attributes

ScaleParameters m_egScales
 
ScaleParameters m_etmHfScales
 
ScaleParameters m_etmScales
 
ScaleParameters m_ettEmScales
 
ScaleParameters m_ettScales
 
ScaleParameters m_htmScales
 
ScaleParameters m_httScales
 
ScaleParameters m_jetScales
 
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
 
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
 
std::map< std::string, std::vector< long long > > m_lut_Cos
 
std::map< std::string, std::vector< long long > > m_lut_Cosh
 
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
 
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
 
std::map< std::string, std::vector< long long > > m_lut_Pt
 
std::map< std::string, std::vector< long long > > m_lut_Sin
 
ScaleParameters m_muScales
 
std::map< std::string, unsigned int > m_Prec_Cos
 
std::map< std::string, unsigned int > m_Prec_Cosh
 
std::map< std::string, unsigned int > m_Prec_DeltaEta
 
std::map< std::string, unsigned int > m_Prec_DeltaPhi
 
std::map< std::string, unsigned int > m_Prec_Pt
 
std::map< std::string, unsigned int > m_Prec_Sin
 
std::string m_ScaleSetName
 
ScaleParameters m_tauScales
 

Detailed Description

Definition at line 25 of file GlobalScales.h.

Constructor & Destructor Documentation

GlobalScales::GlobalScales ( )

Definition at line 25 of file GlobalScales.cc.

26 {
27 
28 
29 }
GlobalScales::~GlobalScales ( )
virtual

Definition at line 32 of file GlobalScales.cc.

32  {
33 
34 }

Member Function Documentation

void GlobalScales::dumpAllLUTs ( std::ostream &  myCout) const
virtual

Definition at line 510 of file GlobalScales.cc.

References dumpLUT(), m_lut_CalMuEta, m_lut_CalMuPhi, m_lut_Cos, m_lut_Cosh, m_lut_DeltaEta, m_lut_DeltaPhi, m_lut_Pt, m_lut_Sin, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by getHTMScales().

511 {
512 
513  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuEta.begin(); itr != m_lut_CalMuEta.end(); itr++) {
514  dumpLUT(myCout,1,itr->first);
515  }
516 
517  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuPhi.begin(); itr != m_lut_CalMuPhi.end(); itr++) {
518  dumpLUT(myCout,2,itr->first);
519  }
520 
521 
522  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaEta.begin(); itr != m_lut_DeltaEta.end(); itr++) {
523  dumpLUT(myCout,3,itr->first);
524  }
525 
526 
527  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaPhi.begin(); itr != m_lut_DeltaPhi.end(); itr++) {
528  dumpLUT(myCout,4,itr->first);
529  }
530 
531 
532  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cosh.begin(); itr != m_lut_Cosh.end(); itr++) {
533  dumpLUT(myCout,5,itr->first);
534  }
535 
536 
537  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cos.begin(); itr != m_lut_Cos.end(); itr++) {
538  dumpLUT(myCout,6,itr->first);
539  }
540 
541  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Sin.begin(); itr != m_lut_Sin.end(); itr++) {
542  dumpLUT(myCout,7,itr->first);
543  }
544 
545 
546  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Pt.begin(); itr != m_lut_Pt.end(); itr++) {
547  dumpLUT(myCout,8,itr->first);
548  }
549 }
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:144
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:142
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:148
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:145
virtual void dumpLUT(std::ostream &myCout, int LUTtype, std::string name) const
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:143
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:141
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:146
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:147
void GlobalScales::dumpLUT ( std::ostream &  myCout,
int  LUTtype,
std::string  name 
) const
virtual

Definition at line 551 of file GlobalScales.cc.

References mps_fire::i, createfilelist::int, m_lut_CalMuEta, m_lut_CalMuPhi, m_lut_Cos, m_lut_Cosh, m_lut_DeltaEta, m_lut_DeltaPhi, m_lut_Pt, m_lut_Sin, m_Prec_Cos, m_Prec_Cosh, m_Prec_DeltaEta, m_Prec_DeltaPhi, m_Prec_Pt, m_Prec_Sin, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by dumpAllLUTs(), and getHTMScales().

552 {
553  std::vector<long long> dumpV;
554  unsigned int prec = 0;
555  std::string type = "Null";
556  switch(LUTtype) {
557  case 1: {
558  dumpV = m_lut_CalMuEta.find(name)->second;
559  type = "Cal-Mu Eta";
560  break;
561  }
562  case 2: {
563  dumpV = m_lut_CalMuPhi.find(name)->second;
564  type = "Cal-Mu Phi";
565  break;
566  }
567  case 3: {
568  dumpV = m_lut_DeltaEta.find(name)->second;
569  prec = m_Prec_DeltaEta.find(name)->second;
570  type = "Delta Eta";
571  break;
572  }
573  case 4: {
574  dumpV = m_lut_DeltaPhi.find(name)->second;
575  prec = m_Prec_DeltaPhi.find(name)->second;
576  type = "Delta Phi";
577  break;
578  }
579  case 5: {
580  dumpV = m_lut_Cosh.find(name)->second;
581  prec = m_Prec_Cosh.find(name)->second;
582  type = "Cosh";
583  break;
584  }
585  case 6: {
586  dumpV = m_lut_Cos.find(name)->second;
587  prec = m_Prec_Cos.find(name)->second;
588  type = "Cos";
589  break;
590  }
591  case 7: {
592  dumpV = m_lut_Sin.find(name)->second;
593  prec = m_Prec_Sin.find(name)->second;
594  type = "Sin";
595  break;
596  }
597  case 8: {
598  dumpV = m_lut_Pt.find(name)->second;
599  prec = m_Prec_Pt.find(name)->second;
600  type = "Pt";
601  break;
602  }
603  }
604 
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;
610  }
611 }
std::map< std::string, unsigned int > m_Prec_Pt
Definition: GlobalScales.h:153
type
Definition: HCALResponse.h:21
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:144
std::map< std::string, unsigned int > m_Prec_Cosh
Definition: GlobalScales.h:154
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:142
std::map< std::string, unsigned int > m_Prec_Cos
Definition: GlobalScales.h:155
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:148
std::map< std::string, unsigned int > m_Prec_DeltaEta
Definition: GlobalScales.h:151
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:145
std::map< std::string, unsigned int > m_Prec_DeltaPhi
Definition: GlobalScales.h:152
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:143
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:141
std::map< std::string, unsigned int > m_Prec_Sin
Definition: GlobalScales.h:156
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:146
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:147
const ScaleParameters& l1t::GlobalScales::getEGScales ( ) const
inline

Definition at line 84 of file GlobalScales.h.

References m_egScales.

Referenced by l1t::CorrCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().

84 { return m_egScales; }
ScaleParameters m_egScales
Definition: GlobalScales.h:127
const ScaleParameters& l1t::GlobalScales::getETMHFScales ( ) const
inline
const ScaleParameters& l1t::GlobalScales::getETMScales ( ) const
inline

Definition at line 89 of file GlobalScales.h.

References m_etmScales.

Referenced by l1t::CorrCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().

89 { return m_etmScales; }
ScaleParameters m_etmScales
Definition: GlobalScales.h:136
const ScaleParameters& l1t::GlobalScales::getETTEmScales ( ) const
inline

Definition at line 88 of file GlobalScales.h.

References m_ettEmScales.

88 { return m_ettEmScales; }
ScaleParameters m_ettEmScales
Definition: GlobalScales.h:134
const ScaleParameters& l1t::GlobalScales::getETTScales ( ) const
inline

Definition at line 87 of file GlobalScales.h.

References m_ettScales.

87 { return m_ettScales; }
ScaleParameters m_ettScales
Definition: GlobalScales.h:133
const ScaleParameters& l1t::GlobalScales::getHTMScales ( ) const
inline
const ScaleParameters& l1t::GlobalScales::getHTTScales ( ) const
inline

Definition at line 91 of file GlobalScales.h.

References m_httScales.

91 { return m_httScales; }
ScaleParameters m_httScales
Definition: GlobalScales.h:135
const ScaleParameters& l1t::GlobalScales::getJETScales ( ) const
inline

Definition at line 86 of file GlobalScales.h.

References m_jetScales.

Referenced by l1t::CorrCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().

86 { return m_jetScales; }
ScaleParameters m_jetScales
Definition: GlobalScales.h:131
long long GlobalScales::getLUT_CalMuEta ( const std::string &  lutName,
int  element 
) const

Definition at line 168 of file GlobalScales.cc.

References m_lut_CalMuEta, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

169 {
170  long long value = 0;
171 
172  if(element < 0) {
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;
176  } else {
177  value = m_lut_CalMuEta.find(lutName)->second.at(element);
178  }
179  return value;
180 }
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:141
long long GlobalScales::getLUT_CalMuPhi ( const std::string &  lutName,
int  element 
) const

Definition at line 182 of file GlobalScales.cc.

References m_lut_CalMuPhi, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

183 {
184  long long value = 0;
185 
186  if(element < 0) {
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;
190  } else {
191  value = m_lut_CalMuPhi.find(lutName)->second.at(element);
192  }
193  return value;
194 }
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:142
Definition: value.py:1
long long GlobalScales::getLUT_Cos ( const std::string &  lutName,
int  element 
) const

Definition at line 422 of file GlobalScales.cc.

References m_lut_Cos, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

423 {
424  long long value = 0;
425 
426  //first check whether this LUT exists
427  if(m_lut_Cos.find(lutName) == m_lut_Cos.end()) {
428  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " exists! " << std::endl;
429  return value;
430  }
431 
432  if(element < 0) {
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;
436  } else {
437  value = m_lut_Cos.find(lutName)->second.at(element);
438  }
439  return value;
440 }
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:147
long long GlobalScales::getLUT_DeltaEta ( std::string  lutName,
int  element 
) const

Definition at line 197 of file GlobalScales.cc.

References m_lut_DeltaEta, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

198 {
199  long long value = 0;
200 
201  //first check whether this LUT exists
202  if(m_lut_DeltaEta.find(lutName) == m_lut_DeltaEta.end()) {
203 
204  //does not exist. Check for oppoisite ordering
205  std::size_t pos = lutName.find("-");
206  std::string name = lutName.substr(pos+1);
207  name += "-";
208  name += lutName.substr(0,pos);
209 
210  //check again
211  if(m_lut_DeltaEta.find(name) == m_lut_DeltaEta.end()) {
212  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " or " << name << " exists! " << std::endl;
213  return value;
214  } else {
215  lutName = name;
216  }
217  }
218 
219  if(element < 0) {
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;
223  } else {
224  value = m_lut_DeltaEta.find(lutName)->second.at(element);
225  }
226  return value;
227 }
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:143
long long GlobalScales::getLUT_DeltaEta_Cosh ( std::string  lutName,
int  element 
) const

Definition at line 334 of file GlobalScales.cc.

References m_lut_Cosh, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

335 {
336  long long value = 0;
337 
338 
339  //first check whether this LUT exists
340  if(m_lut_Cosh.find(lutName) == m_lut_Cosh.end()) {
341 
342  //does not exist. Check for oppoisite ordering
343  std::size_t pos = lutName.find("-");
344  std::string name = lutName.substr(pos+1);
345  name += "-";
346  name += lutName.substr(0,pos);
347 
348  //check again
349  if(m_lut_Cosh.find(name) == m_lut_Cosh.end()) {
350  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " or " << name << " exists! " << std::endl;
351  return value;
352  } else {
353  lutName = name;
354  }
355  }
356 
357  if(element < 0) {
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;
361  } else {
362  value = m_lut_Cosh.find(lutName)->second.at(element);
363  }
364  return value;
365 }
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:146
long long GlobalScales::getLUT_DeltaPhi ( std::string  lutName,
int  element 
) const

Definition at line 253 of file GlobalScales.cc.

References m_lut_DeltaPhi, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

254 {
255  long long value = 0;
256 
257  //first check whether this LUT exists
258  if(m_lut_DeltaPhi.find(lutName) == m_lut_DeltaPhi.end()) {
259 
260  //does not exist. Check for oppoisite ordering
261  std::size_t pos = lutName.find("-");
262  std::string name = lutName.substr(pos+1);
263  name += "-";
264  name += lutName.substr(0,pos);
265 
266  //check again
267  if(m_lut_DeltaPhi.find(name) == m_lut_DeltaPhi.end()) {
268  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " or " << name << " exists! " << std::endl;
269  return value;
270  } else {
271  lutName = name;
272  }
273  }
274 
275  if(element < 0) {
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;
279  } else {
280  value = m_lut_DeltaPhi.find(lutName)->second.at(element);
281  }
282  return value;
283 }
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:144
Definition: value.py:1
long long GlobalScales::getLUT_DeltaPhi_Cos ( std::string  lutName,
int  element 
) const

Definition at line 390 of file GlobalScales.cc.

References m_lut_Cos, m_lut_DeltaPhi, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

391 {
392  long long value = 0;
393 
394  //first check whether this LUT exists
395  if(m_lut_Cos.find(lutName) == m_lut_Cos.end()) {
396 
397  //does not exist. Check for oppoisite ordering
398  std::size_t pos = lutName.find("-");
399  std::string name = lutName.substr(pos+1);
400  name += "-";
401  name += lutName.substr(0,pos);
402 
403  //check again
404  if(m_lut_Cos.find(name) == m_lut_Cos.end()) {
405  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " or " << name << " exists! " << std::endl;
406  return value;
407  } else {
408  lutName = name;
409  }
410  }
411 
412  if(element < 0) {
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;
416  } else {
417  value = m_lut_Cos.find(lutName)->second.at(element);
418  }
419  return value;
420 }
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:144
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:147
long long GlobalScales::getLUT_Pt ( const std::string &  lutName,
int  element 
) const

Definition at line 309 of file GlobalScales.cc.

References m_lut_Pt, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

310 {
311  long long value = 0;
312 
313  if(element < 0) {
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;
317  } else {
318  value = m_lut_Pt.find(lutName)->second.at(element);
319  }
320  return value;
321 }
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:145
Definition: value.py:1
long long GlobalScales::getLUT_Sin ( const std::string &  lutName,
int  element 
) const

Definition at line 442 of file GlobalScales.cc.

References m_lut_Sin, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

443 {
444  long long value = 0;
445 
446  //first check whether this LUT exists
447  if(m_lut_Sin.find(lutName) == m_lut_Sin.end()) {
448  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " exists! " << std::endl;
449  return value;
450  }
451 
452  if(element < 0) {
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;
456  } else {
457  value = m_lut_Sin.find(lutName)->second.at(element);
458  }
459  return value;
460 }
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:148
Definition: value.py:1
const ScaleParameters& l1t::GlobalScales::getMUScales ( ) const
inline

Definition at line 83 of file GlobalScales.h.

References m_muScales.

Referenced by l1t::CorrCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().

83 { return m_muScales; }
ScaleParameters m_muScales
Definition: GlobalScales.h:129
unsigned int GlobalScales::getPrec_Cos ( const std::string &  lutName) const

Definition at line 486 of file GlobalScales.cc.

References m_Prec_Sin, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

487 {
488  unsigned int value = 0;
489 
490  if(m_Prec_Sin.find(lutName) != m_Prec_Sin.end()) {
491  value = m_Prec_Sin.find(lutName)->second;
492  } else {
493  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Sin not found" << std::endl;
494  }
495  return value;
496 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_Sin
Definition: GlobalScales.h:156
unsigned int GlobalScales::getPrec_DeltaEta ( const std::string &  lutName) const

Definition at line 228 of file GlobalScales.cc.

References m_Prec_DeltaEta, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

229 {
230  unsigned int value = 0;
231 
232  if(m_Prec_DeltaEta.find(lutName) != m_Prec_DeltaEta.end()) {
233  value = m_Prec_DeltaEta.find(lutName)->second;
234  } else {
235 
236  //does not exist. Check for oppoisite ordering
237  std::size_t pos = lutName.find("-");
238  std::string name = lutName.substr(pos+1);
239  name += "-";
240  name += lutName.substr(0,pos);
241 
242  //check again
243  if(m_Prec_DeltaEta.find(name) != m_Prec_DeltaEta.end()) {
244  value = m_Prec_DeltaEta.find(name)->second;
245  } else {
246  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for DeltaEta not found" << std::endl;
247  }
248  }
249  return value;
250 }
std::map< std::string, unsigned int > m_Prec_DeltaEta
Definition: GlobalScales.h:151
Definition: value.py:1
unsigned int GlobalScales::getPrec_DeltaEta_Cosh ( const std::string &  lutName) const

Definition at line 366 of file GlobalScales.cc.

References m_Prec_Cosh, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

367 {
368  unsigned int value = 0;
369 
370  if(m_Prec_Cosh.find(lutName) != m_Prec_Cosh.end()) {
371  value = m_Prec_Cosh.find(lutName)->second;
372  } else {
373 
374  //does not exist. Check for oppoisite ordering
375  std::size_t pos = lutName.find("-");
376  std::string name = lutName.substr(pos+1);
377  name += "-";
378  name += lutName.substr(0,pos);
379 
380  //check again
381  if(m_Prec_Cosh.find(name) != m_Prec_Cosh.end()) {
382  value = m_Prec_Cosh.find(name)->second;
383  } else {
384  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Cosh not found" << std::endl;
385  }
386  }
387  return value;
388 }
std::map< std::string, unsigned int > m_Prec_Cosh
Definition: GlobalScales.h:154
Definition: value.py:1
unsigned int GlobalScales::getPrec_DeltaPhi ( const std::string &  lutName) const

Definition at line 284 of file GlobalScales.cc.

References m_Prec_DeltaPhi, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

285 {
286  unsigned int value = 0;
287 
288  if(m_Prec_DeltaPhi.find(lutName) != m_Prec_DeltaPhi.end()) {
289  value = m_Prec_DeltaPhi.find(lutName)->second;
290  } else {
291 
292  //does not exist. Check for oppoisite ordering
293  std::size_t pos = lutName.find("-");
294  std::string name = lutName.substr(pos+1);
295  name += "-";
296  name += lutName.substr(0,pos);
297 
298  //check again
299  if(m_Prec_DeltaPhi.find(name) != m_Prec_DeltaPhi.end()) {
300  value = m_Prec_DeltaPhi.find(name)->second;
301  } else {
302  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for DeltaPhi not found" << std::endl;
303  }
304  }
305  return value;
306 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_DeltaPhi
Definition: GlobalScales.h:152
unsigned int GlobalScales::getPrec_DeltaPhi_Cos ( const std::string &  lutName) const

Definition at line 462 of file GlobalScales.cc.

References m_Prec_Cos, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

463 {
464  unsigned int value = 0;
465 
466  if(m_Prec_Cos.find(lutName) != m_Prec_Cos.end()) {
467  value = m_Prec_Cos.find(lutName)->second;
468  } else {
469 
470  //does not exist. Check for oppoisite ordering
471  std::size_t pos = lutName.find("-");
472  std::string name = lutName.substr(pos+1);
473  name += "-";
474  name += lutName.substr(0,pos);
475 
476  //check again
477  if(m_Prec_Cos.find(name) != m_Prec_Cos.end()) {
478  value = m_Prec_Cos.find(name)->second;
479  } else {
480  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Cos not found" << std::endl;
481  }
482  }
483  return value;
484 }
std::map< std::string, unsigned int > m_Prec_Cos
Definition: GlobalScales.h:155
Definition: value.py:1
unsigned int GlobalScales::getPrec_Pt ( const std::string &  lutName) const

Definition at line 322 of file GlobalScales.cc.

References m_Prec_Pt, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

323 {
324  unsigned int value = 0;
325 
326  if(m_Prec_Pt.find(lutName) != m_Prec_Pt.end()) {
327  value = m_Prec_Pt.find(lutName)->second;
328  } else {
329  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Pt not found" << std::endl;
330  }
331  return value;
332 }
std::map< std::string, unsigned int > m_Prec_Pt
Definition: GlobalScales.h:153
Definition: value.py:1
unsigned int GlobalScales::getPrec_Sin ( const std::string &  lutName) const

Definition at line 498 of file GlobalScales.cc.

References m_Prec_Sin, and relativeConstraints::value.

Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and getHTMScales().

499 {
500  unsigned int value = 0;
501 
502  if(m_Prec_Sin.find(lutName) != m_Prec_Sin.end()) {
503  value = m_Prec_Sin.find(lutName)->second;
504  } else {
505  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Sin not found" << std::endl;
506  }
507  return value;
508 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_Sin
Definition: GlobalScales.h:156
std::string GlobalScales::getScalesName ( ) const
virtual

Definition at line 36 of file GlobalScales.cc.

References m_ScaleSetName.

Referenced by l1t::GlobalBoard::runGTL(), and setScalesName().

36 { return m_ScaleSetName;}
std::string m_ScaleSetName
Definition: GlobalScales.h:125
const ScaleParameters& l1t::GlobalScales::getTAUScales ( ) const
inline

Definition at line 85 of file GlobalScales.h.

References m_tauScales.

Referenced by l1t::CorrCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().

85 { return m_tauScales; }
ScaleParameters m_tauScales
Definition: GlobalScales.h:128
void GlobalScales::print ( std::ostream &  myCout) const
virtual

Definition at line 613 of file GlobalScales.cc.

References m_egScales, m_etmScales, m_ettScales, m_htmScales, m_httScales, m_jetScales, m_lut_CalMuEta, m_lut_CalMuPhi, m_lut_Cos, m_lut_Cosh, m_lut_DeltaEta, m_lut_DeltaPhi, m_lut_Pt, m_lut_Sin, m_muScales, m_tauScales, genParticles_cff::map, printScale(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by getHTMScales().

614 {
615 
616  myCout << "\n ************* L1T Global Scales ************" << std::endl;
617 
618 
619  myCout << " Muon Scales: " << std::endl;
620  printScale(m_muScales,myCout);
621 
622  myCout << " EG Scales: "<< std::endl;
623  printScale(m_egScales,myCout);
624 
625  myCout << " Tau Scales: "<< std::endl;
626  printScale(m_tauScales,myCout);
627 
628  myCout << " Jet Scales: "<< std::endl;
629  printScale(m_jetScales,myCout);
630 
631 
632  myCout << " HTT Scales: "<< std::endl;
633  printScale(m_httScales,myCout);
634 
635  myCout << " ETT Scales: "<< std::endl;
636  printScale(m_ettScales,myCout);
637 
638  myCout << " HTM Scales: "<< std::endl;
639  printScale(m_htmScales,myCout);
640 
641  myCout << " ETM Scales: "<< std::endl;
642  printScale(m_etmScales,myCout);
643 
644 
645  myCout << std::endl;
646  myCout << " LUTs Stored: " << std::endl;
647  myCout << " CalMuEta:";
648  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuEta.begin(); itr != m_lut_CalMuEta.end(); itr++) {
649  myCout << " " << itr->first;
650  }
651  myCout << std::endl;
652 
653  myCout << " CalMuPhi:";
654  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuPhi.begin(); itr != m_lut_CalMuPhi.end(); itr++) {
655  myCout << " " << itr->first;
656  }
657  myCout << std::endl;
658 
659  myCout << " DeltaEta:";
660  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaEta.begin(); itr != m_lut_DeltaEta.end(); itr++) {
661  myCout << " " << itr->first;
662  }
663  myCout << std::endl;
664 
665  myCout << " DeltaPhi:";
666  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaPhi.begin(); itr != m_lut_DeltaPhi.end(); itr++) {
667  myCout << " " << itr->first;
668  }
669  myCout << std::endl;
670 
671  myCout << " Cos: ";
672  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cos.begin(); itr != m_lut_Cos.end(); itr++) {
673  myCout << " " << itr->first;
674  }
675  myCout << std::endl;
676 
677  myCout << " Sin: ";
678  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Sin.begin(); itr != m_lut_Sin.end(); itr++) {
679  myCout << " " << itr->first;
680  }
681  myCout << std::endl;
682 
683  myCout << " Cosh: ";
684  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cosh.begin(); itr != m_lut_Cosh.end(); itr++) {
685  myCout << " " << itr->first;
686  }
687  myCout << std::endl;
688 
689  myCout << " Pt: ";
690  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Pt.begin(); itr != m_lut_Pt.end(); itr++) {
691  myCout << " " << itr->first;
692  }
693  myCout << std::endl;
694 
695 }
ScaleParameters m_ettScales
Definition: GlobalScales.h:133
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:144
ScaleParameters m_tauScales
Definition: GlobalScales.h:128
ScaleParameters m_jetScales
Definition: GlobalScales.h:131
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:142
ScaleParameters m_etmScales
Definition: GlobalScales.h:136
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:148
ScaleParameters m_egScales
Definition: GlobalScales.h:127
ScaleParameters m_htmScales
Definition: GlobalScales.h:138
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:145
ScaleParameters m_httScales
Definition: GlobalScales.h:135
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:143
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:141
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:146
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:147
virtual void printScale(ScaleParameters scale, std::ostream &myCout) const
ScaleParameters m_muScales
Definition: GlobalScales.h:129
void GlobalScales::printScale ( ScaleParameters  scale,
std::ostream &  myCout 
) const
virtual

Definition at line 696 of file GlobalScales.cc.

References l1t::GlobalScales::ScaleParameters::etaBins, l1t::GlobalScales::ScaleParameters::etaMax, l1t::GlobalScales::ScaleParameters::etaMin, l1t::GlobalScales::ScaleParameters::etaStep, l1t::GlobalScales::ScaleParameters::etBins, l1t::GlobalScales::ScaleParameters::etMax, l1t::GlobalScales::ScaleParameters::etMin, l1t::GlobalScales::ScaleParameters::etStep, mps_fire::i, createfilelist::int, l1t::GlobalScales::ScaleParameters::phiBins, l1t::GlobalScales::ScaleParameters::phiMax, l1t::GlobalScales::ScaleParameters::phiMin, and l1t::GlobalScales::ScaleParameters::phiStep.

Referenced by getHTMScales(), and print().

697 {
698 
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()
703  << std::endl;
704  myCout << "\n";
705  for (int i=0; i< int(scale.etBins.size()); i++){
706  std::pair<double, double> binEdges = scale.etBins.at(i);
707  myCout << " etBins[" << i << "]\trange:\t" << binEdges.first << " - " << binEdges.second << std::endl;
708  }
709 
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()
714  << std::endl;
715  myCout << "\n";
716  for (int i=0; i< int(scale.phiBins.size()); i++){
717  std::pair<double, double> binEdges = scale.phiBins.at(i);
718  myCout << " phiBins[" << i << "]\trange:\t" << binEdges.first << " - " << binEdges.second << std::endl;
719  }
720 
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()
725  << std::endl;
726  myCout << "\n";
727  for (int i=0; i< int(scale.etaBins.size()); i++){
728  std::pair<double, double> binEdges = scale.etaBins.at(i);
729  myCout << " etaBins[" << i << "]\trange:\t" << binEdges.first << " - " << binEdges.second << std::endl;
730  }
731 
732 }
void l1t::GlobalScales::setEGScales ( ScaleParameters scales)
inline

Definition at line 58 of file GlobalScales.h.

References m_egScales.

Referenced by l1t::TriggerMenuParser::parseScales().

58 { m_egScales = scales; }
ScaleParameters m_egScales
Definition: GlobalScales.h:127
void l1t::GlobalScales::setETMHfScales ( ScaleParameters scales)
inline

Definition at line 68 of file GlobalScales.h.

References m_etmHfScales.

Referenced by l1t::TriggerMenuParser::parseScales().

68 { m_etmHfScales = scales; }
ScaleParameters m_etmHfScales
Definition: GlobalScales.h:137
void l1t::GlobalScales::setETMScales ( ScaleParameters scales)
inline

Definition at line 67 of file GlobalScales.h.

References m_etmScales.

Referenced by l1t::TriggerMenuParser::parseScales().

67 { m_etmScales = scales; }
ScaleParameters m_etmScales
Definition: GlobalScales.h:136
void l1t::GlobalScales::setETTEmScales ( ScaleParameters scales)
inline

Definition at line 65 of file GlobalScales.h.

References m_ettEmScales.

Referenced by l1t::TriggerMenuParser::parseScales().

65 { m_ettEmScales = scales; }
ScaleParameters m_ettEmScales
Definition: GlobalScales.h:134
void l1t::GlobalScales::setETTScales ( ScaleParameters scales)
inline

Definition at line 64 of file GlobalScales.h.

References m_ettScales.

Referenced by l1t::TriggerMenuParser::parseScales().

64 { m_ettScales = scales; }
ScaleParameters m_ettScales
Definition: GlobalScales.h:133
void l1t::GlobalScales::setHTMScales ( ScaleParameters scales)
inline
void l1t::GlobalScales::setHTTScales ( ScaleParameters scales)
inline

Definition at line 66 of file GlobalScales.h.

References m_httScales.

Referenced by l1t::TriggerMenuParser::parseScales().

66 { m_httScales = scales; }
ScaleParameters m_httScales
Definition: GlobalScales.h:135
void l1t::GlobalScales::setJetScales ( ScaleParameters scales)
inline

Definition at line 62 of file GlobalScales.h.

References m_jetScales.

Referenced by l1t::TriggerMenuParser::parseScales().

62 { m_jetScales = scales; }
ScaleParameters m_jetScales
Definition: GlobalScales.h:131
void GlobalScales::setLUT_CalMuEta ( const std::string &  lutName,
std::vector< long long >  lut 
)
virtual

Definition at line 39 of file GlobalScales.cc.

References LogTrace, m_lut_CalMuEta, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::TriggerMenuParser::parseCalMuEta_LUTS(), and setHTMScales().

40 {
41  if (m_lut_CalMuEta.count(lutName) != 0) {
42  LogTrace("GlobalScales") << " LUT \"" << lutName
43  << "\"already exists in the LUT map- not inserted!" << std::endl;
44  return;
45  }
46 
47  // Insert this LUT into the Table
48  m_lut_CalMuEta.insert(std::map<std::string, std::vector<long long>>::value_type(lutName,lut));
49 
50  return;
51 
52 }
#define LogTrace(id)
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:141
void GlobalScales::setLUT_CalMuPhi ( const std::string &  lutName,
std::vector< long long >  lut 
)
virtual

Definition at line 55 of file GlobalScales.cc.

References LogTrace, m_lut_CalMuPhi, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::TriggerMenuParser::parseCalMuPhi_LUTS(), and setHTMScales().

56 {
57  if (m_lut_CalMuPhi.count(lutName) != 0) {
58  LogTrace("GlobalScales") << " LUT \"" << lutName
59  << "\"already exists in the LUT map- not inserted!" << std::endl;
60  return;
61  }
62 
63  // Insert this LUT into the Table
64  m_lut_CalMuPhi.insert(std::map<std::string, std::vector<long long>>::value_type(lutName,lut));
65 
66  return;
67 
68 }
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:142
#define LogTrace(id)
void GlobalScales::setLUT_Cos ( const std::string &  lutName,
std::vector< long long >  lut,
unsigned int  precision 
)
virtual

Definition at line 135 of file GlobalScales.cc.

References LogTrace, m_lut_Cos, m_Prec_Cos, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::TriggerMenuParser::parseDeltaPhi_Cos_LUTS(), l1t::TriggerMenuParser::parsePhi_Trig_LUTS(), and setHTMScales().

136 {
137  if (m_lut_Cos.count(lutName) != 0) {
138  LogTrace("GlobalScales") << " LUT \"" << lutName
139  << "\"already exists in the LUT map- not inserted!" << std::endl;
140  return;
141  }
142 
143  // Insert this LUT into the Table
144  m_lut_Cos.insert(std::map<std::string, std::vector<long long>>::value_type(lutName,lut));
146 
147  return;
148 
149 }
std::map< std::string, unsigned int > m_Prec_Cos
Definition: GlobalScales.h:155
#define LogTrace(id)
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:147
void GlobalScales::setLUT_Cosh ( const std::string &  lutName,
std::vector< long long >  lut,
unsigned int  precision 
)
virtual

Definition at line 119 of file GlobalScales.cc.

References LogTrace, m_lut_Cosh, m_Prec_Cosh, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::TriggerMenuParser::parseDeltaEta_Cosh_LUTS(), and setHTMScales().

120 {
121  if (m_lut_Cosh.count(lutName) != 0) {
122  LogTrace("GlobalScales") << " LUT \"" << lutName
123  << "\"already exists in the LUT map- not inserted!" << std::endl;
124  return;
125  }
126 
127  // Insert this LUT into the Table
128  m_lut_Cosh.insert(std::map<std::string, std::vector<long long>>::value_type(lutName,lut));
130 
131  return;
132 
133 }
std::map< std::string, unsigned int > m_Prec_Cosh
Definition: GlobalScales.h:154
#define LogTrace(id)
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:146
void GlobalScales::setLUT_DeltaEta ( const std::string &  lutName,
std::vector< long long >  lut,
unsigned int  precision 
)
virtual

Definition at line 71 of file GlobalScales.cc.

References LogTrace, m_lut_DeltaEta, m_Prec_DeltaEta, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::TriggerMenuParser::parseDeltaEta_Cosh_LUTS(), and setHTMScales().

72 {
73  if (m_lut_DeltaEta.count(lutName) != 0) {
74  LogTrace("GlobalScales") << " LUT \"" << lutName
75  << "\"already exists in the LUT map- not inserted!" << std::endl;
76  return;
77  }
78 
79  // Insert this LUT into the Table
80  m_lut_DeltaEta.insert(std::map<std::string, std::vector<long long>>::value_type(lutName,lut));
82 
83  return;
84 
85 }
std::map< std::string, unsigned int > m_Prec_DeltaEta
Definition: GlobalScales.h:151
#define LogTrace(id)
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:143
void GlobalScales::setLUT_DeltaPhi ( const std::string &  lutName,
std::vector< long long >  lut,
unsigned int  precision 
)
virtual

Definition at line 87 of file GlobalScales.cc.

References LogTrace, m_lut_DeltaPhi, m_Prec_DeltaPhi, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::TriggerMenuParser::parseDeltaPhi_Cos_LUTS(), and setHTMScales().

88 {
89  if (m_lut_DeltaPhi.count(lutName) != 0) {
90  LogTrace("GlobalScales") << " LUT \"" << lutName
91  << "\"already exists in the LUT map- not inserted!" << std::endl;
92  return;
93  }
94 
95  // Insert this LUT into the Table
96  m_lut_DeltaPhi.insert(std::map<std::string, std::vector<long long>>::value_type(lutName,lut));
98 
99  return;
100 
101 }
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:144
#define LogTrace(id)
std::map< std::string, unsigned int > m_Prec_DeltaPhi
Definition: GlobalScales.h:152
void GlobalScales::setLUT_Pt ( const std::string &  lutName,
std::vector< long long >  lut,
unsigned int  precision 
)
virtual

Definition at line 103 of file GlobalScales.cc.

References LogTrace, m_lut_Pt, m_Prec_Pt, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::TriggerMenuParser::parsePt_LUTS(), and setHTMScales().

104 {
105  if (m_lut_Pt.count(lutName) != 0) {
106  LogTrace("GlobalScales") << " LUT \"" << lutName
107  << "\"already exists in the LUT map- not inserted!" << std::endl;
108  return;
109  }
110 
111  // Insert this LUT into the Table
112  m_lut_Pt.insert(std::map<std::string, std::vector<long long>>::value_type(lutName,lut));
114 
115  return;
116 
117 }
std::map< std::string, unsigned int > m_Prec_Pt
Definition: GlobalScales.h:153
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:145
#define LogTrace(id)
void GlobalScales::setLUT_Sin ( const std::string &  lutName,
std::vector< long long >  lut,
unsigned int  precision 
)
virtual

Definition at line 151 of file GlobalScales.cc.

References LogTrace, m_lut_Sin, m_Prec_Sin, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::TriggerMenuParser::parsePhi_Trig_LUTS(), and setHTMScales().

152 {
153  if (m_lut_Sin.count(lutName) != 0) {
154  LogTrace("GlobalScales") << " LUT \"" << lutName
155  << "\"already exists in the LUT map- not inserted!" << std::endl;
156  return;
157  }
158 
159  // Insert this LUT into the Table
160  m_lut_Sin.insert(std::map<std::string, std::vector<long long>>::value_type(lutName,lut));
162 
163  return;
164 
165 }
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:148
#define LogTrace(id)
std::map< std::string, unsigned int > m_Prec_Sin
Definition: GlobalScales.h:156
void l1t::GlobalScales::setMuonScales ( ScaleParameters scales)
inline

Definition at line 60 of file GlobalScales.h.

References m_muScales.

Referenced by l1t::TriggerMenuParser::parseScales().

60 { m_muScales = scales; }
ScaleParameters m_muScales
Definition: GlobalScales.h:129
void l1t::GlobalScales::setScalesName ( const std::string &  name)
inline
void l1t::GlobalScales::setTauScales ( ScaleParameters scales)
inline

Definition at line 59 of file GlobalScales.h.

References m_tauScales.

Referenced by l1t::TriggerMenuParser::parseScales().

59 { m_tauScales = scales; }
ScaleParameters m_tauScales
Definition: GlobalScales.h:128

Member Data Documentation

ScaleParameters l1t::GlobalScales::m_egScales
private

Definition at line 127 of file GlobalScales.h.

Referenced by getEGScales(), print(), and setEGScales().

ScaleParameters l1t::GlobalScales::m_etmHfScales
private

Definition at line 137 of file GlobalScales.h.

Referenced by getETMHFScales(), and setETMHfScales().

ScaleParameters l1t::GlobalScales::m_etmScales
private

Definition at line 136 of file GlobalScales.h.

Referenced by getETMScales(), print(), and setETMScales().

ScaleParameters l1t::GlobalScales::m_ettEmScales
private

Definition at line 134 of file GlobalScales.h.

Referenced by getETTEmScales(), and setETTEmScales().

ScaleParameters l1t::GlobalScales::m_ettScales
private

Definition at line 133 of file GlobalScales.h.

Referenced by getETTScales(), print(), and setETTScales().

ScaleParameters l1t::GlobalScales::m_htmScales
private

Definition at line 138 of file GlobalScales.h.

Referenced by getHTMScales(), print(), and setHTMScales().

ScaleParameters l1t::GlobalScales::m_httScales
private

Definition at line 135 of file GlobalScales.h.

Referenced by getHTTScales(), print(), and setHTTScales().

ScaleParameters l1t::GlobalScales::m_jetScales
private

Definition at line 131 of file GlobalScales.h.

Referenced by getJETScales(), print(), and setJetScales().

std::map<std::string, std::vector<long long> > l1t::GlobalScales::m_lut_CalMuEta
private

Definition at line 141 of file GlobalScales.h.

Referenced by dumpAllLUTs(), dumpLUT(), getLUT_CalMuEta(), print(), and setLUT_CalMuEta().

std::map<std::string, std::vector<long long> > l1t::GlobalScales::m_lut_CalMuPhi
private

Definition at line 142 of file GlobalScales.h.

Referenced by dumpAllLUTs(), dumpLUT(), getLUT_CalMuPhi(), print(), and setLUT_CalMuPhi().

std::map<std::string, std::vector<long long> > l1t::GlobalScales::m_lut_Cos
private

Definition at line 147 of file GlobalScales.h.

Referenced by dumpAllLUTs(), dumpLUT(), getLUT_Cos(), getLUT_DeltaPhi_Cos(), print(), and setLUT_Cos().

std::map<std::string, std::vector<long long> > l1t::GlobalScales::m_lut_Cosh
private

Definition at line 146 of file GlobalScales.h.

Referenced by dumpAllLUTs(), dumpLUT(), getLUT_DeltaEta_Cosh(), print(), and setLUT_Cosh().

std::map<std::string, std::vector<long long> > l1t::GlobalScales::m_lut_DeltaEta
private

Definition at line 143 of file GlobalScales.h.

Referenced by dumpAllLUTs(), dumpLUT(), getLUT_DeltaEta(), print(), and setLUT_DeltaEta().

std::map<std::string, std::vector<long long> > l1t::GlobalScales::m_lut_DeltaPhi
private
std::map<std::string, std::vector<long long> > l1t::GlobalScales::m_lut_Pt
private

Definition at line 145 of file GlobalScales.h.

Referenced by dumpAllLUTs(), dumpLUT(), getLUT_Pt(), print(), and setLUT_Pt().

std::map<std::string, std::vector<long long> > l1t::GlobalScales::m_lut_Sin
private

Definition at line 148 of file GlobalScales.h.

Referenced by dumpAllLUTs(), dumpLUT(), getLUT_Sin(), print(), and setLUT_Sin().

ScaleParameters l1t::GlobalScales::m_muScales
private

Definition at line 129 of file GlobalScales.h.

Referenced by getMUScales(), print(), and setMuonScales().

std::map<std::string, unsigned int > l1t::GlobalScales::m_Prec_Cos
private

Definition at line 155 of file GlobalScales.h.

Referenced by dumpLUT(), getPrec_DeltaPhi_Cos(), and setLUT_Cos().

std::map<std::string, unsigned int > l1t::GlobalScales::m_Prec_Cosh
private

Definition at line 154 of file GlobalScales.h.

Referenced by dumpLUT(), getPrec_DeltaEta_Cosh(), and setLUT_Cosh().

std::map<std::string, unsigned int > l1t::GlobalScales::m_Prec_DeltaEta
private

Definition at line 151 of file GlobalScales.h.

Referenced by dumpLUT(), getPrec_DeltaEta(), and setLUT_DeltaEta().

std::map<std::string, unsigned int > l1t::GlobalScales::m_Prec_DeltaPhi
private

Definition at line 152 of file GlobalScales.h.

Referenced by dumpLUT(), getPrec_DeltaPhi(), and setLUT_DeltaPhi().

std::map<std::string, unsigned int > l1t::GlobalScales::m_Prec_Pt
private

Definition at line 153 of file GlobalScales.h.

Referenced by dumpLUT(), getPrec_Pt(), and setLUT_Pt().

std::map<std::string, unsigned int > l1t::GlobalScales::m_Prec_Sin
private

Definition at line 156 of file GlobalScales.h.

Referenced by dumpLUT(), getPrec_Cos(), getPrec_Sin(), and setLUT_Sin().

std::string l1t::GlobalScales::m_ScaleSetName
private

Definition at line 125 of file GlobalScales.h.

Referenced by getScalesName(), and setScalesName().

ScaleParameters l1t::GlobalScales::m_tauScales
private

Definition at line 128 of file GlobalScales.h.

Referenced by getTAUScales(), print(), and setTauScales().