#include <L1MuCSCPtLut.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
|
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.
Referenced by Particle.Particle::__str__(), ZMuMuRochCorAnalyzer.DiMuon::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDTight(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), and Jet.Jet::setCorrP4().
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 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]
template<class Archive >
void L1MuCSCPtLut::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
friend class boost::serialization::access |
|
friend |
template<typename CondSerializationT , typename Enabled >
unsigned short L1MuCSCPtLut::pt_lut[1<< 21] |
|
private |