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 164 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 137 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.

138 {
139  HcalLutManager _manager;
140  HcalLutSet _set = _manager . getLutSetFromFile( _filename );
141  std::stringstream s;
142  s << "===> Test of HcalLutSet HcalLutManager::getLutSetFromFile( std::string _filename )" << std::endl << std::endl;
143  s << _set . label << std::endl;
144  for (unsigned int i = 0; i != _set.subdet.size(); i++) s << _set.subdet[i] << " ";
145  s << std::endl;
146  for (unsigned int i = 0; i != _set.eta_min.size(); i++) s << _set.eta_min[i] << " ";
147  s << std::endl;
148  for (unsigned int i = 0; i != _set.eta_max.size(); i++) s << _set.eta_max[i] << " ";
149  s << std::endl;
150  for (unsigned int i = 0; i != _set.phi_min.size(); i++) s << _set.phi_min[i] << " ";
151  s << std::endl;
152  for (unsigned int i = 0; i != _set.phi_max.size(); i++) s << _set.phi_max[i] << " ";
153  s << std::endl;
154  for (unsigned int i = 0; i != _set.depth_min.size(); i++) s << _set.depth_min[i] << " ";
155  s << std::endl;
156  for (unsigned int i = 0; i != _set.depth_max.size(); i++) s << _set.depth_max[i] << " ";
157  s << std::endl;
158  for (unsigned int j = 0; j != _set.lut[0].size(); j++){
159  for (unsigned int i = 0; i != _set.lut.size(); i++){
160  s << _set.lut[i][j] << " ";
161  }
162  s << "---> " << j << std::endl;
163  }
164  edm::LogInfo("HcalLutManager") << s.str();
165  return 0;
166 }
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 167 of file HcalLutManager.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

167 {return 0;}

Member Data Documentation

LutXml* HcalLutManager_test::lut_xml
protected

Definition at line 174 of file HcalLutManager.h.