#include <LArRampFlat.h>
|
| 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)
|
| std::vector< const float * > | m_pRamp |
Definition at line 17 of file LArRampFlat.h.
◆ RampRef_t
This class defines the interface for accessing Ramp @stereotype Interface.
- Author
- H. Ma
- Version
- 0-0-1 , 22/08/2002
Modifications: W. Lampl, S. Laplace, 10/12/2003:
- Add method using online ID
- Add 3rd argument isOffline S. Laplace, 16/01/2004: WARNING -> IMPORTANT CHANGE !
- ILArRamp now contains the ADC to DAC conversion factor only (not ADC to GeV anymore). S. Laplace, 08/02/2004
- new online ID
Definition at line 31 of file ILArRamp.h.
◆ anonymous enum
◆ LArRampFlat() [1/2]
| LArRampFlat::LArRampFlat |
( |
| ) |
|
|
private |
Definition at line 9 of file LArRampFlat.cxx.
11{}
LArCondFlatBase(const std::string &name)
◆ LArRampFlat() [2/2]
Definition at line 16 of file LArRampFlat.cxx.
18{
20
22}
MsgStream & msg() const
The standard message stream.
StatusCode initializeBase()
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
◆ ~LArRampFlat()
| LArRampFlat::~LArRampFlat |
( |
| ) |
|
|
virtual |
◆ ADC2DAC()
Implements ILArRamp.
Definition at line 24 of file LArRampFlat.cxx.
25{
27}
const LArOnlineID * m_onlineHelper
ILArRamp::RampRef_t ADC2DACByHash(const IdentifierHash &hs, int gain) const
◆ ADC2DACByHash()
Definition at line 28 of file LArRampBlob.h.
28 {
30 if (*start==
static_cast<float>(
ERRORCODE))
32 else
34 }
LArVectorProxy RampRef_t
This class defines the interface for accessing Ramp @stereotype Interface.
std::vector< const float * > m_pRamp
◆ good()
| bool LArRampFlat::good |
( |
| ) |
const |
|
inline |
◆ initializeBase()
| StatusCode LArCondFlatBase::initializeBase |
( |
| ) |
|
|
inherited |
Definition at line 26 of file LArCondFlatBase.cxx.
26 {
27
29
32 return (StatusCode::SUCCESS);
33 }
34
35 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
38
41 return (StatusCode::SUCCESS);
42}
#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()
Definition at line 18 of file LArRampBlob.cxx.
18 {
22
23 if (!attrList) return;
24
27
29 msg << MSG::DEBUG <<
"Found data for " << attrList->
size() <<
" gains." <<
endmsg;
30
31 int blobSize=0;
32
33 for(;gainIt!=gainIt_e;++gainIt) {
34 const unsigned gain=gainIt->first;
35 if (gain>=attrList->
size() || gain>2) {
36 msg << MSG::ERROR <<
"Found unexpected COOL-channel (=gain) number:" <<
gain <<
endmsg;
37 return;
38 }
39 const coral::AttributeList& attr=gainIt->second;
40 const coral::Blob& rampBlob = attr["RampVec"].data<coral::Blob>();
41 if (blobSize==0) blobSize=rampBlob.size();
43
44
45 if (blobSize!=rampBlob.size()) {
46 msg << MSG::ERROR <<
"Unequal blob size (" << blobSize <<
"/"
47 << rampBlob.size() <<
")" <<
endmsg;
48 return;
49 }
51 msg << MSG::ERROR <<
"Unequal polynom degree (" <<
m_nPoints <<
"/"
52 << attr[
"nPoints"].data<
unsigned>() <<
")" <<
endmsg;
53 return;
54 }
55
56 m_pRamp[
gain]=
static_cast<const float*
>(rampBlob.startingAddress());
57 }
58
59
61 msg << MSG::ERROR <<
"Number of points is zero!" <<
endmsg;
62 return;
63 }
66 return;
67}
char data[hepevt_bytes_allocation_ATLAS]
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 LArCondFlatBase::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 LArRampBlob::m_nChannels |
|
protectedinherited |
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_nPoints
| unsigned LArRampBlob::m_nPoints |
|
protectedinherited |
◆ m_onlineHelper
◆ m_pRamp
| std::vector<const float*> LArRampBlob::m_pRamp |
|
privateinherited |
The documentation for this class was generated from the following files: