ATLAS Offline Software
SCT_ReadCalibChipGainCondAlg.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef SCT_ReadCalibChipGainCondAlg_h
8 #define SCT_ReadCalibChipGainCondAlg_h
9 
10 // Include parent class
12 
13 // Include Gaudi classes
14 #include "Gaudi/Property.h"
15 
16 // Include Athena classes
21 
22 // Forward declarations
23 class SCT_ID;
24 
26 {
27  public:
28  SCT_ReadCalibChipGainCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
29  virtual ~SCT_ReadCalibChipGainCondAlg() = default;
30  virtual StatusCode initialize() override final;
31  virtual StatusCode execute(const EventContext& ctx) const override final;
32  virtual StatusCode finalize() override final;
33  virtual bool isReEntrant() const override final { return false; }
34 
35  private:
36  static void insertNptGainFolderData(SCT_ModuleGainCalibData& theseCalibData, const coral::AttributeList& folderData) ;
37 
38  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey{this, "ReadKey", "/SCT/DAQ/Calibration/ChipGain", "Key of input (raw) gain conditions folder"};
39  SG::WriteCondHandleKey<SCT_GainCalibData> m_writeKey{this, "WriteKey", "SCT_GainCalibData", "Key of output (derived) gain conditions data"};
40  const SCT_ID* m_id_sct{nullptr};
41 };
42 
43 #endif // SCT_ReadCalibChipGainCondAlg_h
SCT_ReadCalibChipGainCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: SCT_ReadCalibChipGainCondAlg.h:33
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
SCT_ReadCalibChipGainCondAlg::~SCT_ReadCalibChipGainCondAlg
virtual ~SCT_ReadCalibChipGainCondAlg()=default
WriteCondHandleKey.h
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SCT_ReadCalibChipGainCondAlg::m_id_sct
const SCT_ID * m_id_sct
Handle to SCT ID helper.
Definition: SCT_ReadCalibChipGainCondAlg.h:40
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_GainCalibData.h
header file for data object for gain parameters for all modules
SCT_ReadCalibChipGainCondAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition: SCT_ReadCalibChipGainCondAlg.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_ReadCalibChipGainCondAlg::insertNptGainFolderData
static void insertNptGainFolderData(SCT_ModuleGainCalibData &theseCalibData, const coral::AttributeList &folderData)
Definition: SCT_ReadCalibChipGainCondAlg.cxx:110
SCT_ReadCalibChipGainCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: SCT_ReadCalibChipGainCondAlg.cxx:38
SCT_ModuleGainCalibData
std::array< SCT_ModuleCalibParameter, SCT_ConditionsData::N_NPTGAIN > SCT_ModuleGainCalibData
Typedef for data object used in SCT_ReadCalibChipGainCondAlg and SCT_ReadCalibChipDataTool.
Definition: SCT_ModuleGainCalibData.h:26
SCT_ReadCalibChipGainCondAlg::finalize
virtual StatusCode finalize() override final
Definition: SCT_ReadCalibChipGainCondAlg.cxx:104
ReadCondHandleKey.h
AthReentrantAlgorithm.h
SCT_ReadCalibChipGainCondAlg::initialize
virtual StatusCode initialize() override final
Definition: SCT_ReadCalibChipGainCondAlg.cxx:24
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_ReadCalibChipGainCondAlg::m_writeKey
SG::WriteCondHandleKey< SCT_GainCalibData > m_writeKey
Definition: SCT_ReadCalibChipGainCondAlg.h:39
SG::ReadCondHandleKey< CondAttrListCollection >
SCT_ReadCalibChipGainCondAlg
Definition: SCT_ReadCalibChipGainCondAlg.h:26
SCT_ID
Definition: SCT_ID.h:68
SG::WriteCondHandleKey< SCT_GainCalibData >
SCT_ReadCalibChipGainCondAlg::SCT_ReadCalibChipGainCondAlg
SCT_ReadCalibChipGainCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_ReadCalibChipGainCondAlg.cxx:19