ATLAS Offline Software
Loading...
Searching...
No Matches
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 */
11
12
13#ifndef COOLLUMIUTILITIES_ONLINELUMICALIBRATIONCONDDATA_H
14#define COOLLUMIUTILITIES_ONLINELUMICALIBRATIONCONDDATA_H
15
16
20
21
26{
27public:
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
66private:
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
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Luminosity calibration data, produced by OnlineLumiCalibrationCondAlg.
bool calibrateMu(unsigned int channel, float raw, float &mu) const
Mu calibration.
bool calibrateLumi(unsigned int channel, float raw, float &lumi) const
Luminosity calibration.
std::map< unsigned int, OnlineLumiCalibrator > m_cali
Calibration storage by channel.
void set(unsigned int channel, OnlineLumiCalibrator &&lc)
Store a calibration data object,.
const OnlineLumiCalibrator * findLC(unsigned int channel) const
Look up calibration for a specific channel.
float getMuToLumi(unsigned int channel) const
Return muToLumi parameter.
Utility class to apply calibrations from /TDAQ/OLC/CALIBRATIONS folder.