#include <NswErrorCalibData.h>
|
| class | ErrorConstants |
| | Helper struct to store different error calibrations for a certain channel range & also for seperate ClusterBuilders (ROT & Prd making stage) More...
|
| struct | ErrorIdentifier |
| struct | Input |
| | Helper struct to be parsed to the object to derive the specific error of the cluster. More...
|
|
| void | initMessaging () const |
| | Initialize our message level and MessageSvc.
|
Definition at line 19 of file NswErrorCalibData.h.
◆ ErrorConstantsSet
Share the same error constants amongst several gasGaps.
Definition at line 83 of file NswErrorCalibData.h.
◆ ErrorMap
◆ errorParametrizer
Initial value: std::function<double(
const Input& input,
const std::vector<double>& pars)>
Definition at line 42 of file NswErrorCalibData.h.
◆ NswErrorCalibData()
Definition at line 93 of file NswErrorCalibData.cxx.
93 :
96
97}
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
const Muon::IMuonIdHelperSvc * m_idHelperSvc
◆ ~NswErrorCalibData()
| NswErrorCalibData::~NswErrorCalibData |
( |
| ) |
|
|
default |
◆ clusterUncertainty()
| double NswErrorCalibData::clusterUncertainty |
( |
const Input & | clustInfo | ) |
const |
Definition at line 98 of file NswErrorCalibData.cxx.
98 {
103 return -1.;
104 }
110 }
113 const ErrorConstantsSet::const_iterator layConstItr = errorsInLay.find(errorId);
114 if (layConstItr != errorsInLay.end()) {
115 const double uncert = layConstItr->clusterUncertainty(clustInfo);
116 if (uncert <= 0.) {
118 <<
" is smaller than zero ("<<uncert<<
"). theta: "<<clustInfo.
locTheta
119 <<
", eta: "<<(-std::log(std::tan(clustInfo.
locTheta/2)))
122 << ", pars " << layConstItr->pars());
123 }
124 return uncert;
125 }
127 <<
", cluster Author: "<<
static_cast<int>(clustInfo.
clusterAuthor));
128 return 0.;
129}
#define ATH_MSG_WARNING(x)
std::set< ErrorConstants, std::less<> > ErrorConstantsSet
Share the same error constants amongst several gasGaps.
◆ getParametrizer()
Return a surprise box if the function is unknown
Definition at line 31 of file NswErrorCalibData.cxx.
31 {
32 if (funcName == "tanThetaPolynomial") {
34 return evalPoly(std::tan(
input.locTheta), pars);
35 };
36 } else if (funcName == "thetaPolynomial") {
38 return evalPoly(
input.locTheta, pars);
39 };
40 } else if (funcName == "scaleErrorAndAddSyst"){
42 return scaleErrorAndAddSyst(
input.clusterError, pars);
43 };
44 }
46 std::stringstream except_str;
47 except_str << "NswErrorCalibData::getParametrizer() - The function '"
48 << funcName << "' is unknown. "
49 << "Please check " << __FILE__
50 << " for the set of valid function names.";
52}
#define THROW_EXCEPTION(MESSAGE)
◆ 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()
Check that min strip is actually smaller than max strip
Definition at line 130 of file NswErrorCalibData.cxx.
131 {
133 if (newConstants.minStrip() > newConstants.maxStrip()) {
135 <<" have an invalid strip range"<<newConstants.minStrip()<<" to "<<newConstants.maxStrip());
136 return StatusCode::FAILURE;
137 }
139 if (!constants.insert(std::move(newConstants)).second) {
141 return StatusCode::FAILURE;
142 }
143 return StatusCode::SUCCESS;
144}
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_database
| ErrorMap NswErrorCalibData::m_database {} |
|
private |
◆ 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: