ATLAS Offline Software
RpcCondDbAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCONDALG_RPCCONDDBALG_H
6 #define MUONCONDALG_RPCCONDDBALG_H
7 
8 // STL includes
9 #include <zlib.h>
10 
11 #include <sstream>
12 #include <string>
13 #include <vector>
14 
15 // Gaudi includes
16 #include "GaudiKernel/ServiceHandle.h"
17 
18 // Athena includes
22 #include "CxxUtils/StringUtils.h"
26 
28 public:
29  RpcCondDbAlg(const std::string &name, ISvcLocator *svc);
30  virtual ~RpcCondDbAlg() = default;
31  virtual StatusCode initialize() override;
32  virtual StatusCode execute(const EventContext &) const override;
33  virtual bool isReEntrant() const override { return false; }
34 
35 private:
36  template <class WriteCont>
37  StatusCode addCondDependency(const EventContext& ctx,
39  SG::WriteCondHandle<WriteCont>& writeHandle) const;
40 
41  StatusCode loadMcElementStatus(const EventContext & ctx, RpcCondDbData& condData) const;
42 
43 
44  Gaudi::Property<bool> m_isData{this, "isData", false};
45 
46  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
47 
48  SG::WriteCondHandleKey<RpcCondDbData> m_writeKey{this, "WriteKey", "RpcCondDbData", "Key of output RPC condition data"};
49 
50  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey_folder_mc_deadElements{this, "ReadKey_MC_DE", "/RPC/DQMF/ELEMENT_STATUS",
51  "Key of input RPC condition data for MC dead elements"};
52 
53 };
54 
55 #endif
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
RpcCondDbData.h
RpcCondDbAlg
Definition: RpcCondDbAlg.h:27
StringUtils.h
WriteCondHandleKey.h
RpcCondDbAlg::m_writeKey
SG::WriteCondHandleKey< RpcCondDbData > m_writeKey
Definition: RpcCondDbAlg.h:48
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
RpcCondDbAlg::initialize
virtual StatusCode initialize() override
Definition: RpcCondDbAlg.cxx:14
RpcCondDbAlg::~RpcCondDbAlg
virtual ~RpcCondDbAlg()=default
RpcCondDbData
Definition: RpcCondDbData.h:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
RpcCondDbAlg::loadMcElementStatus
StatusCode loadMcElementStatus(const EventContext &ctx, RpcCondDbData &condData) const
Definition: RpcCondDbAlg.cxx:60
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
RpcCondDbAlg::m_isData
Gaudi::Property< bool > m_isData
Definition: RpcCondDbAlg.h:44
RpcCondDbAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RpcCondDbAlg.h:46
SG::ReadCondHandleKey< CondAttrListCollection >
RpcCondDbAlg::m_readKey_folder_mc_deadElements
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_folder_mc_deadElements
Definition: RpcCondDbAlg.h:50
RpcCondDbAlg::addCondDependency
StatusCode addCondDependency(const EventContext &ctx, const SG::ReadCondHandleKey< CondAttrListCollection > &key, SG::WriteCondHandle< WriteCont > &writeHandle) const
Definition: RpcCondDbAlg.cxx:23
SG::WriteCondHandleKey< RpcCondDbData >
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
IMuonIdHelperSvc.h
RpcCondDbAlg::isReEntrant
virtual bool isReEntrant() const override
Definition: RpcCondDbAlg.h:33
RpcCondDbAlg::RpcCondDbAlg
RpcCondDbAlg(const std::string &name, ISvcLocator *svc)
Definition: RpcCondDbAlg.cxx:10
RpcCondDbAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: RpcCondDbAlg.cxx:36
ServiceHandle< Muon::IMuonIdHelperSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37