#include <L1MuCSCPtLut.h>
|
unsigned short | pt_lut [1<< 21] |
|
Definition at line 11 of file L1MuCSCPtLut.h.
L1MuCSCPtLut::L1MuCSCPtLut |
( |
void |
| ) |
|
|
inline |
L1MuCSCPtLut::~L1MuCSCPtLut |
( |
void |
| ) |
|
|
inline |
const unsigned short* L1MuCSCPtLut::lut |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
unsigned short L1MuCSCPtLut::pt |
( |
unsigned long |
addr | ) |
const |
throw | ( | |
| ) | | |
|
inline |
Definition at line 20 of file L1MuCSCPtLut.h.
References pt_lut.
21 if( addr<(1<<21) )
return pt_lut[(
unsigned int)addr];
unsigned short pt_lut[1<< 21]
void L1MuCSCPtLut::readFromDBS |
( |
std::string & |
ptLUT | ) |
|
Definition at line 7 of file L1MuCSCPtLut.cc.
References edm::hlt::Exception, mergeVDriftHistosByStation::file, and pt_lut.
Referenced by L1MuCSCPtLutConfigOnlineProd::newObject().
15 for(
size_t pos=ptLUT.find(
"\\n"); pos!=std::string::npos; pos=ptLUT.find(
"\\n",pos)){
20 unsigned long length = 1<<21;
22 std::stringstream
file(ptLUT);
24 throw cms::Exception(
"Cannot open the ptLUT")<<
"L1MuCSCPtLut cannot open "
25 <<
"ptLUT from DBS (errno="
26 <<errno<<
")"<<std::endl;
29 unsigned int address=0;
30 for(address=0; !
file.eof() && address<length; address++) {
32 file.getline(buff,1024);
33 int ptOutput = atoi(buff);
40 pt_lut[address] = ptOutput;
44 throw cms::Exception(
"Incorrect LUT size")<<
"L1MuCSCPtLut read "<<address
45 <<
" words from DBS instead of expected "
unsigned short pt_lut[1<< 21]
L1MuCSCPtLut::COND_SERIALIZABLE |
unsigned short L1MuCSCPtLut::pt_lut[1<< 21] |
|
private |