![]() |
ATLAS Offline Software
|
#include <NswCalibDbTimeChargeData.h>
Classes | |
| struct | CalibConstants |
| Helper struct to cache all calibration constants in a common place of the memory. More... | |
| struct | CalibModule |
Public Types | |
| enum class | CalibDataType { TDO , PDO } |
Public Member Functions | |
| NswCalibDbTimeChargeData (const Muon::IMuonIdHelperSvc *idHelperSvc) | |
| ~NswCalibDbTimeChargeData ()=default | |
| void | setData (CalibDataType type, const Identifier &chnlId, CalibConstants constants) |
| void | setZero (CalibDataType type, MuonCond::CalibTechType tech, CalibConstants constants) |
| std::vector< Identifier > | getChannelIds (const CalibDataType type, const std::string &tech, const std::string &side) const |
| const CalibConstants * | getCalibForChannel (const CalibDataType type, const Identifier &channelId) const |
| Retrieves the calibration constant for a particular readout channel. | |
| const CalibConstants * | getZeroCalibChannel (const CalibDataType type, const MuonCond::CalibTechType tech) const |
| Returns the dummy calibration constant for the given technology type. | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Private Types | |
| using | ChannelCalibMap = std::vector<CalibModule> |
| using | ZeroCalibMap = std::map<CalibDataType, CalibConstants> |
Private Member Functions | |
| int | identToModuleIdx (const Identifier &chan_id) const |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| const Muon::IMuonIdHelperSvc * | m_idHelperSvc {} |
| const size_t | m_nMmElements |
| Segmentation of the elements is per NSW gasGap. Each wedge has 4 gasgaps. | |
| const size_t | m_nStgcElements |
| Additionally reserve space for the 3 channel types. | |
| ChannelCalibMap | m_pdo_data {} |
| ChannelCalibMap | m_tdo_data {} |
| std::map< MuonCond::CalibTechType, ZeroCalibMap > | m_zero {} |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) | |
Definition at line 25 of file NswCalibDbTimeChargeData.h.
|
private |
Definition at line 76 of file NswCalibDbTimeChargeData.h.
|
private |
Definition at line 80 of file NswCalibDbTimeChargeData.h.
|
strong |
| Enumerator | |
|---|---|
| TDO | |
| PDO | |
Definition at line 28 of file NswCalibDbTimeChargeData.h.
| NswCalibDbTimeChargeData::NswCalibDbTimeChargeData | ( | const Muon::IMuonIdHelperSvc * | idHelperSvc | ) |
Definition at line 18 of file NswCalibDbTimeChargeData.cxx.
|
default |
| const NswCalibDbTimeChargeData::CalibConstants * NswCalibDbTimeChargeData::getCalibForChannel | ( | const CalibDataType | type, |
| const Identifier & | channelId ) const |
Retrieves the calibration constant for a particular readout channel.
If there is no calibration constant available, then the zero calibChannel is returned.
Definition at line 122 of file NswCalibDbTimeChargeData.cxx.
| std::vector< Identifier > NswCalibDbTimeChargeData::getChannelIds | ( | const CalibDataType | type, |
| const std::string & | tech, | ||
| const std::string & | side ) const |
No calibration constants saved here
Definition at line 87 of file NswCalibDbTimeChargeData.cxx.
| const NswCalibDbTimeChargeData::CalibConstants * NswCalibDbTimeChargeData::getZeroCalibChannel | ( | const CalibDataType | type, |
| const MuonCond::CalibTechType | tech ) const |
Returns the dummy calibration constant for the given technology type.
Definition at line 136 of file NswCalibDbTimeChargeData.cxx.
|
private |
Definition at line 25 of file NswCalibDbTimeChargeData.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 163 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 178 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
| void NswCalibDbTimeChargeData::setData | ( | CalibDataType | type, |
| const Identifier & | chnlId, | ||
| CalibConstants | constants ) |
Definition at line 42 of file NswCalibDbTimeChargeData.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
| void NswCalibDbTimeChargeData::setZero | ( | CalibDataType | type, |
| MuonCond::CalibTechType | tech, | ||
| CalibConstants | constants ) |
Definition at line 76 of file NswCalibDbTimeChargeData.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 62 of file NswCalibDbTimeChargeData.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Segmentation of the elements is per NSW gasGap. Each wedge has 4 gasgaps.
Definition at line 64 of file NswCalibDbTimeChargeData.h.
|
private |
Additionally reserve space for the 3 channel types.
Definition at line 67 of file NswCalibDbTimeChargeData.h.
|
private |
Definition at line 77 of file NswCalibDbTimeChargeData.h.
|
private |
Definition at line 78 of file NswCalibDbTimeChargeData.h.
|
private |
Definition at line 81 of file NswCalibDbTimeChargeData.h.