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
 
ScaleParameters getEGScales () const
 
ScaleParameters getETMHFScales () const
 
ScaleParameters getETMScales () const
 
ScaleParameters getETTEmScales () const
 
ScaleParameters getETTScales () const
 
ScaleParameters getHTMScales () const
 
ScaleParameters getHTTScales () const
 
ScaleParameters getJETScales () 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
 
ScaleParameters getMUScales () 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
 
ScaleParameters getTAUScales () 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 494 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().

495 {
496 
497  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuEta.begin(); itr != m_lut_CalMuEta.end(); itr++) {
498  dumpLUT(myCout,1,itr->first);
499  }
500 
501  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuPhi.begin(); itr != m_lut_CalMuPhi.end(); itr++) {
502  dumpLUT(myCout,2,itr->first);
503  }
504 
505 
506  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaEta.begin(); itr != m_lut_DeltaEta.end(); itr++) {
507  dumpLUT(myCout,3,itr->first);
508  }
509 
510 
511  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaPhi.begin(); itr != m_lut_DeltaPhi.end(); itr++) {
512  dumpLUT(myCout,4,itr->first);
513  }
514 
515 
516  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cosh.begin(); itr != m_lut_Cosh.end(); itr++) {
517  dumpLUT(myCout,5,itr->first);
518  }
519 
520 
521  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cos.begin(); itr != m_lut_Cos.end(); itr++) {
522  dumpLUT(myCout,6,itr->first);
523  }
524 
525  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Sin.begin(); itr != m_lut_Sin.end(); itr++) {
526  dumpLUT(myCout,7,itr->first);
527  }
528 
529 
530  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Pt.begin(); itr != m_lut_Pt.end(); itr++) {
531  dumpLUT(myCout,8,itr->first);
532  }
533 }
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 535 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().

536 {
537  std::vector<long long> dumpV;
538  unsigned int prec = 0;
539  std::string type = "Null";
540  switch(LUTtype) {
541  case 1: {
542  dumpV = m_lut_CalMuEta.find(name)->second;
543  type = "Cal-Mu Eta";
544  break;
545  }
546  case 2: {
547  dumpV = m_lut_CalMuPhi.find(name)->second;
548  type = "Cal-Mu Phi";
549  break;
550  }
551  case 3: {
552  dumpV = m_lut_DeltaEta.find(name)->second;
553  prec = m_Prec_DeltaEta.find(name)->second;
554  type = "Delta Eta";
555  break;
556  }
557  case 4: {
558  dumpV = m_lut_DeltaPhi.find(name)->second;
559  prec = m_Prec_DeltaPhi.find(name)->second;
560  type = "Delta Phi";
561  break;
562  }
563  case 5: {
564  dumpV = m_lut_Cosh.find(name)->second;
565  prec = m_Prec_Cosh.find(name)->second;
566  type = "Cosh";
567  break;
568  }
569  case 6: {
570  dumpV = m_lut_Cos.find(name)->second;
571  prec = m_Prec_Cos.find(name)->second;
572  type = "Cos";
573  break;
574  }
575  case 7: {
576  dumpV = m_lut_Sin.find(name)->second;
577  prec = m_Prec_Sin.find(name)->second;
578  type = "Sin";
579  break;
580  }
581  case 8: {
582  dumpV = m_lut_Pt.find(name)->second;
583  prec = m_Prec_Pt.find(name)->second;
584  type = "Pt";
585  break;
586  }
587  }
588 
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;
594  }
595 }
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
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
ScaleParameters l1t::GlobalScales::getETMHFScales ( ) const
inline
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
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
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
ScaleParameters l1t::GlobalScales::getHTMScales ( ) const
inline
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
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 < (int)m_lut_CalMuEta.find(lutName)->second.size()) {
173  value = m_lut_CalMuEta.find(lutName)->second.at(element);
174  } else {
175  edm::LogError("GlobalScales") << "Warning: Element Requested " << element << " too large for CalMuEta LUT (" << lutName <<") size = " << m_lut_CalMuEta.find(lutName)->second.size() << std::endl;
176  }
177  return value;
178 }
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 180 of file GlobalScales.cc.

References m_lut_CalMuPhi, and relativeConstraints::value.

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

181 {
182  long long value = 0;
183 
184  if(element < (int)m_lut_CalMuPhi.find(lutName)->second.size()) {
185  value = m_lut_CalMuPhi.find(lutName)->second.at(element);
186  } else {
187  edm::LogError("GlobalScales") << "Warning: Element Requested " << element << " too large for CalMuPhi LUT (" << lutName <<") size = " << m_lut_CalMuPhi.find(lutName)->second.size() << std::endl;
188  }
189  return value;
190 }
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 410 of file GlobalScales.cc.

References m_lut_Cos, and relativeConstraints::value.

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

411 {
412  long long value = 0;
413 
414  //first check whether this LUT exists
415  if(m_lut_Cos.find(lutName) == m_lut_Cos.end()) {
416  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " exists! " << std::endl;
417  return value;
418  }
419 
420  if(element < (int)m_lut_Cos.find(lutName)->second.size()) {
421  value = m_lut_Cos.find(lutName)->second.at(element);
422  } else {
423  edm::LogError("GlobalScales") << "Warning: Element Requested " << element << " too large for Cos LUT (" << lutName <<") size = " << m_lut_Cos.find(lutName)->second.size() << std::endl;
424  }
425  return value;
426 }
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 193 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().

194 {
195  long long value = 0;
196 
197  //first check whether this LUT exists
198  if(m_lut_DeltaEta.find(lutName) == m_lut_DeltaEta.end()) {
199 
200  //does not exist. Check for oppoisite ordering
201  std::size_t pos = lutName.find("-");
202  std::string name = lutName.substr(pos+1);
203  name += "-";
204  name += lutName.substr(0,pos);
205 
206  //check again
207  if(m_lut_DeltaEta.find(name) == m_lut_DeltaEta.end()) {
208  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " or " << name << " exists! " << std::endl;
209  return value;
210  } else {
211  lutName = name;
212  }
213  }
214 
215 
216  if(element < (int)m_lut_DeltaEta.find(lutName)->second.size()) {
217  value = m_lut_DeltaEta.find(lutName)->second.at(element);
218  } else {
219  edm::LogError("GlobalScales") << "Warning: Element Requested " << element << " too large for DeltaEta LUT (" << lutName <<") size = " << m_lut_DeltaEta.find(lutName)->second.size() << std::endl;
220  }
221  return value;
222 }
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 326 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().

327 {
328  long long value = 0;
329 
330 
331  //first check whether this LUT exists
332  if(m_lut_Cosh.find(lutName) == m_lut_Cosh.end()) {
333 
334  //does not exist. Check for oppoisite ordering
335  std::size_t pos = lutName.find("-");
336  std::string name = lutName.substr(pos+1);
337  name += "-";
338  name += lutName.substr(0,pos);
339 
340  //check again
341  if(m_lut_Cosh.find(name) == m_lut_Cosh.end()) {
342  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " or " << name << " exists! " << std::endl;
343  return value;
344  } else {
345  lutName = name;
346  }
347  }
348 
349  if(element < (int)m_lut_Cosh.find(lutName)->second.size()) {
350  value = m_lut_Cosh.find(lutName)->second.at(element);
351  } else {
352  edm::LogError("GlobalScales") << "Warning: Element Requested " << element << " too large for Cosh LUT (" << lutName <<") size = " << m_lut_Cosh.find(lutName)->second.size() << std::endl;
353  }
354  return value;
355 }
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 248 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().

249 {
250  long long value = 0;
251 
252  //first check whether this LUT exists
253  if(m_lut_DeltaPhi.find(lutName) == m_lut_DeltaPhi.end()) {
254 
255  //does not exist. Check for oppoisite ordering
256  std::size_t pos = lutName.find("-");
257  std::string name = lutName.substr(pos+1);
258  name += "-";
259  name += lutName.substr(0,pos);
260 
261  //check again
262  if(m_lut_DeltaPhi.find(name) == m_lut_DeltaPhi.end()) {
263  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " or " << name << " exists! " << std::endl;
264  return value;
265  } else {
266  lutName = name;
267  }
268  }
269 
270 
271  if(element < (int)m_lut_DeltaPhi.find(lutName)->second.size()) {
272  value = m_lut_DeltaPhi.find(lutName)->second.at(element);
273  } else {
274  edm::LogError("GlobalScales") << "Warning: Element Requested " << element << " too large for DeltaPhi LUT (" << lutName <<") size = " << m_lut_DeltaPhi.find(lutName)->second.size() << std::endl;
275  }
276  return value;
277 }
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 380 of file GlobalScales.cc.

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

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

381 {
382  long long value = 0;
383 
384  //first check whether this LUT exists
385  if(m_lut_Cos.find(lutName) == m_lut_Cos.end()) {
386 
387  //does not exist. Check for oppoisite ordering
388  std::size_t pos = lutName.find("-");
389  std::string name = lutName.substr(pos+1);
390  name += "-";
391  name += lutName.substr(0,pos);
392 
393  //check again
394  if(m_lut_Cos.find(name) == m_lut_Cos.end()) {
395  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " or " << name << " exists! " << std::endl;
396  return value;
397  } else {
398  lutName = name;
399  }
400  }
401 
402  if(element < (int)m_lut_Cos.find(lutName)->second.size()) {
403  value = m_lut_Cos.find(lutName)->second.at(element);
404  } else {
405  edm::LogError("GlobalScales") << "Warning: Element Requested " << element << " too large for Cos LUT (" << lutName <<") size = " << m_lut_Cos.find(lutName)->second.size() << std::endl;
406  }
407  return value;
408 }
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 303 of file GlobalScales.cc.

References m_lut_Pt, and relativeConstraints::value.

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

304 {
305  long long value = 0;
306 
307  if(element < (int)m_lut_Pt.find(lutName)->second.size()) {
308  value = m_lut_Pt.find(lutName)->second.at(element);
309  } else {
310  edm::LogError("GlobalScales") << "Warning: Element Requested " << element << " too large for Pt LUT (" << lutName <<") size = " << m_lut_Pt.find(lutName)->second.size() << std::endl;
311  }
312  return value;
313 }
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 428 of file GlobalScales.cc.

References m_lut_Sin, and relativeConstraints::value.

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

429 {
430  long long value = 0;
431 
432  //first check whether this LUT exists
433  if(m_lut_Sin.find(lutName) == m_lut_Sin.end()) {
434  edm::LogError("GlobalScales") << "Warning: No LUT by name "<< lutName << " exists! " << std::endl;
435  return value;
436  }
437 
438  if(element < (int)m_lut_Sin.find(lutName)->second.size()) {
439  value = m_lut_Sin.find(lutName)->second.at(element);
440  } else {
441  edm::LogError("GlobalScales") << "Warning: Element Requested " << element << " too large for Sin LUT (" << lutName <<") size = " << m_lut_Sin.find(lutName)->second.size() << std::endl;
442  }
443  return value;
444 }
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:148
Definition: value.py:1
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 470 of file GlobalScales.cc.

References m_Prec_Sin, and relativeConstraints::value.

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

471 {
472  unsigned int value = 0;
473 
474  if(m_Prec_Sin.find(lutName) != m_Prec_Sin.end()) {
475  value = m_Prec_Sin.find(lutName)->second;
476  } else {
477  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Sin not found" << std::endl;
478  }
479  return value;
480 }
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 223 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().

224 {
225  unsigned int value = 0;
226 
227  if(m_Prec_DeltaEta.find(lutName) != m_Prec_DeltaEta.end()) {
228  value = m_Prec_DeltaEta.find(lutName)->second;
229  } else {
230 
231  //does not exist. Check for oppoisite ordering
232  std::size_t pos = lutName.find("-");
233  std::string name = lutName.substr(pos+1);
234  name += "-";
235  name += lutName.substr(0,pos);
236 
237  //check again
238  if(m_Prec_DeltaEta.find(name) != m_Prec_DeltaEta.end()) {
239  value = m_Prec_DeltaEta.find(name)->second;
240  } else {
241  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for DeltaEta not found" << std::endl;
242  }
243  }
244  return value;
245 }
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 356 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().

357 {
358  unsigned int value = 0;
359 
360  if(m_Prec_Cosh.find(lutName) != m_Prec_Cosh.end()) {
361  value = m_Prec_Cosh.find(lutName)->second;
362  } else {
363 
364  //does not exist. Check for oppoisite ordering
365  std::size_t pos = lutName.find("-");
366  std::string name = lutName.substr(pos+1);
367  name += "-";
368  name += lutName.substr(0,pos);
369 
370  //check again
371  if(m_Prec_Cosh.find(name) != m_Prec_Cosh.end()) {
372  value = m_Prec_Cosh.find(name)->second;
373  } else {
374  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Cosh not found" << std::endl;
375  }
376  }
377  return value;
378 }
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 278 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().

279 {
280  unsigned int value = 0;
281 
282  if(m_Prec_DeltaPhi.find(lutName) != m_Prec_DeltaPhi.end()) {
283  value = m_Prec_DeltaPhi.find(lutName)->second;
284  } else {
285 
286  //does not exist. Check for oppoisite ordering
287  std::size_t pos = lutName.find("-");
288  std::string name = lutName.substr(pos+1);
289  name += "-";
290  name += lutName.substr(0,pos);
291 
292  //check again
293  if(m_Prec_DeltaPhi.find(name) != m_Prec_DeltaPhi.end()) {
294  value = m_Prec_DeltaPhi.find(name)->second;
295  } else {
296  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for DeltaPhi not found" << std::endl;
297  }
298  }
299  return value;
300 }
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 446 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().

447 {
448  unsigned int value = 0;
449 
450  if(m_Prec_Cos.find(lutName) != m_Prec_Cos.end()) {
451  value = m_Prec_Cos.find(lutName)->second;
452  } else {
453 
454  //does not exist. Check for oppoisite ordering
455  std::size_t pos = lutName.find("-");
456  std::string name = lutName.substr(pos+1);
457  name += "-";
458  name += lutName.substr(0,pos);
459 
460  //check again
461  if(m_Prec_Cos.find(name) != m_Prec_Cos.end()) {
462  value = m_Prec_Cos.find(name)->second;
463  } else {
464  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Cos not found" << std::endl;
465  }
466  }
467  return value;
468 }
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 314 of file GlobalScales.cc.

References m_Prec_Pt, and relativeConstraints::value.

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

315 {
316  unsigned int value = 0;
317 
318  if(m_Prec_Pt.find(lutName) != m_Prec_Pt.end()) {
319  value = m_Prec_Pt.find(lutName)->second;
320  } else {
321  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Pt not found" << std::endl;
322  }
323  return value;
324 }
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 482 of file GlobalScales.cc.

References m_Prec_Sin, and relativeConstraints::value.

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

483 {
484  unsigned int value = 0;
485 
486  if(m_Prec_Sin.find(lutName) != m_Prec_Sin.end()) {
487  value = m_Prec_Sin.find(lutName)->second;
488  } else {
489  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Sin not found" << std::endl;
490  }
491  return value;
492 }
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
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 597 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().

598 {
599 
600  myCout << "\n ************* L1T Global Scales ************" << std::endl;
601 
602 
603  myCout << " Muon Scales: " << std::endl;
604  printScale(m_muScales,myCout);
605 
606  myCout << " EG Scales: "<< std::endl;
607  printScale(m_egScales,myCout);
608 
609  myCout << " Tau Scales: "<< std::endl;
610  printScale(m_tauScales,myCout);
611 
612  myCout << " Jet Scales: "<< std::endl;
613  printScale(m_jetScales,myCout);
614 
615 
616  myCout << " HTT Scales: "<< std::endl;
617  printScale(m_httScales,myCout);
618 
619  myCout << " ETT Scales: "<< std::endl;
620  printScale(m_ettScales,myCout);
621 
622  myCout << " HTM Scales: "<< std::endl;
623  printScale(m_htmScales,myCout);
624 
625  myCout << " ETM Scales: "<< std::endl;
626  printScale(m_etmScales,myCout);
627 
628 
629  myCout << std::endl;
630  myCout << " LUTs Stored: " << std::endl;
631  myCout << " CalMuEta:";
632  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuEta.begin(); itr != m_lut_CalMuEta.end(); itr++) {
633  myCout << " " << itr->first;
634  }
635  myCout << std::endl;
636 
637  myCout << " CalMuPhi:";
638  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuPhi.begin(); itr != m_lut_CalMuPhi.end(); itr++) {
639  myCout << " " << itr->first;
640  }
641  myCout << std::endl;
642 
643  myCout << " DeltaEta:";
644  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaEta.begin(); itr != m_lut_DeltaEta.end(); itr++) {
645  myCout << " " << itr->first;
646  }
647  myCout << std::endl;
648 
649  myCout << " DeltaPhi:";
650  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaPhi.begin(); itr != m_lut_DeltaPhi.end(); itr++) {
651  myCout << " " << itr->first;
652  }
653  myCout << std::endl;
654 
655  myCout << " Cos: ";
656  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cos.begin(); itr != m_lut_Cos.end(); itr++) {
657  myCout << " " << itr->first;
658  }
659  myCout << std::endl;
660 
661  myCout << " Sin: ";
662  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Sin.begin(); itr != m_lut_Sin.end(); itr++) {
663  myCout << " " << itr->first;
664  }
665  myCout << std::endl;
666 
667  myCout << " Cosh: ";
668  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cosh.begin(); itr != m_lut_Cosh.end(); itr++) {
669  myCout << " " << itr->first;
670  }
671  myCout << std::endl;
672 
673  myCout << " Pt: ";
674  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Pt.begin(); itr != m_lut_Pt.end(); itr++) {
675  myCout << " " << itr->first;
676  }
677  myCout << std::endl;
678 
679 }
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 680 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, l1t::GlobalScales::ScaleParameters::phiBins, l1t::GlobalScales::ScaleParameters::phiMax, l1t::GlobalScales::ScaleParameters::phiMin, and l1t::GlobalScales::ScaleParameters::phiStep.

Referenced by getHTMScales(), and print().

681 {
682 
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()
695  << std::endl;
696 
697 }
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

Definition at line 144 of file GlobalScales.h.

Referenced by dumpAllLUTs(), dumpLUT(), getLUT_DeltaPhi(), print(), and setLUT_DeltaPhi().

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().