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