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 172 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 149 of file HcalLutManager.cc.

References python.rootplot.argparse::_set, HcalLutSet::depth_max, HcalLutSet::depth_min, HcalLutSet::eta_max, HcalLutSet::eta_min, mps_fire::i, diffTwoXMLs::label, HcalLutSet::lut, HcalLutSet::phi_max, HcalLutSet::phi_min, alignCSCRings::s, and HcalLutSet::subdet.

150 {
151  HcalLutManager _manager;
152  HcalLutSet _set = _manager . getLutSetFromFile( _filename );
153  std::stringstream s;
154  s << "===> Test of HcalLutSet HcalLutManager::getLutSetFromFile( std::string _filename )" << std::endl << std::endl;
155  s << _set . label << std::endl;
156  for (unsigned int i = 0; i != _set.subdet.size(); i++) s << _set.subdet[i] << " ";
157  s << std::endl;
158  for (unsigned int i = 0; i != _set.eta_min.size(); i++) s << _set.eta_min[i] << " ";
159  s << std::endl;
160  for (unsigned int i = 0; i != _set.eta_max.size(); i++) s << _set.eta_max[i] << " ";
161  s << std::endl;
162  for (unsigned int i = 0; i != _set.phi_min.size(); i++) s << _set.phi_min[i] << " ";
163  s << std::endl;
164  for (unsigned int i = 0; i != _set.phi_max.size(); i++) s << _set.phi_max[i] << " ";
165  s << std::endl;
166  for (unsigned int i = 0; i != _set.depth_min.size(); i++) s << _set.depth_min[i] << " ";
167  s << std::endl;
168  for (unsigned int i = 0; i != _set.depth_max.size(); i++) s << _set.depth_max[i] << " ";
169  s << std::endl;
170  for (unsigned int j = 0; j != _set.lut[0].size(); j++){
171  for (unsigned int i = 0; i != _set.lut.size(); i++){
172  s << _set.lut[i][j] << " ";
173  }
174  s << "---> " << j << std::endl;
175  }
176  edm::LogInfo("HcalLutManager") << s.str();
177  return 0;
178 }
std::vector< std::vector< unsigned int > > lut
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
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 175 of file HcalLutManager.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

175 {return 0;}

Member Data Documentation

LutXml* HcalLutManager_test::lut_xml
protected

Definition at line 182 of file HcalLutManager.h.