ATLAS Offline Software
OnlineLumiCalibrationCondData.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4  */
13 #ifndef COOLLUMIUTILITIES_ONLINELUMICALIBRATIONCONDDATA_H
14 #define COOLLUMIUTILITIES_ONLINELUMICALIBRATIONCONDDATA_H
15 
16 
18 #include "AthenaKernel/CondCont.h"
19 #include "AthenaKernel/CLASS_DEF.h"
20 
21 
26 {
27 public:
33  void set (unsigned int channel, OnlineLumiCalibrator&& lc);
34 
35 
41  float getMuToLumi (unsigned int channel) const;
42 
43 
52  bool calibrateLumi(unsigned int channel, float raw, float& lumi) const;
53 
54 
63  bool calibrateMu(unsigned int channel, float raw, float& mu) const;
64 
65 
66 private:
72  const OnlineLumiCalibrator* findLC (unsigned int channel) const;
73 
74 
76  std::map<unsigned int, OnlineLumiCalibrator> m_cali;
77 };
78 
79 
82 
83 
84 #endif // not COOLLUMIUTILITIES_ONLINELUMICALIBRATIONCONDDATA_H
85 
CondCont.h
Hold mappings of ranges to condition objects.
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
python.LumiCalcHtml.lc
lc
Definition: LumiCalcHtml.py:579
OnlineLumiCalibrationCondData
Luminosity calibration data, produced by OnlineLumiCalibrationCondAlg.
Definition: OnlineLumiCalibrationCondData.h:26
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::findLC
const OnlineLumiCalibrator * findLC(unsigned int channel) const
Look up calibration for a specific channel.
Definition: OnlineLumiCalibrationCondData.cxx:85
CONDCONT_DEF
CONDCONT_DEF(OnlineLumiCalibrationCondData, 263944367)
OnlineLumiCalibrator.h
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
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
CLASS_DEF.h
macros to associate a CLID to a type
OnlineLumiCalibrationCondData::set
void set(unsigned int channel, OnlineLumiCalibrator &&lc)
Store a calibration data object,.
Definition: OnlineLumiCalibrationCondData.cxx:20