ATLAS Offline Software
Loading...
Searching...
No Matches
LArCondSuperCellBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 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"
14
16 AthMessaging(name),
17 m_isInitialized(false),
18 m_scOnlineID(nullptr)
19{
20}
21
23
24 ATH_MSG_DEBUG( "initializeBase " );
25
26 if (m_isInitialized) {
27 ATH_MSG_DEBUG( "already initialized - returning " );
28 return (StatusCode::SUCCESS);
29 }
30 //Get SuperCellID ...
31 SmartIF<StoreGateSvc> detStore{Gaudi::svcLocator()->service("DetectorStore")};
32 ATH_CHECK_WITH_CONTEXT( detStore.isValid(), "LArCondSuperCellBase" );
33 ATH_CHECK_WITH_CONTEXT( detStore->retrieve( m_scOnlineID,"LArOnline_SuperCellID"), "LArCondSuperCellBase" );
34
35 m_isInitialized = true;
36 ATH_MSG_DEBUG( "end initializeBase " );
37 return (StatusCode::SUCCESS);
38}
#define ATH_CHECK_WITH_CONTEXT
Evaluate an expression and check for errors, with an explicitly specified context name.
#define ATH_MSG_DEBUG(x)
defines an "iterator" over instances of a given type in StoreGateSvc
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
const LArOnline_SuperCellID * m_scOnlineID
LArCondSuperCellBase(const std::string &name)