ATLAS Offline Software
LArCalorimeter
LArCOOLConditions
src
LArCondSuperCellBase.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/LArCondSuperCellBase.h
"
6
7
8
// Services/helpers
9
//#include "CaloIdentifier/CaloCell_SuperCell_ID.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
LArCondSuperCellBase::LArCondSuperCellBase
(
const
std::string&
name
) :
20
AthMessaging
(
name
),
21
m_isInitialized(false),
22
m_scOnlineID(nullptr)
23
{
24
}
25
26
27
LArCondSuperCellBase::~LArCondSuperCellBase
() {
28
}
29
30
StatusCode
LArCondSuperCellBase::initializeBase
() {
31
32
ATH_MSG_DEBUG
(
"initializeBase "
);
33
34
if
(
m_isInitialized
) {
35
ATH_MSG_DEBUG
(
"already initialized - returning "
);
36
return
(StatusCode::SUCCESS);
37
}
38
//Get SuperCellID ...
39
ISvcLocator* svcLoc = Gaudi::svcLocator( );
40
StoreGateSvc
*
detStore
=
nullptr
;
41
ATH_CHECK_WITH_CONTEXT
( svcLoc->service(
"DetectorStore"
,
detStore
),
"LArCondSuperCellBase"
);
42
ATH_CHECK_WITH_CONTEXT
(
detStore
->retrieve(
m_scOnlineID
,
"LArOnline_SuperCellID"
),
"LArCondSuperCellBase"
);
43
44
m_isInitialized
=
true
;
45
ATH_MSG_DEBUG
(
"end initializeBase "
);
46
return
(StatusCode::SUCCESS);
47
}
AthCheckMacros.h
LArCondSuperCellBase::m_scOnlineID
const LArOnline_SuperCellID * m_scOnlineID
Definition:
LArCondSuperCellBase.h:27
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:19
DataHandle.h
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
LArCondSuperCellBase::initializeBase
StatusCode initializeBase()
Definition:
LArCondSuperCellBase.cxx:30
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
LArCondSuperCellBase.h
LArCondSuperCellBase::~LArCondSuperCellBase
~LArCondSuperCellBase()
Definition:
LArCondSuperCellBase.cxx:27
LArCondSuperCellBase::m_isInitialized
bool m_isInitialized
Definition:
LArCondSuperCellBase.h:26
StoreGateSvc.h
Generated on Thu Jul 4 2024 21:20:10 for ATLAS Offline Software by
1.8.18