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

◆ getInt_test()

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

◆ getLutSetFromFile_test()

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

Definition at line 133 of file HcalLutManager.cc.

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 }

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

◆ getLutXml_test()

static int HcalLutManager_test::getLutXml_test ( std::vector< unsigned int > &  _lut)
inlinestatic

Definition at line 192 of file HcalLutManager.h.

192 { return 0; }

Member Data Documentation

◆ lut_xml

LutXml* HcalLutManager_test::lut_xml
protected

Definition at line 199 of file HcalLutManager.h.

mps_fire.i
i
Definition: mps_fire.py:355
edm::LogInfo
Definition: MessageLogger.h:254
HcalLutSet::eta_min
std::vector< int > eta_min
Definition: HcalLutManager.h:35
HcalLutSet::eta_max
std::vector< int > eta_max
Definition: HcalLutManager.h:35
HcalLutSet::lut
std::vector< std::vector< unsigned int > > lut
Definition: HcalLutManager.h:36
HcalLutSet::phi_max
std::vector< int > phi_max
Definition: HcalLutManager.h:35
HcalLutSet::depth_min
std::vector< int > depth_min
Definition: HcalLutManager.h:35
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalLutManager::getLutSetFromFile
HcalLutSet getLutSetFromFile(std::string _filename, int _type=1)
Definition: HcalLutManager.cc:170
HcalLutSet::phi_min
std::vector< int > phi_min
Definition: HcalLutManager.h:35
cms::cuda::for
for(int i=first, nt=offsets[nh];i< nt;i+=gridDim.x *blockDim.x)
Definition: HistoContainer.h:27
HcalLutManager
Various manipulations with trigger Lookup Tables.
Definition: HcalLutManager.h:39
HcalLutSet::label
std::string label
Definition: HcalLutManager.h:33
HcalLutSet::depth_max
std::vector< int > depth_max
Definition: HcalLutManager.h:35
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
HcalLutSet::subdet
std::vector< std::string > subdet
Definition: HcalLutManager.h:34
HcalLutSet
Definition: HcalLutManager.h:31