ATLAS Offline Software
LArCalorimeter
LArCOOLConditions
src
LArCondSuperCellBase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArCOOLConditions/LArCondSuperCellBase.h
"
6
7
// Gaudi/Athena
8
#include "GaudiKernel/Bootstrap.h"
9
#include "GaudiKernel/IService.h"
10
#include "GaudiKernel/ISvcLocator.h"
11
#include "
StoreGate/StoreGateSvc.h
"
12
#include "
StoreGate/DataHandle.h
"
13
#include "
AthenaBaseComps/AthCheckMacros.h
"
14
15
LArCondSuperCellBase::LArCondSuperCellBase
(
const
std::string&
name
) :
16
AthMessaging
(
name
),
17
m_isInitialized(false),
18
m_scOnlineID(nullptr)
19
{
20
}
21
22
StatusCode
LArCondSuperCellBase::initializeBase
() {
23
24
ATH_MSG_DEBUG
(
"initializeBase "
);
25
26
if
(
m_isInitialized
) {
27
ATH_MSG_DEBUG
(
"already initialized - returning "
);
28
return
(StatusCode::SUCCESS);
29
}
30
//Get SuperCellID ...
31
SmartIF<StoreGateSvc>
detStore
{Gaudi::svcLocator()->service(
"DetectorStore"
)};
32
ATH_CHECK_WITH_CONTEXT
(
detStore
.isValid(),
"LArCondSuperCellBase"
);
33
ATH_CHECK_WITH_CONTEXT
(
detStore
->retrieve(
m_scOnlineID
,
"LArOnline_SuperCellID"
),
"LArCondSuperCellBase"
);
34
35
m_isInitialized
=
true
;
36
ATH_MSG_DEBUG
(
"end initializeBase "
);
37
return
(StatusCode::SUCCESS);
38
}
AthCheckMacros.h
LArCondSuperCellBase::m_scOnlineID
const LArOnline_SuperCellID * m_scOnlineID
Definition:
LArCondSuperCellBase.h:23
ATH_CHECK_WITH_CONTEXT
#define ATH_CHECK_WITH_CONTEXT
Evaluate an expression and check for errors, with an explicitly specified context name.
Definition:
AthCheckMacros.h:36
LArCondSuperCellBase::LArCondSuperCellBase
LArCondSuperCellBase(const std::string &name)
Definition:
LArCondSuperCellBase.cxx:15
DataHandle.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
LArCondSuperCellBase::initializeBase
StatusCode initializeBase()
Definition:
LArCondSuperCellBase.cxx:22
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition:
AthMessaging.h:55
python.PyKernel.detStore
detStore
Definition:
PyKernel.py:41
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
LArCondSuperCellBase.h
LArCondSuperCellBase::m_isInitialized
bool m_isInitialized
Definition:
LArCondSuperCellBase.h:22
StoreGateSvc.h
Generated on Sun Dec 22 2024 21:13:23 for ATLAS Offline Software by
1.8.18