#include <LArHVScaleCorrSC.h>
|
| void | initMessaging () const |
| | Initialize our message level and MessageSvc.
|
|
| std::string | m_nm |
| | Message source name.
|
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| | MsgStream instance (a std::cout like with print-out levels)
|
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| | MessageSvc pointer.
|
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| | Current logging level.
|
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| | Messaging initialized (initMessaging)
|
Definition at line 16 of file LArHVScaleCorrSC.h.
◆ anonymous enum
◆ LArHVScaleCorrSC() [1/2]
| LArHVScaleCorrSC::LArHVScaleCorrSC |
( |
| ) |
|
◆ LArHVScaleCorrSC() [2/2]
Definition at line 16 of file LArHVScaleCorrSC.cxx.
18{
20
22
24 ATH_MSG_ERROR(
"Found unexpected number of gains (" <<
m_pValues.size() <<
"). Expected exactly one gain." );
25 }
26
27 return;
28}
MsgStream & msg() const
The standard message stream.
StatusCode initializeBase()
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)
std::vector< const float * > m_pValues
◆ ~LArHVScaleCorrSC()
| LArHVScaleCorrSC::~LArHVScaleCorrSC |
( |
| ) |
|
|
virtual |
◆ getDataByHash()
| const float & LArSingleFloatBlob::getDataByHash |
( |
const IdentifierHash & | hs, |
|
|
const unsigned | gain ) const |
|
inlineprotectedinherited |
◆ good()
| bool LArHVScaleCorrSC::good |
( |
| ) |
const |
|
inline |
◆ HVScaleCorr()
| const float & LArHVScaleCorrSC::HVScaleCorr |
( |
const HWIdentifier & | chid | ) |
const |
|
virtual |
Implements ILArHVScaleCorr.
Definition at line 31 of file LArHVScaleCorrSC.cxx.
31 {
34}
const LArOnline_SuperCellID * m_scOnlineID
const float & getDataByHash(const IdentifierHash &hs, const unsigned gain) const
◆ initializeBase()
| StatusCode LArCondSuperCellBase::initializeBase |
( |
| ) |
|
|
inherited |
Definition at line 22 of file LArCondSuperCellBase.cxx.
22 {
23
25
28 return (StatusCode::SUCCESS);
29 }
30
31 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
34
37 return (StatusCode::SUCCESS);
38}
#define ATH_CHECK_WITH_CONTEXT
Evaluate an expression and check for errors, with an explicitly specified context name.
◆ 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; }
◆ 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}
◆ readBlob()
| void LArSingleFloatBlob::readBlob |
( |
const CondAttrListCollection * | attrList, |
|
|
const char * | attrName, |
|
|
MsgStream & | msg ) |
|
inherited |
Definition at line 15 of file LArSingleFloatBlob.cxx.
15 {
17
18 if (!attrList) return;
19
22
24 msg << MSG::DEBUG <<
"Found data for " << attrList->
size() <<
" gains." <<
endmsg;
25
26 int blobSize=0;
27
28 for(;gainIt!=gainIt_e;++gainIt) {
29 unsigned gain=gainIt->first;
30
31 if (gain==1 && attrList->
size()==1)
gain=0;
32
33 if (gain>=attrList->
size() || gain>2) {
34 msg << MSG::ERROR <<
"Found unexpected COOL-channel (=gain) number:" <<
gain <<
endmsg;
35 return;
36 }
37
38 const coral::AttributeList& attr=gainIt->second;
39 const coral::Blob& myBlob = attr[
attrName].data<coral::Blob>();
40 m_pValues[
gain]=
static_cast<const float*
>(myBlob.startingAddress());
41 if (blobSize==0) {
42 blobSize=myBlob.size();
43 }
44 else {
45 if (blobSize!=myBlob.size())
46 msg << MSG::ERROR <<
"Unequal blob size (" << blobSize <<
"/" << myBlob.size() <<
")" <<
endmsg;
47 }
48 }
49
52 return;
53}
const_iterator end() const
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
size_type size() const
number of Chan/AttributeList pairs
ChanAttrListMap::const_iterator const_iterator
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_isInitialized
| bool LArCondSuperCellBase::m_isInitialized |
|
protectedinherited |
◆ 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_nChannels
| unsigned LArSingleFloatBlob::m_nChannels |
|
protectedinherited |
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_pValues
| std::vector<const float*> LArSingleFloatBlob::m_pValues |
|
protectedinherited |
◆ m_scOnlineID
The documentation for this class was generated from the following files: