#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 91 of file NswErrorCalibData.cxx.
91 :
94
95}
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 96 of file NswErrorCalibData.cxx.
96 {
101 return -1.;
102 }
108 }
111 const ErrorConstantsSet::const_iterator layConstItr = errorsInLay.find(errorId);
112 if (layConstItr != errorsInLay.end()) {
113 const double uncert = layConstItr->clusterUncertainty(clustInfo);
114 if (uncert <= 0.) {
116 <<
" is smaller than zero ("<<uncert<<
"). theta: "<<clustInfo.
locTheta
117 <<
", eta: "<<(-std::log(std::tan(clustInfo.
locTheta/2)))
120 << ", pars " << layConstItr->pars());
121 }
122 return uncert;
123 }
125 <<
", cluster Author: "<<
static_cast<int>(clustInfo.
clusterAuthor));
126 return 0.;
127}
#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 28 of file NswErrorCalibData.cxx.
28 {
29 if (funcName == "tanThetaPolynomial") {
31 return evalPoly(std::tan(
input.locTheta), pars);
32 };
33 } else if (funcName == "thetaPolynomial") {
35 return evalPoly(
input.locTheta, pars);
36 };
37 } else if (funcName == "scaleErrorAndAddSyst"){
39 return scaleErrorAndAddSyst(
input.clusterError, pars);
40 };
41 }
43 return [funcName](
const Input&,
const std::vector<double>& ) {
44 std::stringstream except_str{};
45 except_str<<"NswErrorCalibData::parametrizer() - The function '"<<funcName<<"' is unknown.";
46 except_str<<"Please check"<<__FILE__<<" for the set of valid function names. ";
48 return 0.;
49 };
50}
#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 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()
Check that min strip is actually smaller than max strip
Definition at line 128 of file NswErrorCalibData.cxx.
129 {
131 if (newConstants.minStrip() > newConstants.maxStrip()) {
133 <<" have an invalid strip range"<<newConstants.minStrip()<<" to "<<newConstants.maxStrip());
134 return StatusCode::FAILURE;
135 }
137 if (!constants.insert(std::move(newConstants)).second) {
139 return StatusCode::FAILURE;
140 }
141 return StatusCode::SUCCESS;
142}
◆ 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: