ATLAS Offline Software
LArCalorimeter
LArCOOLConditions
src
LArCondFlatBase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 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 "
StoreGate/DataHandle.h
"
17
#include "
AthenaBaseComps/AthCheckMacros.h
"
18
19
LArCondFlatBase::LArCondFlatBase
(
const
std::string&
name
) :
20
AthMessaging
(
name
),
21
m_isInitialized(false),
22
m_onlineHelper(nullptr)
23
{
24
}
25
26
LArCondFlatBase::~LArCondFlatBase
() {
27
}
28
29
StatusCode
LArCondFlatBase::initializeBase
() {
30
31
ATH_MSG_DEBUG
(
"initializeBase "
);
32
33
if
(
m_isInitialized
) {
34
ATH_MSG_DEBUG
(
"already initialized - returning "
);
35
return
(StatusCode::SUCCESS);
36
}
37
//Get LArOnlineID....
38
ISvcLocator* svcLoc = Gaudi::svcLocator( );
39
StoreGateSvc
*
detStore
;
40
ATH_CHECK_WITH_CONTEXT
( svcLoc->service(
"DetectorStore"
,
detStore
),
"LArCondFlatBase"
);
41
ATH_CHECK_WITH_CONTEXT
(
detStore
->retrieve(
m_onlineHelper
,
"LArOnlineID"
),
"LArCondFlatBase"
);
42
43
m_isInitialized
=
true
;
44
ATH_MSG_DEBUG
(
"end initializeBase "
);
45
return
(StatusCode::SUCCESS);
46
}
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
LArCondFlatBase::m_isInitialized
bool m_isInitialized
Definition:
LArCondFlatBase.h:28
LArCondFlatBase::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition:
LArCondFlatBase.h:29
DataHandle.h
LArCondFlatBase::~LArCondFlatBase
~LArCondFlatBase()
Definition:
LArCondFlatBase.cxx:26
LArCondFlatBase::LArCondFlatBase
LArCondFlatBase(const std::string &name)
Definition:
LArCondFlatBase.cxx:19
StoreGateSvc
The Athena Transient Store API.
Definition:
StoreGateSvc.h:128
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
LArCondFlatBase.h
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:195
LArCondFlatBase::initializeBase
StatusCode initializeBase()
Definition:
LArCondFlatBase.cxx:29
StoreGateSvc.h
LArOnlineID.h
Generated on Thu Jul 4 2024 21:20:07 for ATLAS Offline Software by
1.8.18