|
ATLAS Offline Software
|
Go to the documentation of this file.
23 ATH_MSG_ERROR(
"Configuration problem: Both uA2MeVKey and DACuAKey are emtpy");
24 return StatusCode::FAILURE;
34 NTuple::Item<long> cellIndex;
35 NTuple::Item<float> uA2MeV;
36 NTuple::Item<float> DAC2uA;
38 sc=
m_nt->addItem(
"icell",cellIndex,0,2000);
39 if (
sc!=StatusCode::SUCCESS) {
41 return StatusCode::FAILURE;
45 sc=
m_nt->addItem(
"uAMeV",uA2MeV,-1000.,5000.);
46 if (
sc!=StatusCode::SUCCESS) {
48 return StatusCode::FAILURE;
53 sc=
m_nt->addItem(
"DAC2uA",DAC2uA,-1000.,5000.);
54 if (
sc!=StatusCode::SUCCESS) {
56 return StatusCode::FAILURE;
65 if (!laruA2MeVComplete) {
67 laruA2MeVComplete=*ua2MeVHdl;
69 if (!laruA2MeVComplete) {
71 <<
m_uA2MeVKey.
key() <<
"from DetectorStore nor from ConditonsStore");
72 return StatusCode::FAILURE;
79 if (!larDAC2uAComplete) {
81 larDAC2uAComplete=*DAC2uAHdl;
83 if (!larDAC2uAComplete) {
85 <<
m_DAC2uAKey.
key() <<
"from DetectorStore nor from ConditonsStore");
86 return StatusCode::FAILURE;
94 return StatusCode::FAILURE;
97 unsigned cellCounter=0;
99 if (
cabling->isOnlineConnected(hwid)) {
100 if (laruA2MeVComplete) uA2MeV=laruA2MeVComplete->
UA2MEV(hwid);
101 if (larDAC2uAComplete) DAC2uA=larDAC2uAComplete->
DAC2UA(hwid);
103 cellIndex=cellCounter;
106 if (
sc!=StatusCode::SUCCESS) {
108 return StatusCode::FAILURE;
115 return StatusCode::SUCCESS;
virtual const float & DAC2UA(const HWIdentifier &id) const =0
access to DAC2UA conversion factor index by Identifier, and gain setting
virtual const float & UA2MEV(const HWIdentifier &id) const =0
SG::ReadCondHandleKey< ILAruA2MeV > m_uA2MeVKey
virtual StatusCode stop()
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
id_range channel_range() const
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
const LArOnlineID_Base * m_onlineId
bool fillFromIdentifier(const HWIdentifier &id)
#define ATH_MSG_WARNING(x)
SG::ReadCondHandleKey< ILArDAC2uA > m_DAC2uAKey
LAruA2MeV2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)