CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 135 of file HcalLutManager.cc.

References python.rootplot.argparse::_set, gather_cfg::cout, HcalLutSet::depth_max, HcalLutSet::depth_min, HcalLutSet::eta_max, HcalLutSet::eta_min, i, j, diffTwoXMLs::label, HcalLutSet::lut, HcalLutSet::phi_max, HcalLutSet::phi_min, and HcalLutSet::subdet.

136 {
137  HcalLutManager _manager;
138  HcalLutSet _set = _manager . getLutSetFromFile( _filename );
139  std::cout << "===> Test of HcalLutSet HcalLutManager::getLutSetFromFile( std::string _filename )" << std::endl << std::endl;
140  std::cout << _set . label << std::endl;
141  for (unsigned int i = 0; i != _set.subdet.size(); i++) std::cout << _set.subdet[i] << " ";
142  std::cout << std::endl;
143  for (unsigned int i = 0; i != _set.eta_min.size(); i++) std::cout << _set.eta_min[i] << " ";
144  std::cout << std::endl;
145  for (unsigned int i = 0; i != _set.eta_max.size(); i++) std::cout << _set.eta_max[i] << " ";
146  std::cout << std::endl;
147  for (unsigned int i = 0; i != _set.phi_min.size(); i++) std::cout << _set.phi_min[i] << " ";
148  std::cout << std::endl;
149  for (unsigned int i = 0; i != _set.phi_max.size(); i++) std::cout << _set.phi_max[i] << " ";
150  std::cout << std::endl;
151  for (unsigned int i = 0; i != _set.depth_min.size(); i++) std::cout << _set.depth_min[i] << " ";
152  std::cout << std::endl;
153  for (unsigned int i = 0; i != _set.depth_max.size(); i++) std::cout << _set.depth_max[i] << " ";
154  std::cout << std::endl;
155  for (unsigned int j = 0; j != _set.lut[0].size(); j++){
156  for (unsigned int i = 0; i != _set.lut.size(); i++){
157  std::cout << _set.lut[i][j] << " ";
158  }
159  std::cout << "---> " << j << std::endl;
160  }
161  return 0;
162 }
int i
Definition: DBlmapReader.cc:9
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
int j
Definition: DBlmapReader.cc:9
std::vector< int > eta_max
tuple cout
Definition: gather_cfg.py:121
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.

167 {return 0;}

Member Data Documentation

LutXml* HcalLutManager_test::lut_xml
protected

Definition at line 174 of file HcalLutManager.h.