#include <mmCTPClusterCalibData.h>
|
| void | initMessaging () const |
| | Initialize our message level and MessageSvc.
|
Definition at line 18 of file mmCTPClusterCalibData.h.
◆ parameterMap
◆ mmCTPClusterCalibData()
Definition at line 9 of file mmCTPClusterCalibData.cxx.
9 :
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
const Muon::IMuonIdHelperSvc * m_idHelperSvc
◆ ~mmCTPClusterCalibData()
| Muon::mmCTPClusterCalibData::~mmCTPClusterCalibData |
( |
| ) |
|
|
default |
◆ getCTPCorrectedDriftVelocity()
| double Muon::mmCTPClusterCalibData::getCTPCorrectedDriftVelocity |
( |
const Identifier & | identifier, |
|
|
const double | theta ) const |
Definition at line 41 of file mmCTPClusterCalibData.cxx.
41 {
42
43
44
45
46
48 ATH_MSG_ERROR(
"There's no drift velocity calibration available for gasGap " <<
m_idHelperSvc->toStringGasGap(gasGapIdentifier)<<
" size of the calib map is: " <<
m_database.size() );
49 }
50
52
53
55 double trf_theta_in_radians = trf_theta_in_degrees * Gaudi::Units::deg;
56 double tan_theta = std::tan(trf_theta_in_radians);
57
58
59
60
61
62
63 double vDrift =
m_database.at(gasGapIdentifier).pars()[0] + ((
m_database.at(gasGapIdentifier).
pars()[1])*trf_theta_in_degrees);
64
65
66
67 vDrift = (tan_theta != 0 ) ? std::fabs(vDrift/tan_theta) : std::fabs(vDrift);
68
69
70 ATH_MSG_VERBOSE(
"New drift velocity: " << vDrift <<
" for theta: " << trf_theta_in_degrees <<
" degrees" );
71
72 return vDrift;
73}
Scalar theta() const
theta method
#define ATH_MSG_VERBOSE(x)
◆ 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 163 of file AthMessaging.h.
164{
166 if (!ms) {
170 }
171
174}
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 178 of file AthMessaging.h.
179{
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{
155 return true;
156 } else {
157 return false;
158 }
159}
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ storeConstants()
| StatusCode Muon::mmCTPClusterCalibData::storeConstants |
( |
const Identifier & | gasGapId, |
|
|
CTPParameters && | newConstants ) |
Definition at line 15 of file mmCTPClusterCalibData.cxx.
16 {
17
19 ATH_MSG_ERROR(
"The drift velocity calibration constants for gas gap "<<
m_idHelperSvc->toStringGasGap(gasGapIdentifier) <<
" already exist. Overwriting is not allowed");
20 return StatusCode::FAILURE;
21 }
22
23
24 if (newConstants.pars().size() < 2) {
26 " stEta: " <<
m_idHelperSvc->mmIdHelper().stationEta(gasGapIdentifier) <<
27 " stPhi: " <<
m_idHelperSvc->mmIdHelper().stationPhi(gasGapIdentifier) <<
28 " ml: " <<
m_idHelperSvc->mmIdHelper().multilayer(gasGapIdentifier) <<
29 " gg: " <<
m_idHelperSvc->mmIdHelper().gasGap(gasGapIdentifier) <<
30 " are incomplete. 2 parameters are required!");
31
32 return StatusCode::FAILURE;
33 }
34
35
36 m_database[gasGapIdentifier] = std::move(newConstants);
37
38 return StatusCode::SUCCESS;
39}
◆ 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: