ATLAS Offline Software
LArXTalkWeightGlobalCondAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARRECUTILS_LARXTALKWEIGHTGLOBALCONDALG_H
6 #define LARRECUTILS_LARXTALKWEIGHTGLOBALCONDALG_H
7 
9 #include "StoreGate/DataHandle.h"
15 
17  public:
18  LArXTalkWeightGlobalCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
19  virtual ~LArXTalkWeightGlobalCondAlg() = default;
20  virtual StatusCode initialize() override;
21  virtual StatusCode execute(const EventContext& ctx) const override;
22  protected:
23  // Conditions keys write:
24  SG::WriteCondHandleKey<LArXTalkWeightGlobal> m_xtalkKey{this, "OutputKey", "LArXTalkWeightGlobal", "SG key for output"};
25  // Conditions key read in :
26  SG::ReadCondHandleKey<LArXTalkWeight> m_xtstripKey{this,"StripKey","LArXTalkWeight_strip","SG Key of XTalk strip object"};
27  SG::ReadCondHandleKey<LArXTalkWeight> m_xtstrip_ecKey{this,"Strip_ecKey","LArXTalkWeight_strip_ec","SG Key of XTalk strip_ec object"};
28  SG::ReadCondHandleKey<LArXTalkWeight> m_xtmiddlebackKey{this,"MiddleBackKey","LArXTalkWeight_middleback","SG Key of XTalk MiddleBack object"};
29  SG::ReadCondHandleKey<LArXTalkWeight> m_xtmiddleback_ecowKey{this,"MiddleBack_ecowKey","LArXTalkWeight_middleback_ecow","SG Key of XTalk MiddleBack ecow object"};
30  SG::ReadCondHandleKey<LArXTalkWeight> m_xtmiddleback_eciwKey{this,"MiddleBack_eciwKey","LArXTalkWeight_middleback_eciw","SG Key of XTalk MiddleBack eciw object"};
31  SG::ReadCondHandleKey<LArXTalkWeight> m_xtstripmiddleKey{this,"StripMiddleKey","LArXTalkWeight_stripmiddle","SG Key of XTalk StripMiddle object"};
32  SG::ReadCondHandleKey<LArXTalkWeight> m_xtstripmiddle_ecKey{this,"StripMiddle_ecKey","LArXTalkWeight_stripmiddle_ec","SG Key of XTalk StripMiddle ec object"};
33  SG::ReadCondHandleKey<LArXTalkWeight> m_xt2stripKey{this,"TwoStripKey","LArXTalkWeight_2strip","SG Key of XTalk 2strip object"};
34  SG::ReadCondHandleKey<LArXTalkWeight> m_xt2strip_ecKey{this,"Two2Strip_ecKey","LArXTalkWeight_2strip_ec","SG Key of XTalk 2strip_ec object"};
35  SG::ReadCondHandleKey<LArXTalkWeight> m_xtmiddle1Key{this,"Middle1Key","LArXTalkWeight_middle1","SG Key of XTalk Middle1 object"};
36  SG::ReadCondHandleKey<LArXTalkWeight> m_xtmiddle2Key{this,"Middle2Key","LArXTalkWeight_middle2","SG Key of XTalk Middle2 object"};
37  SG::ReadCondHandleKey<LArXTalkWeight> m_xtmiddle1_ecKey{this,"Middle1_ecKey","LArXTalkWeight_middle1_ec","SG Key of XTalk Middle1 ec object"};
38  SG::ReadCondHandleKey<LArXTalkWeight> m_xtmiddle2_ecKey{this,"Middle2_ecKey","LArXTalkWeight_middle2_ec","SG Key of XTalk Middle2 ec object"};
39 
40  const LArXTalkWeight* pointerFromKey(const EventContext& context, const SG::ReadCondHandleKey<LArXTalkWeight>& key) const;
41 };
42 
44  SG::ReadCondHandle<LArXTalkWeight> aHandle(key, context);
45  return *aHandle;
46 }
47 
48 #endif
49 
LArXTalkWeightGlobal.h
LArXTalkWeight
Definition: LArXTalkWeight.h:10
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
LArXTalkWeight.h
LArXTalkWeightGlobalCondAlg::~LArXTalkWeightGlobalCondAlg
virtual ~LArXTalkWeightGlobalCondAlg()=default
LArXTalkWeightGlobalCondAlg::initialize
virtual StatusCode initialize() override
Definition: LArXTalkWeightGlobalCondAlg.cxx:12
LArXTalkWeightGlobalCondAlg::m_xtmiddleback_ecowKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddleback_ecowKey
Definition: LArXTalkWeightGlobalCondAlg.h:29
LArXTalkWeightGlobalCondAlg
Definition: LArXTalkWeightGlobalCondAlg.h:16
WriteCondHandleKey.h
LArXTalkWeightGlobalCondAlg::m_xtmiddle1Key
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddle1Key
Definition: LArXTalkWeightGlobalCondAlg.h:35
LArXTalkWeightGlobalCondAlg::LArXTalkWeightGlobalCondAlg
LArXTalkWeightGlobalCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArXTalkWeightGlobalCondAlg.cxx:8
LArXTalkWeightGlobalCondAlg::m_xtstripmiddle_ecKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtstripmiddle_ecKey
Definition: LArXTalkWeightGlobalCondAlg.h:32
LArXTalkWeightGlobalCondAlg::m_xt2strip_ecKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xt2strip_ecKey
Definition: LArXTalkWeightGlobalCondAlg.h:34
DataHandle.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LArXTalkWeightGlobalCondAlg::m_xtmiddle1_ecKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddle1_ecKey
Definition: LArXTalkWeightGlobalCondAlg.h:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArXTalkWeightGlobalCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: LArXTalkWeightGlobalCondAlg.cxx:32
LArXTalkWeightGlobalCondAlg::m_xtmiddleback_eciwKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddleback_eciwKey
Definition: LArXTalkWeightGlobalCondAlg.h:30
LArXTalkWeightGlobalCondAlg::m_xtstripKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtstripKey
Definition: LArXTalkWeightGlobalCondAlg.h:26
LArXTalkWeightGlobalCondAlg::m_xtstripmiddleKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtstripmiddleKey
Definition: LArXTalkWeightGlobalCondAlg.h:31
CondHandleKeyArray.h
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArXTalkWeightGlobalCondAlg::m_xtmiddle2_ecKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddle2_ecKey
Definition: LArXTalkWeightGlobalCondAlg.h:38
LArXTalkWeightGlobalCondAlg::m_xtstrip_ecKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtstrip_ecKey
Definition: LArXTalkWeightGlobalCondAlg.h:27
LArXTalkWeightGlobalCondAlg::pointerFromKey
const LArXTalkWeight * pointerFromKey(const EventContext &context, const SG::ReadCondHandleKey< LArXTalkWeight > &key) const
Definition: LArXTalkWeightGlobalCondAlg.h:43
SG::ReadCondHandleKey< LArXTalkWeight >
LArXTalkWeightGlobalCondAlg::m_xtmiddle2Key
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddle2Key
Definition: LArXTalkWeightGlobalCondAlg.h:36
LArXTalkWeightGlobalCondAlg::m_xt2stripKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xt2stripKey
Definition: LArXTalkWeightGlobalCondAlg.h:33
LArXTalkWeightGlobalCondAlg::m_xtalkKey
SG::WriteCondHandleKey< LArXTalkWeightGlobal > m_xtalkKey
Definition: LArXTalkWeightGlobalCondAlg.h:24
SG::WriteCondHandleKey< LArXTalkWeightGlobal >
LArXTalkWeightGlobalCondAlg::m_xtmiddlebackKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddlebackKey
Definition: LArXTalkWeightGlobalCondAlg.h:28
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37