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 22 of file GlobalScales.cc.

22 {}
GlobalScales::~GlobalScales ( )
virtual

Definition at line 25 of file GlobalScales.cc.

25 {}

Member Function Documentation

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

Definition at line 479 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().

479  {
480  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuEta.begin();
481  itr != m_lut_CalMuEta.end();
482  itr++) {
483  dumpLUT(myCout, 1, itr->first);
484  }
485 
486  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuPhi.begin();
487  itr != m_lut_CalMuPhi.end();
488  itr++) {
489  dumpLUT(myCout, 2, itr->first);
490  }
491 
492  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaEta.begin();
493  itr != m_lut_DeltaEta.end();
494  itr++) {
495  dumpLUT(myCout, 3, itr->first);
496  }
497 
498  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaPhi.begin();
499  itr != m_lut_DeltaPhi.end();
500  itr++) {
501  dumpLUT(myCout, 4, itr->first);
502  }
503 
504  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cosh.begin(); itr != m_lut_Cosh.end();
505  itr++) {
506  dumpLUT(myCout, 5, itr->first);
507  }
508 
509  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cos.begin(); itr != m_lut_Cos.end();
510  itr++) {
511  dumpLUT(myCout, 6, itr->first);
512  }
513 
514  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Sin.begin(); itr != m_lut_Sin.end();
515  itr++) {
516  dumpLUT(myCout, 7, itr->first);
517  }
518 
519  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Pt.begin(); itr != m_lut_Pt.end();
520  itr++) {
521  dumpLUT(myCout, 8, itr->first);
522  }
523 }
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:132
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:130
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:136
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:133
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:131
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:129
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:134
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:135
void GlobalScales::dumpLUT ( std::ostream &  myCout,
int  LUTtype,
std::string  name 
) const
virtual

Definition at line 525 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().

525  {
526  std::vector<long long> dumpV;
527  unsigned int prec = 0;
528  std::string type = "Null";
529  switch (LUTtype) {
530  case 1: {
531  dumpV = m_lut_CalMuEta.find(name)->second;
532  type = "Cal-Mu Eta";
533  break;
534  }
535  case 2: {
536  dumpV = m_lut_CalMuPhi.find(name)->second;
537  type = "Cal-Mu Phi";
538  break;
539  }
540  case 3: {
541  dumpV = m_lut_DeltaEta.find(name)->second;
542  prec = m_Prec_DeltaEta.find(name)->second;
543  type = "Delta Eta";
544  break;
545  }
546  case 4: {
547  dumpV = m_lut_DeltaPhi.find(name)->second;
548  prec = m_Prec_DeltaPhi.find(name)->second;
549  type = "Delta Phi";
550  break;
551  }
552  case 5: {
553  dumpV = m_lut_Cosh.find(name)->second;
554  prec = m_Prec_Cosh.find(name)->second;
555  type = "Cosh";
556  break;
557  }
558  case 6: {
559  dumpV = m_lut_Cos.find(name)->second;
560  prec = m_Prec_Cos.find(name)->second;
561  type = "Cos";
562  break;
563  }
564  case 7: {
565  dumpV = m_lut_Sin.find(name)->second;
566  prec = m_Prec_Sin.find(name)->second;
567  type = "Sin";
568  break;
569  }
570  case 8: {
571  dumpV = m_lut_Pt.find(name)->second;
572  prec = m_Prec_Pt.find(name)->second;
573  type = "Pt";
574  break;
575  }
576  }
577 
578  myCout << "=========================================" << std::endl;
579  myCout << " LUT: " << type << " Table: " << name << " Size = " << dumpV.size() << " Precision " << prec
580  << std::endl;
581  myCout << "=========================================" << std::endl;
582  for (int i = 0; i < (int)dumpV.size(); i++) {
583  myCout << " Element " << i << " " << dumpV.at(i) << std::endl;
584  }
585 }
type
Definition: HCALResponse.h:21
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:132
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:130
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:136
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:133
std::map< std::string, unsigned int > m_Prec_Cos
Definition: GlobalScales.h:143
std::map< std::string, unsigned int > m_Prec_DeltaEta
Definition: GlobalScales.h:139
std::map< std::string, unsigned int > m_Prec_DeltaPhi
Definition: GlobalScales.h:140
std::map< std::string, unsigned int > m_Prec_Pt
Definition: GlobalScales.h:141
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:131
std::map< std::string, unsigned int > m_Prec_Cosh
Definition: GlobalScales.h:142
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:129
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:134
std::map< std::string, unsigned int > m_Prec_Sin
Definition: GlobalScales.h:144
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:135
const ScaleParameters& l1t::GlobalScales::getEGScales ( ) const
inline

Definition at line 78 of file GlobalScales.h.

References m_egScales.

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

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

Definition at line 83 of file GlobalScales.h.

References m_etmScales.

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

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

Definition at line 82 of file GlobalScales.h.

References m_ettEmScales.

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

Definition at line 81 of file GlobalScales.h.

References m_ettScales.

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

Definition at line 85 of file GlobalScales.h.

References m_httScales.

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

Definition at line 80 of file GlobalScales.h.

References m_jetScales.

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

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

Definition at line 143 of file GlobalScales.cc.

References m_lut_CalMuEta, and relativeConstraints::value.

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

143  {
144  long long value = 0;
145 
146  if (element < 0) {
147  edm::LogError("GlobalScales") << "Error: Negative index, " << element << ", requested for CalMuEta LUT ( "
148  << lutName << ")" << std::endl;
149  } else if (element >= (int)m_lut_CalMuEta.find(lutName)->second.size()) {
150  edm::LogError("GlobalScales") << "Error: Element Requested " << element << " too large for CalMuEta LUT ("
151  << lutName << ") size = " << m_lut_CalMuEta.find(lutName)->second.size() << std::endl;
152  } else {
153  value = m_lut_CalMuEta.find(lutName)->second.at(element);
154  }
155  return value;
156 }
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:129
long long GlobalScales::getLUT_CalMuPhi ( const std::string &  lutName,
int  element 
) const

Definition at line 158 of file GlobalScales.cc.

References m_lut_CalMuPhi, and relativeConstraints::value.

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

158  {
159  long long value = 0;
160 
161  if (element < 0) {
162  edm::LogError("GlobalScales") << "Error: Negative index, " << element << ", requested for CalMuPhi LUT ( "
163  << lutName << ")" << std::endl;
164  } else if (element >= (int)m_lut_CalMuPhi.find(lutName)->second.size()) {
165  edm::LogError("GlobalScales") << "Error: Element Requested " << element << " too large for CalMuPhi LUT ("
166  << lutName << ") size = " << m_lut_CalMuPhi.find(lutName)->second.size() << std::endl;
167  } else {
168  value = m_lut_CalMuPhi.find(lutName)->second.at(element);
169  }
170  return value;
171 }
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:130
Definition: value.py:1
long long GlobalScales::getLUT_Cos ( const std::string &  lutName,
int  element 
) const

Definition at line 393 of file GlobalScales.cc.

References m_lut_Cos, and relativeConstraints::value.

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

393  {
394  long long value = 0;
395 
396  //first check whether this LUT exists
397  if (m_lut_Cos.find(lutName) == m_lut_Cos.end()) {
398  edm::LogError("GlobalScales") << "Warning: No LUT by name " << lutName << " exists! " << std::endl;
399  return value;
400  }
401 
402  if (element < 0) {
403  edm::LogError("GlobalScales") << "Error: Negative index, " << element << ", requested for Cos LUT ( " << lutName
404  << ")" << std::endl;
405  } else if (element >= (int)m_lut_Cos.find(lutName)->second.size()) {
406  edm::LogError("GlobalScales") << "Error: Element Requested " << element << " too large for Cos LUT (" << lutName
407  << ") size = " << m_lut_Cos.find(lutName)->second.size() << std::endl;
408  } else {
409  value = m_lut_Cos.find(lutName)->second.at(element);
410  }
411  return value;
412 }
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:135
long long GlobalScales::getLUT_DeltaEta ( std::string  lutName,
int  element 
) const

Definition at line 173 of file GlobalScales.cc.

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

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

173  {
174  long long value = 0;
175 
176  //first check whether this LUT exists
177  if (m_lut_DeltaEta.find(lutName) == m_lut_DeltaEta.end()) {
178  //does not exist. Check for oppoisite ordering
179  std::size_t pos = lutName.find("-");
180  std::string name = lutName.substr(pos + 1);
181  name += "-";
182  name += lutName.substr(0, pos);
183 
184  //check again
185  if (m_lut_DeltaEta.find(name) == m_lut_DeltaEta.end()) {
186  edm::LogError("GlobalScales") << "Warning: No LUT by name " << lutName << " or " << name << " exists! "
187  << std::endl;
188  return value;
189  } else {
190  lutName = name;
191  }
192  }
193 
194  if (element < 0) {
195  edm::LogError("GlobalScales") << "Error: Negative index, " << element << ", requested for DeltaEta LUT ( "
196  << lutName << ")" << std::endl;
197  } else if (element >= (int)m_lut_DeltaEta.find(lutName)->second.size()) {
198  edm::LogError("GlobalScales") << "Error: Element Requested " << element << " too large for DeltaEta LUT ("
199  << lutName << ") size = " << m_lut_DeltaEta.find(lutName)->second.size() << std::endl;
200  } else {
201  value = m_lut_DeltaEta.find(lutName)->second.at(element);
202  }
203  return value;
204 }
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:131
long long GlobalScales::getLUT_DeltaEta_Cosh ( std::string  lutName,
int  element 
) const

Definition at line 306 of file GlobalScales.cc.

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

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

306  {
307  long long value = 0;
308 
309  //first check whether this LUT exists
310  if (m_lut_Cosh.find(lutName) == m_lut_Cosh.end()) {
311  //does not exist. Check for oppoisite ordering
312  std::size_t pos = lutName.find("-");
313  std::string name = lutName.substr(pos + 1);
314  name += "-";
315  name += lutName.substr(0, pos);
316 
317  //check again
318  if (m_lut_Cosh.find(name) == m_lut_Cosh.end()) {
319  edm::LogError("GlobalScales") << "Warning: No LUT by name " << lutName << " or " << name << " exists! "
320  << std::endl;
321  return value;
322  } else {
323  lutName = name;
324  }
325  }
326 
327  if (element < 0) {
328  edm::LogError("GlobalScales") << "Error: Negative index, " << element << ", requested for Cosh LUT ( " << lutName
329  << ")" << std::endl;
330  } else if (element >= (int)m_lut_Cosh.find(lutName)->second.size()) {
331  edm::LogError("GlobalScales") << "Error: Element Requested " << element << " too large for Cosh LUT (" << lutName
332  << ") size = " << m_lut_Cosh.find(lutName)->second.size() << std::endl;
333  } else {
334  value = m_lut_Cosh.find(lutName)->second.at(element);
335  }
336  return value;
337 }
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:134
long long GlobalScales::getLUT_DeltaPhi ( std::string  lutName,
int  element 
) const

Definition at line 227 of file GlobalScales.cc.

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

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

227  {
228  long long value = 0;
229 
230  //first check whether this LUT exists
231  if (m_lut_DeltaPhi.find(lutName) == m_lut_DeltaPhi.end()) {
232  //does not exist. Check for oppoisite ordering
233  std::size_t pos = lutName.find("-");
234  std::string name = lutName.substr(pos + 1);
235  name += "-";
236  name += lutName.substr(0, pos);
237 
238  //check again
239  if (m_lut_DeltaPhi.find(name) == m_lut_DeltaPhi.end()) {
240  edm::LogError("GlobalScales") << "Warning: No LUT by name " << lutName << " or " << name << " exists! "
241  << std::endl;
242  return value;
243  } else {
244  lutName = name;
245  }
246  }
247 
248  if (element < 0) {
249  edm::LogError("GlobalScales") << "Error: Negative index, " << element << ", requested for DeltaPhi LUT ( "
250  << lutName << ")" << std::endl;
251  } else if (element >= (int)m_lut_DeltaPhi.find(lutName)->second.size()) {
252  edm::LogError("GlobalScales") << "Error: Element Requested " << element << " too large for DeltaPhi LUT ("
253  << lutName << ") size = " << m_lut_DeltaPhi.find(lutName)->second.size() << std::endl;
254  } else {
255  value = m_lut_DeltaPhi.find(lutName)->second.at(element);
256  }
257  return value;
258 }
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:132
Definition: value.py:1
long long GlobalScales::getLUT_DeltaPhi_Cos ( std::string  lutName,
int  element 
) const

Definition at line 360 of file GlobalScales.cc.

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

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

360  {
361  long long value = 0;
362 
363  //first check whether this LUT exists
364  if (m_lut_Cos.find(lutName) == m_lut_Cos.end()) {
365  //does not exist. Check for oppoisite ordering
366  std::size_t pos = lutName.find("-");
367  std::string name = lutName.substr(pos + 1);
368  name += "-";
369  name += lutName.substr(0, pos);
370 
371  //check again
372  if (m_lut_Cos.find(name) == m_lut_Cos.end()) {
373  edm::LogError("GlobalScales") << "Warning: No LUT by name " << lutName << " or " << name << " exists! "
374  << std::endl;
375  return value;
376  } else {
377  lutName = name;
378  }
379  }
380 
381  if (element < 0) {
382  edm::LogError("GlobalScales") << "Error: Negative index, " << element << ", requested for Cos LUT ( " << lutName
383  << ")" << std::endl;
384  } else if (element >= (int)m_lut_DeltaPhi.find(lutName)->second.size()) {
385  edm::LogError("GlobalScales") << "Error: Element Requested " << element << " too large for Cos LUT (" << lutName
386  << ") size = " << m_lut_Cos.find(lutName)->second.size() << std::endl;
387  } else {
388  value = m_lut_Cos.find(lutName)->second.at(element);
389  }
390  return value;
391 }
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:132
Definition: value.py:1
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:135
long long GlobalScales::getLUT_Pt ( const std::string &  lutName,
int  element 
) const

Definition at line 281 of file GlobalScales.cc.

References m_lut_Pt, and relativeConstraints::value.

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

281  {
282  long long value = 0;
283 
284  if (element < 0) {
285  edm::LogError("GlobalScales") << "Error: Negative index, " << element << ", requested for Pt LUT ( " << lutName
286  << ")" << std::endl;
287  } else if (element >= (int)m_lut_Pt.find(lutName)->second.size()) {
288  edm::LogError("GlobalScales") << "Error: Element Requested " << element << " too large for Pt LUT (" << lutName
289  << ") size = " << m_lut_Pt.find(lutName)->second.size() << std::endl;
290  } else {
291  value = m_lut_Pt.find(lutName)->second.at(element);
292  }
293  return value;
294 }
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:133
Definition: value.py:1
long long GlobalScales::getLUT_Sin ( const std::string &  lutName,
int  element 
) const

Definition at line 414 of file GlobalScales.cc.

References m_lut_Sin, and relativeConstraints::value.

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

414  {
415  long long value = 0;
416 
417  //first check whether this LUT exists
418  if (m_lut_Sin.find(lutName) == m_lut_Sin.end()) {
419  edm::LogError("GlobalScales") << "Warning: No LUT by name " << lutName << " exists! " << std::endl;
420  return value;
421  }
422 
423  if (element < 0) {
424  edm::LogError("GlobalScales") << "Error: Negative index, " << element << ", requested for Sin LUT ( " << lutName
425  << ")" << std::endl;
426  } else if (element >= (int)m_lut_Sin.find(lutName)->second.size()) {
427  edm::LogError("GlobalScales") << "Error: Element Requested " << element << " too large for Sin LUT (" << lutName
428  << ") size = " << m_lut_Sin.find(lutName)->second.size() << std::endl;
429  } else {
430  value = m_lut_Sin.find(lutName)->second.at(element);
431  }
432  return value;
433 }
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:136
Definition: value.py:1
const ScaleParameters& l1t::GlobalScales::getMUScales ( ) const
inline

Definition at line 77 of file GlobalScales.h.

References m_muScales.

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

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

Definition at line 457 of file GlobalScales.cc.

References m_Prec_Sin, and relativeConstraints::value.

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

457  {
458  unsigned int value = 0;
459 
460  if (m_Prec_Sin.find(lutName) != m_Prec_Sin.end()) {
461  value = m_Prec_Sin.find(lutName)->second;
462  } else {
463  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Sin not found" << std::endl;
464  }
465  return value;
466 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_Sin
Definition: GlobalScales.h:144
unsigned int GlobalScales::getPrec_DeltaEta ( const std::string &  lutName) const

Definition at line 205 of file GlobalScales.cc.

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

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

205  {
206  unsigned int value = 0;
207 
208  if (m_Prec_DeltaEta.find(lutName) != m_Prec_DeltaEta.end()) {
209  value = m_Prec_DeltaEta.find(lutName)->second;
210  } else {
211  //does not exist. Check for oppoisite ordering
212  std::size_t pos = lutName.find("-");
213  std::string name = lutName.substr(pos + 1);
214  name += "-";
215  name += lutName.substr(0, pos);
216 
217  //check again
218  if (m_Prec_DeltaEta.find(name) != m_Prec_DeltaEta.end()) {
219  value = m_Prec_DeltaEta.find(name)->second;
220  } else {
221  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for DeltaEta not found" << std::endl;
222  }
223  }
224  return value;
225 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_DeltaEta
Definition: GlobalScales.h:139
unsigned int GlobalScales::getPrec_DeltaEta_Cosh ( const std::string &  lutName) const

Definition at line 338 of file GlobalScales.cc.

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

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

338  {
339  unsigned int value = 0;
340 
341  if (m_Prec_Cosh.find(lutName) != m_Prec_Cosh.end()) {
342  value = m_Prec_Cosh.find(lutName)->second;
343  } else {
344  //does not exist. Check for oppoisite ordering
345  std::size_t pos = lutName.find("-");
346  std::string name = lutName.substr(pos + 1);
347  name += "-";
348  name += lutName.substr(0, pos);
349 
350  //check again
351  if (m_Prec_Cosh.find(name) != m_Prec_Cosh.end()) {
352  value = m_Prec_Cosh.find(name)->second;
353  } else {
354  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Cosh not found" << std::endl;
355  }
356  }
357  return value;
358 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_Cosh
Definition: GlobalScales.h:142
unsigned int GlobalScales::getPrec_DeltaPhi ( const std::string &  lutName) const

Definition at line 259 of file GlobalScales.cc.

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

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

259  {
260  unsigned int value = 0;
261 
262  if (m_Prec_DeltaPhi.find(lutName) != m_Prec_DeltaPhi.end()) {
263  value = m_Prec_DeltaPhi.find(lutName)->second;
264  } else {
265  //does not exist. Check for oppoisite ordering
266  std::size_t pos = lutName.find("-");
267  std::string name = lutName.substr(pos + 1);
268  name += "-";
269  name += lutName.substr(0, pos);
270 
271  //check again
272  if (m_Prec_DeltaPhi.find(name) != m_Prec_DeltaPhi.end()) {
273  value = m_Prec_DeltaPhi.find(name)->second;
274  } else {
275  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for DeltaPhi not found" << std::endl;
276  }
277  }
278  return value;
279 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_DeltaPhi
Definition: GlobalScales.h:140
unsigned int GlobalScales::getPrec_DeltaPhi_Cos ( const std::string &  lutName) const

Definition at line 435 of file GlobalScales.cc.

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

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

435  {
436  unsigned int value = 0;
437 
438  if (m_Prec_Cos.find(lutName) != m_Prec_Cos.end()) {
439  value = m_Prec_Cos.find(lutName)->second;
440  } else {
441  //does not exist. Check for oppoisite ordering
442  std::size_t pos = lutName.find("-");
443  std::string name = lutName.substr(pos + 1);
444  name += "-";
445  name += lutName.substr(0, pos);
446 
447  //check again
448  if (m_Prec_Cos.find(name) != m_Prec_Cos.end()) {
449  value = m_Prec_Cos.find(name)->second;
450  } else {
451  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Cos not found" << std::endl;
452  }
453  }
454  return value;
455 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_Cos
Definition: GlobalScales.h:143
unsigned int GlobalScales::getPrec_Pt ( const std::string &  lutName) const

Definition at line 295 of file GlobalScales.cc.

References m_Prec_Pt, and relativeConstraints::value.

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

295  {
296  unsigned int value = 0;
297 
298  if (m_Prec_Pt.find(lutName) != m_Prec_Pt.end()) {
299  value = m_Prec_Pt.find(lutName)->second;
300  } else {
301  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Pt not found" << std::endl;
302  }
303  return value;
304 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_Pt
Definition: GlobalScales.h:141
unsigned int GlobalScales::getPrec_Sin ( const std::string &  lutName) const

Definition at line 468 of file GlobalScales.cc.

References m_Prec_Sin, and relativeConstraints::value.

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

468  {
469  unsigned int value = 0;
470 
471  if (m_Prec_Sin.find(lutName) != m_Prec_Sin.end()) {
472  value = m_Prec_Sin.find(lutName)->second;
473  } else {
474  edm::LogError("GlobalScales") << "Warning: LUT " << lutName << " for Sin not found" << std::endl;
475  }
476  return value;
477 }
Definition: value.py:1
std::map< std::string, unsigned int > m_Prec_Sin
Definition: GlobalScales.h:144
std::string GlobalScales::getScalesName ( ) const
virtual

Definition at line 27 of file GlobalScales.cc.

References m_ScaleSetName.

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

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

Definition at line 79 of file GlobalScales.h.

References m_tauScales.

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

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

Definition at line 587 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().

587  {
588  myCout << "\n ************* L1T Global Scales ************" << std::endl;
589 
590  myCout << " Muon Scales: " << std::endl;
591  printScale(m_muScales, myCout);
592 
593  myCout << " EG Scales: " << std::endl;
594  printScale(m_egScales, myCout);
595 
596  myCout << " Tau Scales: " << std::endl;
597  printScale(m_tauScales, myCout);
598 
599  myCout << " Jet Scales: " << std::endl;
600  printScale(m_jetScales, myCout);
601 
602  myCout << " HTT Scales: " << std::endl;
603  printScale(m_httScales, myCout);
604 
605  myCout << " ETT Scales: " << std::endl;
606  printScale(m_ettScales, myCout);
607 
608  myCout << " HTM Scales: " << std::endl;
609  printScale(m_htmScales, myCout);
610 
611  myCout << " ETM Scales: " << std::endl;
612  printScale(m_etmScales, myCout);
613 
614  myCout << std::endl;
615  myCout << " LUTs Stored: " << std::endl;
616  myCout << " CalMuEta:";
617  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuEta.begin();
618  itr != m_lut_CalMuEta.end();
619  itr++) {
620  myCout << " " << itr->first;
621  }
622  myCout << std::endl;
623 
624  myCout << " CalMuPhi:";
625  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_CalMuPhi.begin();
626  itr != m_lut_CalMuPhi.end();
627  itr++) {
628  myCout << " " << itr->first;
629  }
630  myCout << std::endl;
631 
632  myCout << " DeltaEta:";
633  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaEta.begin();
634  itr != m_lut_DeltaEta.end();
635  itr++) {
636  myCout << " " << itr->first;
637  }
638  myCout << std::endl;
639 
640  myCout << " DeltaPhi:";
641  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_DeltaPhi.begin();
642  itr != m_lut_DeltaPhi.end();
643  itr++) {
644  myCout << " " << itr->first;
645  }
646  myCout << std::endl;
647 
648  myCout << " Cos: ";
649  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cos.begin(); itr != m_lut_Cos.end();
650  itr++) {
651  myCout << " " << itr->first;
652  }
653  myCout << std::endl;
654 
655  myCout << " Sin: ";
656  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Sin.begin(); itr != m_lut_Sin.end();
657  itr++) {
658  myCout << " " << itr->first;
659  }
660  myCout << std::endl;
661 
662  myCout << " Cosh: ";
663  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Cosh.begin(); itr != m_lut_Cosh.end();
664  itr++) {
665  myCout << " " << itr->first;
666  }
667  myCout << std::endl;
668 
669  myCout << " Pt: ";
670  for (std::map<std::string, std::vector<long long>>::const_iterator itr = m_lut_Pt.begin(); itr != m_lut_Pt.end();
671  itr++) {
672  myCout << " " << itr->first;
673  }
674  myCout << std::endl;
675 }
ScaleParameters m_ettScales
Definition: GlobalScales.h:121
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:132
ScaleParameters m_tauScales
Definition: GlobalScales.h:116
ScaleParameters m_jetScales
Definition: GlobalScales.h:119
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:130
ScaleParameters m_etmScales
Definition: GlobalScales.h:124
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:136
ScaleParameters m_egScales
Definition: GlobalScales.h:115
ScaleParameters m_htmScales
Definition: GlobalScales.h:126
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:133
ScaleParameters m_httScales
Definition: GlobalScales.h:123
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:131
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:129
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:134
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:135
virtual void printScale(ScaleParameters scale, std::ostream &myCout) const
ScaleParameters m_muScales
Definition: GlobalScales.h:117
void GlobalScales::printScale ( ScaleParameters  scale,
std::ostream &  myCout 
) const
virtual

Definition at line 676 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().

676  {
677  myCout << " Pt Min = " << std::setw(10) << scale.etMin << " Pt Max = " << std::setw(10) << scale.etMax
678  << " Pt Step = " << std::setw(10) << scale.etStep << " Number = " << std::setw(10)
679  << scale.etBins.size() << std::endl;
680  myCout << "\n";
681  for (int i = 0; i < int(scale.etBins.size()); i++) {
682  std::pair<double, double> binEdges = scale.etBins.at(i);
683  myCout << " etBins[" << i << "]\trange:\t" << binEdges.first << " - " << binEdges.second << std::endl;
684  }
685 
686  myCout << "\n Phi Min = " << std::setw(10) << scale.phiMin << " Phi Max = " << std::setw(10) << scale.phiMax
687  << " Phi Step = " << std::setw(10) << scale.phiStep << " Number = " << std::setw(10)
688  << scale.phiBins.size() << std::endl;
689  myCout << "\n";
690  for (int i = 0; i < int(scale.phiBins.size()); i++) {
691  std::pair<double, double> binEdges = scale.phiBins.at(i);
692  myCout << " phiBins[" << i << "]\trange:\t" << binEdges.first << " - " << binEdges.second << std::endl;
693  }
694 
695  myCout << "\n Eta Min = " << std::setw(10) << scale.etaMin << " Eta Max = " << std::setw(10) << scale.etaMax
696  << " Eta Step = " << std::setw(10) << scale.etaStep << " Number = " << std::setw(10)
697  << scale.etaBins.size() << std::endl;
698  myCout << "\n";
699  for (int i = 0; i < int(scale.etaBins.size()); i++) {
700  std::pair<double, double> binEdges = scale.etaBins.at(i);
701  myCout << " etaBins[" << i << "]\trange:\t" << binEdges.first << " - " << binEdges.second << std::endl;
702  }
703 }
void l1t::GlobalScales::setEGScales ( ScaleParameters scales)
inline

Definition at line 52 of file GlobalScales.h.

References m_egScales.

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

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

Definition at line 62 of file GlobalScales.h.

References m_etmHfScales.

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

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

Definition at line 61 of file GlobalScales.h.

References m_etmScales.

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

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

Definition at line 59 of file GlobalScales.h.

References m_ettEmScales.

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

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

Definition at line 58 of file GlobalScales.h.

References m_ettScales.

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

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

Definition at line 60 of file GlobalScales.h.

References m_httScales.

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

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

Definition at line 56 of file GlobalScales.h.

References m_jetScales.

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

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

Definition at line 29 of file GlobalScales.cc.

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

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

29  {
30  if (m_lut_CalMuEta.count(lutName) != 0) {
31  LogTrace("GlobalScales") << " LUT \"" << lutName << "\"already exists in the LUT map- not inserted!"
32  << std::endl;
33  return;
34  }
35 
36  // Insert this LUT into the Table
37  m_lut_CalMuEta.insert(std::map<std::string, std::vector<long long>>::value_type(lutName, lut));
38 
39  return;
40 }
#define LogTrace(id)
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:129
void GlobalScales::setLUT_CalMuPhi ( const std::string &  lutName,
std::vector< long long >  lut 
)
virtual

Definition at line 42 of file GlobalScales.cc.

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

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

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

Definition at line 115 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().

115  {
116  if (m_lut_Cos.count(lutName) != 0) {
117  LogTrace("GlobalScales") << " LUT \"" << lutName << "\"already exists in the LUT map- not inserted!"
118  << std::endl;
119  return;
120  }
121 
122  // Insert this LUT into the Table
123  m_lut_Cos.insert(std::map<std::string, std::vector<long long>>::value_type(lutName, lut));
125 
126  return;
127 }
#define LogTrace(id)
std::map< std::string, unsigned int > m_Prec_Cos
Definition: GlobalScales.h:143
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:135
void GlobalScales::setLUT_Cosh ( const std::string &  lutName,
std::vector< long long >  lut,
unsigned int  precision 
)
virtual

Definition at line 101 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().

101  {
102  if (m_lut_Cosh.count(lutName) != 0) {
103  LogTrace("GlobalScales") << " LUT \"" << lutName << "\"already exists in the LUT map- not inserted!"
104  << std::endl;
105  return;
106  }
107 
108  // Insert this LUT into the Table
109  m_lut_Cosh.insert(std::map<std::string, std::vector<long long>>::value_type(lutName, lut));
111 
112  return;
113 }
#define LogTrace(id)
std::map< std::string, unsigned int > m_Prec_Cosh
Definition: GlobalScales.h:142
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:134
void GlobalScales::setLUT_DeltaEta ( const std::string &  lutName,
std::vector< long long >  lut,
unsigned int  precision 
)
virtual

Definition at line 55 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().

57  {
58  if (m_lut_DeltaEta.count(lutName) != 0) {
59  LogTrace("GlobalScales") << " LUT \"" << lutName << "\"already exists in the LUT map- not inserted!"
60  << std::endl;
61  return;
62  }
63 
64  // Insert this LUT into the Table
65  m_lut_DeltaEta.insert(std::map<std::string, std::vector<long long>>::value_type(lutName, lut));
67 
68  return;
69 }
#define LogTrace(id)
std::map< std::string, unsigned int > m_Prec_DeltaEta
Definition: GlobalScales.h:139
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:131
void GlobalScales::setLUT_DeltaPhi ( 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_DeltaPhi, m_Prec_DeltaPhi, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

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

73  {
74  if (m_lut_DeltaPhi.count(lutName) != 0) {
75  LogTrace("GlobalScales") << " LUT \"" << lutName << "\"already exists in the LUT map- not inserted!"
76  << std::endl;
77  return;
78  }
79 
80  // Insert this LUT into the Table
81  m_lut_DeltaPhi.insert(std::map<std::string, std::vector<long long>>::value_type(lutName, lut));
83 
84  return;
85 }
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:132
#define LogTrace(id)
std::map< std::string, unsigned int > m_Prec_DeltaPhi
Definition: GlobalScales.h:140
void GlobalScales::setLUT_Pt ( 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_Pt, m_Prec_Pt, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

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

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

Definition at line 129 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().

129  {
130  if (m_lut_Sin.count(lutName) != 0) {
131  LogTrace("GlobalScales") << " LUT \"" << lutName << "\"already exists in the LUT map- not inserted!"
132  << std::endl;
133  return;
134  }
135 
136  // Insert this LUT into the Table
137  m_lut_Sin.insert(std::map<std::string, std::vector<long long>>::value_type(lutName, lut));
139 
140  return;
141 }
std::map< std::string, std::vector< long long > > m_lut_Sin
Definition: GlobalScales.h:136
#define LogTrace(id)
std::map< std::string, unsigned int > m_Prec_Sin
Definition: GlobalScales.h:144
void l1t::GlobalScales::setMuonScales ( ScaleParameters scales)
inline

Definition at line 54 of file GlobalScales.h.

References m_muScales.

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

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

Definition at line 53 of file GlobalScales.h.

References m_tauScales.

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

53 { m_tauScales = scales; }
ScaleParameters m_tauScales
Definition: GlobalScales.h:116

Member Data Documentation

ScaleParameters l1t::GlobalScales::m_egScales
private

Definition at line 115 of file GlobalScales.h.

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

ScaleParameters l1t::GlobalScales::m_etmHfScales
private

Definition at line 125 of file GlobalScales.h.

Referenced by getETMHFScales(), and setETMHfScales().

ScaleParameters l1t::GlobalScales::m_etmScales
private

Definition at line 124 of file GlobalScales.h.

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

ScaleParameters l1t::GlobalScales::m_ettEmScales
private

Definition at line 122 of file GlobalScales.h.

Referenced by getETTEmScales(), and setETTEmScales().

ScaleParameters l1t::GlobalScales::m_ettScales
private

Definition at line 121 of file GlobalScales.h.

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

ScaleParameters l1t::GlobalScales::m_htmScales
private

Definition at line 126 of file GlobalScales.h.

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

ScaleParameters l1t::GlobalScales::m_httScales
private

Definition at line 123 of file GlobalScales.h.

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

ScaleParameters l1t::GlobalScales::m_jetScales
private

Definition at line 119 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 129 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 130 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 135 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 134 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 131 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 133 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 136 of file GlobalScales.h.

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

ScaleParameters l1t::GlobalScales::m_muScales
private

Definition at line 117 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 143 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 142 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 139 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 140 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 141 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 144 of file GlobalScales.h.

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

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

Definition at line 113 of file GlobalScales.h.

Referenced by getScalesName(), and setScalesName().

ScaleParameters l1t::GlobalScales::m_tauScales
private

Definition at line 116 of file GlobalScales.h.

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