ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7// Gaudi/Athena
8#include "GaudiKernel/Bootstrap.h"
9#include "GaudiKernel/IService.h"
10#include "GaudiKernel/ISvcLocator.h"
13
15 AthMessaging(name),
16 m_isInitialized(false),
17 m_scOnlineID(nullptr)
18{
19}
20
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}
#define ATH_CHECK_WITH_CONTEXT
Evaluate an expression and check for errors, with an explicitly specified context name.
#define ATH_MSG_DEBUG(x)
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
const LArOnline_SuperCellID * m_scOnlineID
LArCondSuperCellBase(const std::string &name)