ATLAS Offline Software
SCT_ReadCalibDataCondAlg.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_ReadCalibDataCondAlg_h
8 #define SCT_ReadCalibDataCondAlg_h
9 
11 
15 
19 
20 #include "Gaudi/Property.h"
21 
22 #include <map>
23 #include <vector>
24 
25 // Forward declarations
26 class SCT_ID;
27 
29 {
30  public:
31  SCT_ReadCalibDataCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
32  virtual ~SCT_ReadCalibDataCondAlg() = default;
33  virtual StatusCode initialize() override final;
34  virtual StatusCode execute(const EventContext& ctx) const override final;
35  virtual StatusCode finalize() override final;
36  virtual bool isReEntrant() const override final { return false; }
37 
38  private:
39  enum Feature {GAIN=0, NOISE=1, NFEATURES=2};
40 
41  SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyGain{this, "ReadKeyGain", "/SCT/DAQ/Calibration/NPtGainDefects", "Key of input (raw) gain defect conditions folder"};
42  SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyNoise{this, "ReadKeyNoise", "/SCT/DAQ/Calibration/NoiseOccupancyDefects", "Key of input (raw) noise defect conditions folder"};
43  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
44  SG::WriteCondHandleKey<SCT_CalibDefectData> m_writeKeyGain{this, "WriteKeyGain", "SCT_CalibDefectNPtGain", "Key of output (derived) gain defect conditions data"};
45  SG::WriteCondHandleKey<SCT_CalibDefectData> m_writeKeyNoise{this, "WriteKeyNoise", "SCT_CalibDefectNPtNoise", "Key of output (derived) noise defect conditions data"};
46  SG::WriteCondHandleKey<SCT_AllGoodStripInfo> m_writeKeyInfo{this, "WriteKeyInfo", "SCT_AllGoodStripInfo", "Key of output (derived) good strip information conditions data"};
47 
48  // Defect type map, contains Fit, NPtGain and No defects for now
49  std::map<int, std::string> m_defectMapIntToString{};
50  // Arrays to hold defects to ignore/limits
51  StringArrayProperty m_ignoreDefects{this, "IgnoreDefects", {}, "Defects to ignore"};
52  FloatArrayProperty m_ignoreDefectParameters{this, "IgnoreDefectsParameters", {}, "Limit on defect to ignore parameters"};
53 
54  const SCT_ID* m_id_sct{nullptr};
55 };
56 
57 #endif // SCT_ReadCalibDataCondAlg_h
SCT_ReadCalibDataCondAlg::SCT_ReadCalibDataCondAlg
SCT_ReadCalibDataCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_ReadCalibDataCondAlg.cxx:29
SCT_ReadCalibDataCondAlg::m_writeKeyNoise
SG::WriteCondHandleKey< SCT_CalibDefectData > m_writeKeyNoise
Definition: SCT_ReadCalibDataCondAlg.h:45
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
SCT_CalibDefectData.h
WriteCondHandleKey.h
SCT_ReadCalibDataCondAlg::NFEATURES
@ NFEATURES
Definition: SCT_ReadCalibDataCondAlg.h:39
SCT_ReadCalibDataCondAlg::m_id_sct
const SCT_ID * m_id_sct
Handle to SCT ID helper.
Definition: SCT_ReadCalibDataCondAlg.h:54
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SCT_ReadCalibDataCondAlg::m_readKeyNoise
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyNoise
Definition: SCT_ReadCalibDataCondAlg.h:42
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_ReadCalibDataCondAlg::finalize
virtual StatusCode finalize() override final
Definition: SCT_ReadCalibDataCondAlg.cxx:324
SCT_ReadCalibDataCondAlg::m_writeKeyInfo
SG::WriteCondHandleKey< SCT_AllGoodStripInfo > m_writeKeyInfo
Definition: SCT_ReadCalibDataCondAlg.h:46
SCT_ReadCalibDataCondAlg::NOISE
@ NOISE
Definition: SCT_ReadCalibDataCondAlg.h:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_ReadCalibDataCondAlg::m_readKeyGain
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyGain
Definition: SCT_ReadCalibDataCondAlg.h:41
SCT_ReadCalibDataCondAlg
Definition: SCT_ReadCalibDataCondAlg.h:29
SCT_AllGoodStripInfo.h
SCT_ReadCalibDataCondAlg::m_writeKeyGain
SG::WriteCondHandleKey< SCT_CalibDefectData > m_writeKeyGain
Definition: SCT_ReadCalibDataCondAlg.h:44
ReadCondHandleKey.h
AthReentrantAlgorithm.h
SCT_ReadCalibDataCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: SCT_ReadCalibDataCondAlg.h:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_ReadCalibDataCondAlg::Feature
Feature
Definition: SCT_ReadCalibDataCondAlg.h:39
SCT_ReadCalibDataCondAlg::initialize
virtual StatusCode initialize() override final
Definition: SCT_ReadCalibDataCondAlg.cxx:55
SiDetectorElementCollection.h
SCT_ReadCalibDataCondAlg::m_ignoreDefects
StringArrayProperty m_ignoreDefects
Definition: SCT_ReadCalibDataCondAlg.h:51
SCT_ReadCalibDataCondAlg::m_ignoreDefectParameters
FloatArrayProperty m_ignoreDefectParameters
Definition: SCT_ReadCalibDataCondAlg.h:52
SCT_ReadCalibDataCondAlg::m_defectMapIntToString
std::map< int, std::string > m_defectMapIntToString
Definition: SCT_ReadCalibDataCondAlg.h:49
SG::ReadCondHandleKey< CondAttrListCollection >
SCT_ID
Definition: SCT_ID.h:68
SCT_ReadCalibDataCondAlg::GAIN
@ GAIN
Definition: SCT_ReadCalibDataCondAlg.h:39
SG::WriteCondHandleKey< SCT_CalibDefectData >
SCT_ReadCalibDataCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: SCT_ReadCalibDataCondAlg.cxx:111
SCT_ReadCalibDataCondAlg::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition: SCT_ReadCalibDataCondAlg.h:43
SCT_ReadCalibDataCondAlg::~SCT_ReadCalibDataCondAlg
virtual ~SCT_ReadCalibDataCondAlg()=default