#include <MmCTPClusterCalibData.h>
|
| std::uint32_t | convertHash (const Identifier &gasGapId) const |
| | Converts the identifier to a continious hash used to access the stored parameters.
|
| void | initMessaging () const |
| | Initialize our message level and MessageSvc.
|
Definition at line 16 of file MmCTPClusterCalibData.h.
◆ CTPParameters
◆ parameterMap_t
◆ MmCTPClusterCalibData()
Definition at line 8 of file MmCTPClusterCalibData.cxx.
8 :
12}
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
const Muon::IMuonIdHelperSvc * m_idHelperSvc
parameterMap_t m_database
◆ ~MmCTPClusterCalibData()
| Muon::MmCTPClusterCalibData::~MmCTPClusterCalibData |
( |
| ) |
|
|
default |
◆ convertHash()
| std::uint32_t Muon::MmCTPClusterCalibData::convertHash |
( |
const Identifier & | gasGapId | ) |
const |
|
private |
Converts the identifier to a continious hash used to access the stored parameters.
- Parameters
-
Definition at line 16 of file MmCTPClusterCalibData.cxx.
16 {
17 IdentifierHash detHash{};
21 return -1;
22 }
23 return static_cast<unsigned>(detHash)*4 + (idHelper.
gasGap(gasGapId) -1);
24
25}
#define ATH_MSG_WARNING(x)
virtual int get_detectorElement_hash(const Identifier &id, IdentifierHash &hash_id) const override
int gasGap(const Identifier &id) const override
get the hashes
◆ getCTPCorrectedDriftVelocity()
| double Muon::MmCTPClusterCalibData::getCTPCorrectedDriftVelocity |
( |
const Identifier & | identifier, |
|
|
const double | theta ) const |
Definition at line 39 of file MmCTPClusterCalibData.cxx.
39 {
40
41
42
43
44
46 if(!calibPars) {
47 ATH_MSG_WARNING(
"There's no drift velocity calibration available for gasGap "
49 return std::numeric_limits<double>::max();
50 }
51
53
54
56 double tan_theta = std::tan(trf_theta_in_degrees*Gaudi::Units::deg);
57
58
59
60
61
62
63 double vDrift = (*calibPars)[0] + (*calibPars)[1] * trf_theta_in_degrees;
64
65
66 vDrift = (tan_theta != 0 ) ? std::abs(vDrift/tan_theta) : std::abs(vDrift);
67
68
69 ATH_MSG_VERBOSE(
"New drift velocity: " << vDrift <<
" for theta: " << trf_theta_in_degrees <<
" degrees" );
70
71 return vDrift;
72}
Scalar theta() const
theta method
#define ATH_MSG_VERBOSE(x)
std::uint32_t convertHash(const Identifier &gasGapId) const
Converts the identifier to a continious hash used to access the stored parameters.
◆ 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.
40{
42
43 if (
m_lvl == MSG::NIL) {
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ 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 167 of file AthMessaging.h.
168{
170 if (!ms) {
174 }
175
178}
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
void initMessaging() const
Initialize our message level and MessageSvc.
◆ 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 182 of file AthMessaging.h.
183{
return msg() << lvl; }
MsgStream & msg() const
The standard message stream.
◆ 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.
152{
153
154
156
159 return true;
160 } else {
161 return false;
162 }
163}
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ storeConstants()
| StatusCode Muon::MmCTPClusterCalibData::storeConstants |
( |
const Identifier & | gasGapId, |
|
|
CTPParameters && | newConstants ) |
Definition at line 26 of file MmCTPClusterCalibData.cxx.
27 {
28
30 if (slot) {
32 <<" already exist. Overwriting is not allowed");
33 return StatusCode::FAILURE;
34 }
35 slot = std::make_unique<CTPParameters>(std::move(newConstants));
36 return StatusCode::SUCCESS;
37}
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_database
◆ 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 |
The documentation for this class was generated from the following files: