CMS 3D CMS Logo

List of all members | Static Public Member Functions | Protected Attributes
HcalLutManager_test Class Reference

#include <HcalLutManager.h>

Static Public Member Functions

static int getInt_test (std::string number)
 
static int getLutSetFromFile_test (std::string _filename)
 
static int getLutXml_test (std::vector< unsigned int > &_lut)
 

Protected Attributes

LutXmllut_xml
 

Detailed Description

Definition at line 190 of file HcalLutManager.h.

Member Function Documentation

static int HcalLutManager_test::getInt_test ( std::string  number)
static
int HcalLutManager_test::getLutSetFromFile_test ( std::string  _filename)
static

Definition at line 133 of file HcalLutManager.cc.

References HcalLutSet::depth_max, HcalLutSet::depth_min, HcalLutSet::eta_max, HcalLutSet::eta_min, HcalLutManager::getLutSetFromFile(), mps_fire::i, dqmiolumiharvest::j, HcalLutSet::label, HcalLutSet::lut, HcalLutSet::phi_max, HcalLutSet::phi_min, alignCSCRings::s, and HcalLutSet::subdet.

133  {
134  HcalLutManager _manager;
135  HcalLutSet _set = _manager.getLutSetFromFile(_filename);
136  std::stringstream s;
137  s << "===> Test of HcalLutSet HcalLutManager::getLutSetFromFile( std::string _filename )" << std::endl << std::endl;
138  s << _set.label << std::endl;
139  for (unsigned int i = 0; i != _set.subdet.size(); i++)
140  s << _set.subdet[i] << " ";
141  s << std::endl;
142  for (unsigned int i = 0; i != _set.eta_min.size(); i++)
143  s << _set.eta_min[i] << " ";
144  s << std::endl;
145  for (unsigned int i = 0; i != _set.eta_max.size(); i++)
146  s << _set.eta_max[i] << " ";
147  s << std::endl;
148  for (unsigned int i = 0; i != _set.phi_min.size(); i++)
149  s << _set.phi_min[i] << " ";
150  s << std::endl;
151  for (unsigned int i = 0; i != _set.phi_max.size(); i++)
152  s << _set.phi_max[i] << " ";
153  s << std::endl;
154  for (unsigned int i = 0; i != _set.depth_min.size(); i++)
155  s << _set.depth_min[i] << " ";
156  s << std::endl;
157  for (unsigned int i = 0; i != _set.depth_max.size(); i++)
158  s << _set.depth_max[i] << " ";
159  s << std::endl;
160  for (unsigned int j = 0; j != _set.lut[0].size(); j++) {
161  for (unsigned int i = 0; i != _set.lut.size(); i++) {
162  s << _set.lut[i][j] << " ";
163  }
164  s << "---> " << j << std::endl;
165  }
166  edm::LogInfo("HcalLutManager") << s.str();
167  return 0;
168 }
std::vector< std::vector< unsigned int > > lut
std::string label
std::vector< int > phi_max
std::vector< std::string > subdet
Various manipulations with trigger Lookup Tables.
std::vector< int > phi_min
std::vector< int > depth_max
std::vector< int > depth_min
HcalLutSet getLutSetFromFile(std::string _filename, int _type=1)
std::vector< int > eta_max
std::vector< int > eta_min
static int HcalLutManager_test::getLutXml_test ( std::vector< unsigned int > &  _lut)
inlinestatic

Definition at line 192 of file HcalLutManager.h.

References contentValuesFiles::number, and AlCaHLTBitMon_QueryRunRegistry::string.

192 { return 0; }

Member Data Documentation

LutXml* HcalLutManager_test::lut_xml
protected

Definition at line 199 of file HcalLutManager.h.