 |
ATLAS Offline Software
|
#include <NswCalibDbTimeChargeData.h>
Definition at line 25 of file NswCalibDbTimeChargeData.h.
◆ ChannelCalibMap
◆ ZeroCalibMap
◆ CalibDataType
◆ NswCalibDbTimeChargeData()
◆ ~NswCalibDbTimeChargeData()
| NswCalibDbTimeChargeData::~NswCalibDbTimeChargeData |
( |
| ) |
|
|
default |
◆ getCalibForChannel()
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.
128 if (calibMap.at(array_idx).channels.size() >
channel && calibMap[array_idx].channels[
channel]) {
129 return calibMap[array_idx].channels[
channel].get();
◆ getChannelIds()
No calibration constants saved here
Definition at line 87 of file NswCalibDbTimeChargeData.cxx.
88 std::vector<Identifier> chnls;
90 chnls.reserve(calibMap.size());
91 for (
const CalibModule&
module : calibMap) {
93 if (
module.channels.empty())
continue;
98 if (tech ==
"STGC")
continue;
100 for (
unsigned int chn = 1 ; chn <=
module.channels.size() ; ++chn) {
101 if (!
module.channels[chn -1])
continue;
103 chnls.push_back(idHelper.channelID(
module.layer_id,
104 idHelper.multilayer(
module.layer_id),
105 idHelper.gasGap(
module.layer_id), chn ));
108 if (tech ==
"MM")
break;
110 for (
unsigned int chn = 1 ; chn <=
module.channels.size() ; ++chn) {
111 if (!
module.channels[chn -1])
continue;
112 chnls.push_back(idHelper.channelID(
module.layer_id,
113 idHelper.multilayer(
module.layer_id),
114 idHelper.gasGap(
module.layer_id),
115 idHelper.channelType(
module.layer_id), chn ));
◆ getZeroCalibChannel()
Returns the dummy calibration constant for the given technology type.
Definition at line 136 of file NswCalibDbTimeChargeData.cxx.
137 std::map<MuonCond::CalibTechType, ZeroCalibMap>::const_iterator itr =
m_zero.find(tech);
140 ZeroCalibMap::const_iterator type_itr = zeroMap.find(
type);
141 if(type_itr != zeroMap.end())
return &type_itr->second;
◆ identToModuleIdx()
| int NswCalibDbTimeChargeData::identToModuleIdx |
( |
const Identifier & |
chan_id | ) |
const |
|
private |
Definition at line 25 of file NswCalibDbTimeChargeData.cxx.
29 return static_cast<unsigned int>(
hash)*(idHelper.gasGapMax()) + (idHelper.gasGap(chan_id) -1);
32 return static_cast<unsigned int>(
hash)*(idHelper.gasGapMax() * 3 ) +
33 (idHelper.gasGap(chan_id) -1 + idHelper.gasGapMax() * idHelper.channelType(chan_id)) +
m_nMmElements;
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ msg() [1/2]
| MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
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 164 of file AthMessaging.h.
◆ msg() [2/2]
| MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
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 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
| bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ setData()
Definition at line 42 of file NswCalibDbTimeChargeData.cxx.
51 CalibModule& calib_mod = calibMap.at(array_idx);
55 if (calib_mod.channels.empty()) {
58 calib_mod.layer_id = idHelper.
channelID(chnlId, idHelper.multilayer(chnlId), idHelper.gasGap(chnlId), 1);
61 calib_mod.layer_id = idHelper.
channelID(chnlId, idHelper.multilayer(chnlId), idHelper.gasGap(chnlId), idHelper.channelType(chnlId), 1);
64 if (calib_mod.channels.size() <=
channel) calib_mod.channels.resize(
channel +1);
65 if (calib_mod.channels[
channel]) {
68 " "<<(*calib_mod.channels[
channel] ));
71 calib_mod.channels[
channel] = std::make_unique<CalibConstants>(std::move(
constants));
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ setZero()
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_idHelperSvc
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_nMmElements
| const size_t NswCalibDbTimeChargeData::m_nMmElements |
|
private |
Initial value:
Segmentation of the elements is per NSW gasGap. Each wedge has 4 gasgaps.
Definition at line 64 of file NswCalibDbTimeChargeData.h.
◆ m_nStgcElements
| const size_t NswCalibDbTimeChargeData::m_nStgcElements |
|
private |
◆ m_pdo_data
◆ m_tdo_data
◆ m_zero
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
virtual const sTgcIdHelper & stgcIdHelper() const =0
access to TgcIdHelper
const size_t m_nMmElements
Segmentation of the elements is per NSW gasGap. Each wedge has 4 gasgaps.
Identifier channelID(int stationName, int stationEta, int stationPhi, int multilayer, int gasGap, int channelType, int channel) const
size_type detectorElement_hash_max() const
virtual int stationEta(const Identifier &id) const =0
Return stationEta for all technologies.
#define ATH_MSG_VERBOSE(x)
virtual const MmIdHelper & mmIdHelper() const =0
access to CscIdHelper
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
const size_t m_nStgcElements
Additionally reserve space for the 3 channel types.
IMessageSvc * getMessageSvc(bool quiet=false)
const CalibConstants * getZeroCalibChannel(const CalibDataType type, const MuonCond::CalibTechType tech) const
Returns the dummy calibration constant for the given technology type.
ChannelCalibMap m_tdo_data
int channel(const Identifier &id) const override
Class to provide easy MsgStream access and capabilities.
MsgStream & msg() const
The standard message stream.
std::map< MuonCond::CalibTechType, ZeroCalibMap > m_zero
virtual bool isMM(const Identifier &id) const =0
returns whether this is a MM Identifier or not
std::vector< CalibModule > ChannelCalibMap
const Muon::IMuonIdHelperSvc * m_idHelperSvc
#define THROW_EXCEPTION(MESSAGE)
virtual bool hasMM() const =0
returns whether the Mircomegas identifiers are loaded
int channel(const Identifier &id) const override
virtual std::string toString(const Identifier &id) const =0
print all fields to string
ChannelCalibMap m_pdo_data
std::string m_nm
Message source name.
std::map< CalibDataType, CalibConstants > ZeroCalibMap
void initMessaging() const
Initialize our message level and MessageSvc.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
int identToModuleIdx(const Identifier &chan_id) const
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Identifier channelID(int stationName, int stationEta, int stationPhi, int multilayer, int gasGap, int channel) const
virtual bool issTgc(const Identifier &id) const =0
returns whether this is a sTGC Identifier or not
virtual IdentifierHash detElementHash(const Identifier &id) const =0
Returns the detector element hash associated to an Identifier.
virtual bool hasSTGC() const =0
returns whether the sTGC identifiers are loaded