|
ATLAS Offline Software
|
#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...
|
|
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
◆ NswErrorCalibData()
◆ ~NswErrorCalibData()
NswErrorCalibData::~NswErrorCalibData |
( |
| ) |
|
|
default |
◆ clusterUncertainty()
double NswErrorCalibData::clusterUncertainty |
( |
const Input & |
clustInfo | ) |
const |
Definition at line 96 of file NswErrorCalibData.cxx.
103 ErrorIdentifier errorId{};
111 const ErrorConstantsSet::const_iterator layConstItr = errorsInLay.find(errorId);
112 if (layConstItr != errorsInLay.end()) {
113 const double uncert = layConstItr->clusterUncertainty(clustInfo);
116 <<
" is smaller than zero ("<<uncert<<
"). theta: "<<clustInfo.
locTheta
120 <<
", pars " << layConstItr->pars());
125 <<
", cluster Author: "<<
static_cast<int>(clustInfo.
clusterAuthor));
◆ getParametrizer()
Return a surprise box if the function is unknown
Definition at line 28 of file NswErrorCalibData.cxx.
29 if (funcName ==
"tanThetaPolynomial") {
33 }
else if (funcName ==
"thetaPolynomial") {
37 }
else if (funcName ==
"scaleErrorAndAddSyst"){
39 return scaleErrorAndAddSyst(
input.clusterError,
pars);
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. ";
◆ 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.
◆ 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.
131 if (newConstants.minStrip() > newConstants.maxStrip()) {
133 <<
" have an invalid strip range"<<newConstants.minStrip()<<
" to "<<newConstants.maxStrip());
134 return StatusCode::FAILURE;
137 if (!
constants.insert(std::move(newConstants)).second) {
139 return StatusCode::FAILURE;
141 return StatusCode::SUCCESS;
◆ 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:
std::atomic< MSG::Level > m_lvl
Current logging level.
virtual const sTgcIdHelper & stgcIdHelper() const =0
access to TgcIdHelper
const Muon::IMuonIdHelperSvc * m_idHelperSvc
#define THROW_EXCEPTION(MSG)
virtual const MmIdHelper & mmIdHelper() const =0
access to CscIdHelper
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
IMessageSvc * getMessageSvc(bool quiet=false)
int channel(const Identifier &id) const override
virtual std::string toStringGasGap(const Identifier &id) const =0
print all fields up to gas gap to string
Class to provide easy MsgStream access and capabilities.
std::set< ErrorConstants, std::less<> > ErrorConstantsSet
Share the same error constants amongst several gasGaps.
MsgStream & msg() const
The standard message stream.
virtual bool isMM(const Identifier &id) const =0
returns whether this is a MM Identifier or not
virtual Identifier gasGapId(const Identifier &id) const =0
create a gasGap ID (will return layer Id for MDTs)
int channel(const Identifier &id) const override
virtual std::string toString(const Identifier &id) const =0
print all fields to string
#define ATH_MSG_WARNING(x)
std::string m_nm
Message source name.
void initMessaging() const
Initialize our message level and MessageSvc.
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
virtual bool issTgc(const Identifier &id) const =0
returns whether this is a sTGC Identifier or not