#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 19 of file L1MuCSCPtLut.h.
References generateTowerEtThresholdLUT::addr, and createfilelist::int.
Referenced by Particle.Particle::__str__(), ZMuMuRochCorAnalyzer.DiMuon::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), and Jet.Jet::setCorrP4().
unsigned short pt_lut[1<< 21]
void L1MuCSCPtLut::readFromDBS |
( |
std::string & |
ptLUT | ) |
|
Definition at line 7 of file L1MuCSCPtLut.cc.
References Exception, FrontierConditions_GlobalTag_cff::file, and pt_lut.
13 for (
size_t pos = ptLUT.find(
"\\n");
pos != std::string::npos;
pos = ptLUT.find(
"\\n",
pos)) {
15 ptLUT[
pos + 1] =
'\n';
18 unsigned long length = 1 << 21;
20 std::stringstream
file(ptLUT);
22 throw cms::Exception(
"Cannot open the ptLUT") <<
"L1MuCSCPtLut cannot open " 23 <<
"ptLUT from DBS (errno=" << errno <<
")" << std::endl;
26 unsigned int address = 0;
27 for (address = 0; !
file.eof() && address < length; address++) {
29 file.getline(buff, 1024);
30 int ptOutput = atoi(buff);
37 pt_lut[address] = ptOutput;
40 if (address != length)
42 <<
"L1MuCSCPtLut read " << address <<
" words from DBS instead of expected " << length << std::endl;
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 |