#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() [1/2]
L1MuCSCPtLut::L1MuCSCPtLut |
( |
void |
| ) |
|
|
inline |
◆ L1MuCSCPtLut() [2/2]
◆ ~L1MuCSCPtLut()
L1MuCSCPtLut::~L1MuCSCPtLut |
( |
void |
| ) |
|
|
inline |
◆ lut()
const unsigned short* L1MuCSCPtLut::lut |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
◆ operator=()
◆ pt()
unsigned short L1MuCSCPtLut::pt |
( |
unsigned long |
addr | ) |
const |
throw | ( | |
| ) | | |
|
inline |
Definition at line 19 of file L1MuCSCPtLut.h.
References generateTowerEtThresholdLUT::addr, createfilelist::int, and pt_lut.
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().
◆ readFromDBS()
void L1MuCSCPtLut::readFromDBS |
( |
std::string & |
ptLUT | ) |
|
Definition at line 7 of file L1MuCSCPtLut.cc.
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;
References Exception, FrontierConditions_GlobalTag_cff::file, and pt_lut.
◆ serialize()
template<class Archive >
void L1MuCSCPtLut::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ cond::serialization::access
template<typename CondSerializationT , typename Enabled >
◆ CSCTFConfigProducer
◆ pt_lut
unsigned short L1MuCSCPtLut::pt_lut[1<< 21] |
|
private |