ATLAS Offline Software
MdtCorFuncSet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MDTCORFUNCSET_H
6 #define MDTCORFUNCSET_H
7 
12 
13 #include <memory>
14 namespace MuonCalib {
17  class MdtCorFuncSet {
18  public:
19  MdtCorFuncSet() = default;
20 
21  MdtCorFuncSet(std::unique_ptr<IMdtSlewCorFunc> && s,
22  std::unique_ptr<IMdtBFieldCorFunc>&& bf,
23  std::unique_ptr<IMdtTempCorFunc>&& t,
24  std::unique_ptr<IMdtBackgroundCorFunc>&& bg);
25 
26  ~MdtCorFuncSet() = default;
27 
28  const IMdtSlewCorFunc* slewing() const { return m_slewing.get(); }
29  const IMdtBFieldCorFunc* bField() const { return m_bField.get(); }
30  const IMdtTempCorFunc* temperature() const { return m_temperature.get(); }
31  const IMdtBackgroundCorFunc* background() const { return m_background.get(); }
32 
33  void setSlewing(std::unique_ptr<IMdtSlewCorFunc>&& slew);
34  void setBField(std::unique_ptr<IMdtBFieldCorFunc>&& bField);
35  void setTemperature(std::unique_ptr<IMdtTempCorFunc>&& temperature);
36  void background(std::unique_ptr<IMdtBackgroundCorFunc>&& background);
37 
38  private:
39 
40  std::unique_ptr<IMdtSlewCorFunc> m_slewing{};
41  std::unique_ptr<IMdtBFieldCorFunc> m_bField{};
42  std::unique_ptr<IMdtTempCorFunc> m_temperature{};
43  std::unique_ptr<IMdtBackgroundCorFunc> m_background{};
44  };
45 
46 } // namespace MuonCalib
47 
48 #endif
MuonCalib::IMdtTempCorFunc
generic interface for temperature correction functions
Definition: IMdtTempCorFunc.h:14
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
MuonCalib::MdtCorFuncSet::~MdtCorFuncSet
~MdtCorFuncSet()=default
MuonCalib::MdtCorFuncSet::slewing
const IMdtSlewCorFunc * slewing() const
Definition: MdtCorFuncSet.h:28
StandaloneBunchgroupHandler.bg
bg
Definition: StandaloneBunchgroupHandler.py:243
MuonCalib::MdtCorFuncSet::setBField
void setBField(std::unique_ptr< IMdtBFieldCorFunc > &&bField)
Definition: MdtCorFuncSet.cxx:22
MuonCalib::MdtCorFuncSet::setTemperature
void setTemperature(std::unique_ptr< IMdtTempCorFunc > &&temperature)
Definition: MdtCorFuncSet.cxx:25
MuonCalib::IMdtSlewCorFunc
generic interface for slewing correction functions
Definition: IMdtSlewCorFunc.h:14
MuonCalib::IMdtBFieldCorFunc
generic interface for b-field correction functions
Definition: IMdtBFieldCorFunc.h:14
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
IMdtSlewCorFunc.h
MuonCalib::MdtCorFuncSet::m_background
std::unique_ptr< IMdtBackgroundCorFunc > m_background
Definition: MdtCorFuncSet.h:43
MuonCalib::MdtCorFuncSet::MdtCorFuncSet
MdtCorFuncSet()=default
MuonCalib::MdtCorFuncSet::m_slewing
std::unique_ptr< IMdtSlewCorFunc > m_slewing
Definition: MdtCorFuncSet.h:40
MuonCalib::MdtCorFuncSet
Class which holds all correction functions for a given region.
Definition: MdtCorFuncSet.h:17
MuonCalib::MdtCorFuncSet::m_temperature
std::unique_ptr< IMdtTempCorFunc > m_temperature
Definition: MdtCorFuncSet.h:42
MuonCalib::IMdtBackgroundCorFunc
generic interface for cavern background correction functions
Definition: IMdtBackgroundCorFunc.h:14
IMdtBackgroundCorFunc.h
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MdtCorFuncSet::temperature
const IMdtTempCorFunc * temperature() const
Definition: MdtCorFuncSet.h:30
MuonCalib::MdtCorFuncSet::m_bField
std::unique_ptr< IMdtBFieldCorFunc > m_bField
Definition: MdtCorFuncSet.h:41
IMdtTempCorFunc.h
MuonCalib::MdtCorFuncSet::background
const IMdtBackgroundCorFunc * background() const
Definition: MdtCorFuncSet.h:31
IMdtBFieldCorFunc.h
MuonCalib::MdtCorFuncSet::setSlewing
void setSlewing(std::unique_ptr< IMdtSlewCorFunc > &&slew)
Definition: MdtCorFuncSet.cxx:19
MuonCalib::MdtCorFuncSet::bField
const IMdtBFieldCorFunc * bField() const
Definition: MdtCorFuncSet.h:29