CMS 3D CMS Logo

Static Public Member Functions | Protected Attributes

HcalLutManager_test Class Reference

#include <HcalLutManager.h>

List of all members.

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 131 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, label, HcalLutSet::lut, HcalLutSet::phi_max, HcalLutSet::phi_min, and HcalLutSet::subdet.

{
  HcalLutManager _manager;
  HcalLutSet _set = _manager . getLutSetFromFile( _filename );
  std::cout << "===> Test of HcalLutSet HcalLutManager::getLutSetFromFile( std::string _filename )" << std::endl << std::endl;
  std::cout << _set . label << std::endl;
  for (unsigned int i = 0; i != _set.subdet.size(); i++) std::cout << _set.subdet[i] << "       ";
  std::cout << std::endl;
  for (unsigned int i = 0; i != _set.eta_min.size(); i++) std::cout << _set.eta_min[i] << "     ";
  std::cout << std::endl;
  for (unsigned int i = 0; i != _set.eta_max.size(); i++) std::cout << _set.eta_max[i] << "     ";
  std::cout << std::endl;
  for (unsigned int i = 0; i != _set.phi_min.size(); i++) std::cout << _set.phi_min[i] << "     ";
  std::cout << std::endl;
  for (unsigned int i = 0; i != _set.phi_max.size(); i++) std::cout << _set.phi_max[i] << "     ";
  std::cout << std::endl;
  for (unsigned int i = 0; i != _set.depth_min.size(); i++) std::cout << _set.depth_min[i] << " ";
  std::cout << std::endl;
  for (unsigned int i = 0; i != _set.depth_max.size(); i++) std::cout << _set.depth_max[i] << " ";
  std::cout << std::endl;
  for (unsigned int j = 0; j != _set.lut[0].size(); j++){
    for (unsigned int i = 0; i != _set.lut.size(); i++){
      std::cout << _set.lut[i][j] << "  ";
    }
    std::cout << "---> " << j << std::endl;
  }
  return 0;
}
static int HcalLutManager_test::getLutXml_test ( std::vector< unsigned int > &  _lut) [inline, static]

Definition at line 167 of file HcalLutManager.h.

{return 0;}

Member Data Documentation

Definition at line 174 of file HcalLutManager.h.