CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
EnergyScaleCorrection Class Reference

#include <EnergyScaleCorrection.h>

Classes

class  CorrectionCategory
 
class  ScaleCorrection
 
struct  SmearCorrection
 
class  Sorter
 

Public Types

enum  FileFormat { UNKNOWN = 0, GLOBE, ECALELF_TOY, ECALELF }
 
enum  ParamSmear { kNone = 0, kRho, kPhi, kNParamSmear }
 
enum  ScaleNuisances {
  kErrStatBitNr = 0, kErrSystBitNr = 1, kErrGainBitNr = 2, kErrNrBits = 3,
  kErrNone = 0, kErrStat = 1, kErrSyst = 2, kErrGain = 4,
  kErrStatSyst = 3, kErrStatGain = 5, kErrSystGain = 6, kErrStatSystGain = 7
}
 

Public Member Functions

 EnergyScaleCorrection ()
 
 EnergyScaleCorrection (const std::string &correctionFileName, unsigned int genSeed=0)
 
const ScaleCorrectiongetScaleCorr (unsigned int runnr, double et, double eta, double r9, unsigned int gainSeed) const
 
const SmearCorrectiongetSmearCorr (unsigned int runnr, double et, double eta, double r9, unsigned int gainSeed) const
 
float scaleCorr (unsigned int runnr, double et, double eta, double r9, unsigned int gainSeed=12, std::bitset< kErrNrBits > uncBitMask=kErrNone) const
 
float scaleCorrUncert (unsigned int runnr, double et, double eta, double r9, unsigned int gainSeed, std::bitset< kErrNrBits > uncBitMask=kErrNone) const
 
void setSmearingType (FileFormat value)
 
float smearingSigma (int runnr, double et, double eta, double r9, unsigned int gainSeed, float nSigmaRho, float nSigmaPhi) const
 
float smearingSigma (int runnr, double et, double eta, double r9, unsigned int gainSeed, ParamSmear par, float nSigma=0.) const
 
 ~EnergyScaleCorrection ()
 

Private Member Functions

void addScale (const std::string &category, int runMin, int runMax, double deltaP, double errDeltaP, double errSystDeltaP, double errDeltaPGain)
 
void addScale (int runMin, int runMax, double etaMin, double etaMax, double r9Min, double r9Max, double etMin, double etMax, unsigned int gain, double energyScale, double energyScaleErrStat, double energyScaleErrSyst, double energyScaleErrGain)
 
void addSmearing (const std::string &category, int runMin, int runMax, double rho, double errRho, double phi, double errPhi, double eMean, double errEMean)
 
void readScalesFromFile (const std::string &filename)
 
void readSmearingsFromFile (const std::string &filename)
 

Private Attributes

std::map< CorrectionCategory, ScaleCorrectionscales_
 
std::map< CorrectionCategory, SmearCorrectionsmearings_
 
FileFormat smearingType_
 

Static Private Attributes

static constexpr float kDefaultScaleVal_ = 1.0
 
static constexpr float kDefaultSmearVal_ = 0.0
 

Detailed Description

Definition at line 18 of file EnergyScaleCorrection.h.

Member Enumeration Documentation

◆ FileFormat

Enumerator
UNKNOWN 
GLOBE 
ECALELF_TOY 
ECALELF 

Definition at line 20 of file EnergyScaleCorrection.h.

20 { UNKNOWN = 0, GLOBE, ECALELF_TOY, ECALELF };

◆ ParamSmear

Enumerator
kNone 
kRho 
kPhi 
kNParamSmear 

Definition at line 22 of file EnergyScaleCorrection.h.

22 { kNone = 0, kRho, kPhi, kNParamSmear };

◆ ScaleNuisances

Enumerator
kErrStatBitNr 
kErrSystBitNr 
kErrGainBitNr 
kErrNrBits 
kErrNone 
kErrStat 
kErrSyst 
kErrGain 
kErrStatSyst 
kErrStatGain 
kErrSystGain 
kErrStatSystGain 

Definition at line 24 of file EnergyScaleCorrection.h.

24  {
25  kErrStatBitNr = 0,
26  kErrSystBitNr = 1,
27  kErrGainBitNr = 2,
28  kErrNrBits = 3,
29  kErrNone = 0,
30  kErrStat = 1,
31  kErrSyst = 2,
32  kErrGain = 4,
33  kErrStatSyst = 3,
34  kErrStatGain = 5,
35  kErrSystGain = 6,
37  };

Constructor & Destructor Documentation

◆ EnergyScaleCorrection() [1/2]

EnergyScaleCorrection::EnergyScaleCorrection ( const std::string &  correctionFileName,
unsigned int  genSeed = 0 
)

Definition at line 13 of file EnergyScaleCorrection.cc.

15  if (!correctionFileName.empty()) {
16  std::string filename = correctionFileName + "_scales.dat";
18  if (scales_.empty()) {
19  throw cms::Exception("EnergyScaleCorrection") << "scale correction map empty";
20  }
21  }
22 
23  if (!correctionFileName.empty()) {
24  std::string filename = correctionFileName + "_smearings.dat";
26  if (smearings_.empty()) {
27  throw cms::Exception("EnergyScaleCorrection") << "smearing correction map empty";
28  }
29  }
30 }

References Exception, corrVsCorr::filename, readScalesFromFile(), readSmearingsFromFile(), scales_, smearings_, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ EnergyScaleCorrection() [2/2]

EnergyScaleCorrection::EnergyScaleCorrection ( )
inline

Definition at line 128 of file EnergyScaleCorrection.h.

128 {};

◆ ~EnergyScaleCorrection()

EnergyScaleCorrection::~EnergyScaleCorrection ( )
inline

Definition at line 129 of file EnergyScaleCorrection.h.

129 {}

Member Function Documentation

◆ addScale() [1/2]

void EnergyScaleCorrection::addScale ( const std::string &  category,
int  runMin,
int  runMax,
double  deltaP,
double  errDeltaP,
double  errSystDeltaP,
double  errDeltaPGain 
)
private

Definition at line 119 of file EnergyScaleCorrection.cc.

125  {
126  CorrectionCategory cat(category, runMin, runMax); // build the category from the string
127  auto result = scales_.equal_range(cat);
128  if (result.first != result.second) {
129  throw cms::Exception("ConfigError") << "Category already defined! " << cat;
130  }
131 
132  ScaleCorrection corr(energyScale, energyScaleErrStat, energyScaleErrSyst, energyScaleErrGain);
133  scales_.insert(result.first, {cat, corr}); //use a hint where to insert
134 }

References eostools::cat(), taus_updatedMVAIds_cff::category, alignCSCRings::corr, Exception, mps_fire::result, test_db_connect::runMax, test_db_connect::runMin, and scales_.

Referenced by readScalesFromFile().

◆ addScale() [2/2]

void EnergyScaleCorrection::addScale ( int  runMin,
int  runMax,
double  etaMin,
double  etaMax,
double  r9Min,
double  r9Max,
double  etMin,
double  etMax,
unsigned int  gain,
double  energyScale,
double  energyScaleErrStat,
double  energyScaleErrSyst,
double  energyScaleErrGain 
)
private

Definition at line 136 of file EnergyScaleCorrection.cc.

148  {
149  CorrectionCategory cat(runMin, runMax, etaMin, etaMax, r9Min, r9Max, etMin, etMax, gain);
150 
151  auto result = scales_.equal_range(cat);
152  if (result.first != result.second) {
153  throw cms::Exception("ConfigError") << "Category already defined! " << cat;
154  }
155 
156  ScaleCorrection corr(energyScale, energyScaleErrStat, energyScaleErrSyst, energyScaleErrGain);
157  scales_.insert(result.first, {cat, corr});
158 }

References eostools::cat(), alignCSCRings::corr, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, cosmicPhotonAnalyzer_cfi::etMax, photonAnalyzer_cfi::etMin, Exception, PedestalClient_cfi::gain, cosmicPhotonAnalyzer_cfi::r9Max, photonAnalyzer_cfi::r9Min, mps_fire::result, test_db_connect::runMax, test_db_connect::runMin, and scales_.

◆ addSmearing()

void EnergyScaleCorrection::addSmearing ( const std::string &  category,
int  runMin,
int  runMax,
double  rho,
double  errRho,
double  phi,
double  errPhi,
double  eMean,
double  errEMean 
)
private

Definition at line 160 of file EnergyScaleCorrection.cc.

168  {
169  CorrectionCategory cat(category);
170  auto res = smearings_.equal_range(cat);
171 
172  if (res.first != res.second) {
173  throw cms::Exception("EnergyScaleCorrection") << "Smearing category already defined " << cat;
174  }
175 
176  SmearCorrection corr(rho, errRho, phi, errPhi, eMean, errEMean);
177  smearings_.insert(res.first, {cat, corr}); //use a hint from res
178 }

References eostools::cat(), taus_updatedMVAIds_cff::category, alignCSCRings::corr, Exception, phi, rho, and smearings_.

Referenced by readSmearingsFromFile().

◆ getScaleCorr()

const EnergyScaleCorrection::ScaleCorrection * EnergyScaleCorrection::getScaleCorr ( unsigned int  runnr,
double  et,
double  eta,
double  r9,
unsigned int  gainSeed 
) const

Definition at line 77 of file EnergyScaleCorrection.cc.

78  {
79  // buld the category based on the values of the object
80  CorrectionCategory category(runnr, et, eta, r9, gainSeed);
81  auto result = scales_.find(category);
82 
83  if (result == scales_.end()) {
84  edm::LogInfo("EnergyScaleCorrection")
85  << "Scale category not found: " << category << " Returning uncorrected value.";
86  return nullptr;
87  }
88 
89  //validate the result, just to be sure
90  if (!result->first.inCategory(runnr, et, eta, r9, gainSeed)) {
91  throw cms::Exception("LogicError") << " error found scale category " << result->first
92  << " that does not contain run " << runnr << " et " << et << " eta " << eta
93  << " r9 " << r9 << " gain seed " << gainSeed;
94  }
95  return &result->second;
96 }

References taus_updatedMVAIds_cff::category, EgHLTOffHistBins_cfi::et, PVValHelper::eta, Exception, electrons_cff::r9, mps_fire::result, fileCollector::runnr, and scales_.

Referenced by PhotonEnergyCalibrator::calibrate(), ElectronEnergyCalibrator::calibrate(), scaleCorr(), and scaleCorrUncert().

◆ getSmearCorr()

const EnergyScaleCorrection::SmearCorrection * EnergyScaleCorrection::getSmearCorr ( unsigned int  runnr,
double  et,
double  eta,
double  r9,
unsigned int  gainSeed 
) const

Definition at line 98 of file EnergyScaleCorrection.cc.

99  {
100  // buld the category based on the values of the object
101  CorrectionCategory category(runnr, et, eta, r9, gainSeed);
102  auto result = smearings_.find(category);
103 
104  if (result == smearings_.end()) {
105  edm::LogInfo("EnergyScaleCorrection")
106  << "Smear category not found: " << category << " Returning uncorrected value.";
107  return nullptr;
108  }
109 
110  //validate the result, just to be sure
111  if (!result->first.inCategory(runnr, et, eta, r9, gainSeed)) {
112  throw cms::Exception("LogicError") << " error found smear category " << result->first
113  << " that does not contain run " << runnr << " et " << et << " eta " << eta
114  << " r9 " << r9 << " gain seed " << gainSeed;
115  }
116  return &result->second;
117 }

References taus_updatedMVAIds_cff::category, EgHLTOffHistBins_cfi::et, PVValHelper::eta, Exception, electrons_cff::r9, mps_fire::result, fileCollector::runnr, and smearings_.

Referenced by PhotonEnergyCalibrator::calibrate(), ElectronEnergyCalibrator::calibrate(), and smearingSigma().

◆ readScalesFromFile()

void EnergyScaleCorrection::readScalesFromFile ( const std::string &  filename)
private

< Min eta value for the bin

< Max eta value for the bin

< Min R9 vaule for the bin

< Max R9 value for the bin

< Min Et value for the bin

< Max Et value for the bin

< 12, 6, 1, 61 (double gain switch)

Definition at line 188 of file EnergyScaleCorrection.cc.

188  {
189  std::ifstream file(edm::FileInPath(filename).fullPath().c_str());
190 
191  if (!file.good()) {
192  throw cms::Exception("EnergyScaleCorrection") << "file " << filename << " not readable.";
193  }
194 
195  int runMin, runMax;
196  std::string category, region2;
197  double energyScale, energyScaleErr, energyScaleErrStat, energyScaleErrSyst, energyScaleErrGain;
198 
199  double etaMin;
200  double etaMax;
201  double r9Min;
202  double r9Max;
203  double etMin;
204  double etMax;
205  unsigned int gain;
206 
207  // TO count the #columns in that txt file and decide based on that the version to read
209  std::stringstream stream;
210  getline(file, line);
211  stream.clear();
212  stream << line;
213 
214  int ncols = std::distance(std::istream_iterator<std::string>(stream), std::istream_iterator<std::string>());
215 
216  file.seekg(0, std::ios::beg);
217 
218  if (ncols == 9) {
219  for (file >> category; file.good(); file >> category) {
220  file >> region2 >> runMin >> runMax >> energyScale >> energyScaleErr >> energyScaleErrStat >>
221  energyScaleErrSyst >> energyScaleErrGain;
222  addScale(category, runMin, runMax, energyScale, energyScaleErrStat, energyScaleErrSyst, energyScaleErrGain);
223  }
224  } else {
225  if (file.peek() == 'r')
226  file.ignore(1000, 10);
227 
228  for (file >> runMin; file.good(); file >> runMin) {
229  file >> runMax >> etaMin >> etaMax >> r9Min >> r9Max >> etMin >> etMax >> gain >> energyScale >> energyScaleErr;
230  file.ignore(1000, 10);
231  energyScaleErrStat = energyScaleErr;
232  energyScaleErrSyst = 0;
233  energyScaleErrGain = 0;
234 
236  runMax,
237  etaMin,
238  etaMax,
239  r9Min,
240  r9Max,
241  etMin,
242  etMax,
243  gain,
244  energyScale,
245  energyScaleErrStat,
246  energyScaleErrSyst,
247  energyScaleErrGain);
248  }
249  }
250 
251  file.close();
252  return;
253 }

References addScale(), taus_updatedMVAIds_cff::category, HLT_FULL_cff::distance, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, cosmicPhotonAnalyzer_cfi::etMax, photonAnalyzer_cfi::etMin, Exception, FrontierConditions_GlobalTag_cff::file, corrVsCorr::filename, contentValuesFiles::fullPath, PedestalClient_cfi::gain, mps_splice::line, hgcalPlots::ncols, cosmicPhotonAnalyzer_cfi::r9Max, photonAnalyzer_cfi::r9Min, test_db_connect::runMax, test_db_connect::runMin, cms::cuda::stream, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by EnergyScaleCorrection().

◆ readSmearingsFromFile()

void EnergyScaleCorrection::readSmearingsFromFile ( const std::string &  filename)
private

Definition at line 256 of file EnergyScaleCorrection.cc.

256  {
257  std::ifstream file(edm::FileInPath(filename).fullPath().c_str());
258  if (!file.good()) {
259  throw cms::Exception("EnergyScaleCorrection") << "file " << filename << " not readable";
260  }
261 
262  int runMin = 0;
263  int runMax = 900000;
264  int unused = 0;
265  std::string category, region2;
266  double rho, phi, eMean, errRho, errPhi, errEMean;
267  double etaMin, etaMax, r9Min, r9Max;
268  std::string phiString, errPhiString;
269 
270  while (file.peek() != EOF && file.good()) {
271  if (file.peek() == 10) { // 10 = \n
272  file.get();
273  continue;
274  }
275 
276  if (file.peek() == 35) { // 35 = #
277  file.ignore(1000, 10); // ignore the rest of the line until \n
278  continue;
279  }
280 
281  if (smearingType_ == UNKNOWN) { // trying to guess: not recommended
282  throw cms::Exception("ConfigError") << "unknown smearing type";
283 
284  } else if (smearingType_ == GLOBE) {
285  file >> category >> unused >> etaMin >> etaMax >> r9Min >> r9Max >> runMin >> runMax >> eMean >> errEMean >>
286  rho >> errRho >> phi >> errPhi;
287 
288  addSmearing(category, runMin, runMax, rho, errRho, phi, errPhi, eMean, errEMean);
289 
290  } else if (smearingType_ == ECALELF) {
291  file >> category >> eMean >> errEMean >> rho >> errRho >> phiString >> errPhiString;
292 
293  if (phiString == "M_PI_2")
294  phi = M_PI_2;
295  else
296  phi = std::stod(phiString);
297 
298  if (errPhiString == "M_PI_2")
299  errPhi = M_PI_2;
300  else
301  errPhi = std::stod(errPhiString);
302 
303  addSmearing(category, runMin, runMax, rho, errRho, phi, errPhi, eMean, errEMean);
304 
305  } else {
306  file >> category >> rho >> phi;
307  errRho = errPhi = eMean = errEMean = 0;
308  addSmearing(category, runMin, runMax, rho, errRho, phi, errPhi, eMean, errEMean);
309  }
310  }
311 
312  file.close();
313  return;
314 }

References addSmearing(), taus_updatedMVAIds_cff::category, ECALELF, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, Exception, FrontierConditions_GlobalTag_cff::file, corrVsCorr::filename, contentValuesFiles::fullPath, GLOBE, M_PI_2, phi, cosmicPhotonAnalyzer_cfi::r9Max, photonAnalyzer_cfi::r9Min, rho, test_db_connect::runMax, test_db_connect::runMin, smearingType_, AlCaHLTBitMon_QueryRunRegistry::string, and UNKNOWN.

Referenced by EnergyScaleCorrection().

◆ scaleCorr()

float EnergyScaleCorrection::scaleCorr ( unsigned int  runnr,
double  et,
double  eta,
double  r9,
unsigned int  gainSeed = 12,
std::bitset< kErrNrBits uncBitMask = kErrNone 
) const

Definition at line 32 of file EnergyScaleCorrection.cc.

37  {
38  const ScaleCorrection* scaleCorr = getScaleCorr(runNumber, et, eta, r9, gainSeed);
39  if (scaleCorr != nullptr)
40  return scaleCorr->scale();
41  else
42  return kDefaultScaleVal_;
43 }

References EgHLTOffHistBins_cfi::et, PVValHelper::eta, getScaleCorr(), kDefaultScaleVal_, electrons_cff::r9, and convertSQLiteXML::runNumber.

Referenced by scaleCorrUncert().

◆ scaleCorrUncert()

float EnergyScaleCorrection::scaleCorrUncert ( unsigned int  runnr,
double  et,
double  eta,
double  r9,
unsigned int  gainSeed,
std::bitset< kErrNrBits uncBitMask = kErrNone 
) const

Definition at line 45 of file EnergyScaleCorrection.cc.

50  {
51  const ScaleCorrection* scaleCorr = getScaleCorr(runNumber, et, eta, r9, gainSeed);
52  if (scaleCorr != nullptr)
53  return scaleCorr->scaleErr(uncBitMask);
54  else
55  return 0.;
56 }

References EgHLTOffHistBins_cfi::et, PVValHelper::eta, getScaleCorr(), electrons_cff::r9, convertSQLiteXML::runNumber, and scaleCorr().

◆ setSmearingType()

void EnergyScaleCorrection::setSmearingType ( FileFormat  value)

Definition at line 180 of file EnergyScaleCorrection.cc.

180  {
181  if (value <= 1) {
183  } else {
185  }
186 }

References smearingType_, UNKNOWN, and relativeConstraints::value.

◆ smearingSigma() [1/2]

float EnergyScaleCorrection::smearingSigma ( int  runnr,
double  et,
double  eta,
double  r9,
unsigned int  gainSeed,
float  nSigmaRho,
float  nSigmaPhi 
) const

Definition at line 67 of file EnergyScaleCorrection.cc.

68  {
69  const SmearCorrection* smearCorr = getSmearCorr(runnr, et, eta, r9, gainSeed);
70 
71  if (smearCorr != nullptr)
72  return smearCorr->sigma(nrSigmaRho, nrSigmaPhi);
73  else
74  return kDefaultSmearVal_;
75 }

References EgHLTOffHistBins_cfi::et, PVValHelper::eta, getSmearCorr(), kDefaultSmearVal_, electrons_cff::r9, fileCollector::runnr, and EnergyScaleCorrection::SmearCorrection::sigma().

◆ smearingSigma() [2/2]

float EnergyScaleCorrection::smearingSigma ( int  runnr,
double  et,
double  eta,
double  r9,
unsigned int  gainSeed,
ParamSmear  par,
float  nSigma = 0. 
) const

Definition at line 58 of file EnergyScaleCorrection.cc.

59  {
60  if (par == kRho)
61  return smearingSigma(runnr, et, eta, r9, gainSeed, nSigma, 0.);
62  if (par == kPhi)
63  return smearingSigma(runnr, et, eta, r9, gainSeed, 0., nSigma);
64  return smearingSigma(runnr, et, eta, r9, gainSeed, 0., 0.);
65 }

References EgHLTOffHistBins_cfi::et, PVValHelper::eta, kPhi, kRho, HLTSiStripMonitoring_cff::nSigma, electrons_cff::r9, and fileCollector::runnr.

Member Data Documentation

◆ kDefaultScaleVal_

constexpr float EnergyScaleCorrection::kDefaultScaleVal_ = 1.0
staticconstexprprivate

Definition at line 192 of file EnergyScaleCorrection.h.

Referenced by scaleCorr().

◆ kDefaultSmearVal_

constexpr float EnergyScaleCorrection::kDefaultSmearVal_ = 0.0
staticconstexprprivate

Definition at line 193 of file EnergyScaleCorrection.h.

Referenced by smearingSigma().

◆ scales_

std::map<CorrectionCategory, ScaleCorrection> EnergyScaleCorrection::scales_
private

Definition at line 197 of file EnergyScaleCorrection.h.

Referenced by addScale(), EnergyScaleCorrection(), and getScaleCorr().

◆ smearings_

std::map<CorrectionCategory, SmearCorrection> EnergyScaleCorrection::smearings_
private

Definition at line 198 of file EnergyScaleCorrection.h.

Referenced by addSmearing(), EnergyScaleCorrection(), and getSmearCorr().

◆ smearingType_

FileFormat EnergyScaleCorrection::smearingType_
private

Definition at line 196 of file EnergyScaleCorrection.h.

Referenced by readSmearingsFromFile(), and setSmearingType().

electrons_cff.r9
r9
Definition: electrons_cff.py:387
taus_updatedMVAIds_cff.category
category
Definition: taus_updatedMVAIds_cff.py:31
photonAnalyzer_cfi.etMin
etMin
Definition: photonAnalyzer_cfi.py:54
hgcalPlots.ncols
ncols
Definition: hgcalPlots.py:105
EnergyScaleCorrection::kErrStatSyst
Definition: EnergyScaleCorrection.h:33
ALCARECOTkAlBeamHalo_cff.etaMin
etaMin
GeV.
Definition: ALCARECOTkAlBeamHalo_cff.py:32
EnergyScaleCorrection::kDefaultSmearVal_
static constexpr float kDefaultSmearVal_
Definition: EnergyScaleCorrection.h:193
EnergyScaleCorrection::ECALELF_TOY
Definition: EnergyScaleCorrection.h:20
EnergyScaleCorrection::scales_
std::map< CorrectionCategory, ScaleCorrection > scales_
Definition: EnergyScaleCorrection.h:197
EnergyScaleCorrection::smearingSigma
float smearingSigma(int runnr, double et, double eta, double r9, unsigned int gainSeed, ParamSmear par, float nSigma=0.) const
Definition: EnergyScaleCorrection.cc:58
EnergyScaleCorrection::addScale
void addScale(const std::string &category, int runMin, int runMax, double deltaP, double errDeltaP, double errSystDeltaP, double errDeltaPGain)
Definition: EnergyScaleCorrection.cc:119
contentValuesFiles.fullPath
fullPath
Definition: contentValuesFiles.py:64
EnergyScaleCorrection::scaleCorr
float scaleCorr(unsigned int runnr, double et, double eta, double r9, unsigned int gainSeed=12, std::bitset< kErrNrBits > uncBitMask=kErrNone) const
Definition: EnergyScaleCorrection.cc:32
eostools.cat
def cat(path)
Definition: eostools.py:401
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
EnergyScaleCorrection::smearingType_
FileFormat smearingType_
Definition: EnergyScaleCorrection.h:196
fileCollector.runnr
runnr
Definition: fileCollector.py:87
EnergyScaleCorrection::kErrStatBitNr
Definition: EnergyScaleCorrection.h:25
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
EnergyScaleCorrection::GLOBE
Definition: EnergyScaleCorrection.h:20
convertSQLiteXML.runNumber
runNumber
Definition: convertSQLiteXML.py:91
EnergyScaleCorrection::ECALELF
Definition: EnergyScaleCorrection.h:20
edm::FileInPath
Definition: FileInPath.h:64
EnergyScaleCorrection::kPhi
Definition: EnergyScaleCorrection.h:22
EnergyScaleCorrection::kErrNrBits
Definition: EnergyScaleCorrection.h:28
alignCSCRings.corr
dictionary corr
Definition: alignCSCRings.py:124
PVValHelper::eta
Definition: PVValidationHelpers.h:69
EnergyScaleCorrection::kErrGainBitNr
Definition: EnergyScaleCorrection.h:27
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
EnergyScaleCorrection::kErrStat
Definition: EnergyScaleCorrection.h:30
EnergyScaleCorrection::smearings_
std::map< CorrectionCategory, SmearCorrection > smearings_
Definition: EnergyScaleCorrection.h:198
test_db_connect.runMin
runMin
Definition: test_db_connect.py:7
photonAnalyzer_cfi.r9Min
r9Min
Definition: photonAnalyzer_cfi.py:70
EnergyScaleCorrection::getScaleCorr
const ScaleCorrection * getScaleCorr(unsigned int runnr, double et, double eta, double r9, unsigned int gainSeed) const
Definition: EnergyScaleCorrection.cc:77
DDAxes::rho
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EnergyScaleCorrection::kErrNone
Definition: EnergyScaleCorrection.h:29
EnergyScaleCorrection::kDefaultScaleVal_
static constexpr float kDefaultScaleVal_
Definition: EnergyScaleCorrection.h:192
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
EnergyScaleCorrection::getSmearCorr
const SmearCorrection * getSmearCorr(unsigned int runnr, double et, double eta, double r9, unsigned int gainSeed) const
Definition: EnergyScaleCorrection.cc:98
value
Definition: value.py:1
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
test_db_connect.runMax
runMax
Definition: test_db_connect.py:8
EnergyScaleCorrection::kErrStatGain
Definition: EnergyScaleCorrection.h:34
res
Definition: Electron.h:6
EnergyScaleCorrection::kErrSyst
Definition: EnergyScaleCorrection.h:31
PedestalClient_cfi.gain
gain
Definition: PedestalClient_cfi.py:37
DDAxes::phi
cosmicPhotonAnalyzer_cfi.etMax
etMax
Definition: cosmicPhotonAnalyzer_cfi.py:11
EnergyScaleCorrection::kNParamSmear
Definition: EnergyScaleCorrection.h:22
EnergyScaleCorrection::kErrSystGain
Definition: EnergyScaleCorrection.h:35
EnergyScaleCorrection::addSmearing
void addSmearing(const std::string &category, int runMin, int runMax, double rho, double errRho, double phi, double errPhi, double eMean, double errEMean)
Definition: EnergyScaleCorrection.cc:160
relativeConstraints.value
value
Definition: relativeConstraints.py:53
Exception
Definition: hltDiff.cc:246
EnergyScaleCorrection::UNKNOWN
Definition: EnergyScaleCorrection.h:20
cosmicPhotonAnalyzer_cfi.r9Max
r9Max
Definition: cosmicPhotonAnalyzer_cfi.py:12
EnergyScaleCorrection::kRho
Definition: EnergyScaleCorrection.h:22
ALCARECOTkAlBeamHalo_cff.etaMax
etaMax
Definition: ALCARECOTkAlBeamHalo_cff.py:33
M_PI_2
#define M_PI_2
Definition: CSCGattiFunction.cc:6
mps_fire.result
result
Definition: mps_fire.py:311
EnergyScaleCorrection::kErrStatSystGain
Definition: EnergyScaleCorrection.h:36
EnergyScaleCorrection::readScalesFromFile
void readScalesFromFile(const std::string &filename)
Definition: EnergyScaleCorrection.cc:188
mps_splice.line
line
Definition: mps_splice.py:76
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7733
EnergyScaleCorrection::kErrSystBitNr
Definition: EnergyScaleCorrection.h:26
HLTSiStripMonitoring_cff.nSigma
nSigma
Definition: HLTSiStripMonitoring_cff.py:151
EnergyScaleCorrection::kNone
Definition: EnergyScaleCorrection.h:22
EnergyScaleCorrection::readSmearingsFromFile
void readSmearingsFromFile(const std::string &filename)
Definition: EnergyScaleCorrection.cc:256
EnergyScaleCorrection::kErrGain
Definition: EnergyScaleCorrection.h:32