ATLAS Offline Software
OnlineLumiCalibrationCondData.cxx
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
3  */
13 
14 
22 {
23  m_cali[channel] = std::move(lc);
24 }
25 
26 
33 {
34  if (const OnlineLumiCalibrator* lc = findLC (channel)) {
35  return lc->getMuToLumi();
36  }
37  return -1;
38 }
39 
40 
50  float raw,
51  float& lumi) const
52 {
53  if (const OnlineLumiCalibrator* lc = findLC (channel)) {
54  return lc->calibrateLumi (raw, lumi);
55  }
56  return false;
57 }
58 
59 
69  float raw,
70  float& mu) const
71 {
72  if (const OnlineLumiCalibrator* lc = findLC (channel)) {
73  return lc->calibrateMu (raw, mu);
74  }
75  return false;
76 }
77 
78 
86 {
87  auto it = m_cali.find (channel);
88  if (it != m_cali.end()) {
89  return &it->second;
90  }
91  return nullptr;
92 }
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
skel.it
it
Definition: skel.GENtoEVGEN.py:396
python.LumiCalcHtml.lc
lc
Definition: LumiCalcHtml.py:579
OnlineLumiCalibrationCondData::m_cali
std::map< unsigned int, OnlineLumiCalibrator > m_cali
Calibration storage by channel.
Definition: OnlineLumiCalibrationCondData.h:76
OnlineLumiCalibrator
Utility class to apply calibrations from /TDAQ/OLC/CALIBRATIONS folder.
Definition: OnlineLumiCalibrator.h:20
OnlineLumiCalibrationCondData.h
Luminosity calibration data, produced by OnlineLumiCalibrationCondAlg.
OnlineLumiCalibrationCondData::findLC
const OnlineLumiCalibrator * findLC(unsigned int channel) const
Look up calibration for a specific channel.
Definition: OnlineLumiCalibrationCondData.cxx:85
OnlineLumiCalibrationCondData::calibrateMu
bool calibrateMu(unsigned int channel, float raw, float &mu) const
Mu calibration.
Definition: OnlineLumiCalibrationCondData.cxx:68
OnlineLumiCalibrationCondData::getMuToLumi
float getMuToLumi(unsigned int channel) const
Return muToLumi parameter.
Definition: OnlineLumiCalibrationCondData.cxx:32
lumiFormat.lumi
lumi
Definition: lumiFormat.py:106
OnlineLumiCalibrationCondData::calibrateLumi
bool calibrateLumi(unsigned int channel, float raw, float &lumi) const
Luminosity calibration.
Definition: OnlineLumiCalibrationCondData.cxx:49
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
OnlineLumiCalibrationCondData::set
void set(unsigned int channel, OnlineLumiCalibrator &&lc)
Store a calibration data object,.
Definition: OnlineLumiCalibrationCondData.cxx:20