ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArCOOLConditions
src
LArCondSuperCellBase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 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 "
AthenaBaseComps/AthCheckMacros.h
"
13
14
LArCondSuperCellBase::LArCondSuperCellBase
(
const
std::string& name) :
15
AthMessaging
(name),
16
m_isInitialized
(false),
17
m_scOnlineID
(nullptr)
18
{
19
}
20
21
StatusCode
LArCondSuperCellBase::initializeBase
() {
22
23
ATH_MSG_DEBUG
(
"initializeBase "
);
24
25
if
(
m_isInitialized
) {
26
ATH_MSG_DEBUG
(
"already initialized - returning "
);
27
return
(StatusCode::SUCCESS);
28
}
29
//Get SuperCellID ...
30
SmartIF<StoreGateSvc> detStore{Gaudi::svcLocator()->service(
"DetectorStore"
)};
31
ATH_CHECK_WITH_CONTEXT
( detStore.isValid(),
"LArCondSuperCellBase"
);
32
ATH_CHECK_WITH_CONTEXT
( detStore->retrieve(
m_scOnlineID
,
"LArOnline_SuperCellID"
),
"LArCondSuperCellBase"
);
33
34
m_isInitialized
=
true
;
35
ATH_MSG_DEBUG
(
"end initializeBase "
);
36
return
(StatusCode::SUCCESS);
37
}
AthCheckMacros.h
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
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
LArCondSuperCellBase.h
StoreGateSvc.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
LArCondSuperCellBase::initializeBase
StatusCode initializeBase()
Definition
LArCondSuperCellBase.cxx:21
LArCondSuperCellBase::m_isInitialized
bool m_isInitialized
Definition
LArCondSuperCellBase.h:22
LArCondSuperCellBase::m_scOnlineID
const LArOnline_SuperCellID * m_scOnlineID
Definition
LArCondSuperCellBase.h:23
LArCondSuperCellBase::LArCondSuperCellBase
LArCondSuperCellBase(const std::string &name)
Definition
LArCondSuperCellBase.cxx:14
Generated on
for ATLAS Offline Software by
1.14.0