ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArCOOLConditions
src
LArCondFlatBase.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/LArCondFlatBase.h
"
6
7
8
// Services/helpers
9
#include "
LArIdentifier/LArOnlineID.h
"
10
11
// Gaudi/Athena
12
#include "GaudiKernel/Bootstrap.h"
13
#include "GaudiKernel/IService.h"
14
#include "GaudiKernel/ISvcLocator.h"
15
#include "
StoreGate/StoreGateSvc.h
"
16
#include "
AthenaBaseComps/AthCheckMacros.h
"
17
18
LArCondFlatBase::LArCondFlatBase
(
const
std::string& name) :
19
AthMessaging
(name),
20
m_isInitialized
(false),
21
m_onlineHelper
(nullptr)
22
{
23
}
24
25
StatusCode
LArCondFlatBase::initializeBase
() {
26
27
ATH_MSG_DEBUG
(
"initializeBase "
);
28
29
if
(
m_isInitialized
) {
30
ATH_MSG_DEBUG
(
"already initialized - returning "
);
31
return
(StatusCode::SUCCESS);
32
}
33
//Get LArOnlineID....
34
SmartIF<StoreGateSvc> detStore{Gaudi::svcLocator()->service(
"DetectorStore"
)};
35
ATH_CHECK_WITH_CONTEXT
( detStore.isValid(),
"LArCondFlatBase"
);
36
ATH_CHECK_WITH_CONTEXT
( detStore->retrieve(
m_onlineHelper
,
"LArOnlineID"
),
"LArCondFlatBase"
);
37
38
m_isInitialized
=
true
;
39
ATH_MSG_DEBUG
(
"end initializeBase "
);
40
return
(StatusCode::SUCCESS);
41
}
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
LArCondFlatBase.h
LArOnlineID.h
StoreGateSvc.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
LArCondFlatBase::LArCondFlatBase
LArCondFlatBase(const std::string &name)
Definition
LArCondFlatBase.cxx:18
LArCondFlatBase::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition
LArCondFlatBase.h:24
LArCondFlatBase::initializeBase
StatusCode initializeBase()
Definition
LArCondFlatBase.cxx:25
LArCondFlatBase::m_isInitialized
bool m_isInitialized
Definition
LArCondFlatBase.h:23
Generated on
for ATLAS Offline Software by
1.14.0