ATLAS Offline Software
Loading...
Searching...
No Matches
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
26class 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
37 private:
38 enum Feature {GAIN=0, NOISE=1, NFEATURES=2};
39
40 SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyGain{this, "ReadKeyGain", "/SCT/DAQ/Calibration/NPtGainDefects", "Key of input (raw) gain defect conditions folder"};
41 SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyNoise{this, "ReadKeyNoise", "/SCT/DAQ/Calibration/NoiseOccupancyDefects", "Key of input (raw) noise defect conditions folder"};
42 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
43 SG::WriteCondHandleKey<SCT_CalibDefectData> m_writeKeyGain{this, "WriteKeyGain", "SCT_CalibDefectNPtGain", "Key of output (derived) gain defect conditions data"};
44 SG::WriteCondHandleKey<SCT_CalibDefectData> m_writeKeyNoise{this, "WriteKeyNoise", "SCT_CalibDefectNPtNoise", "Key of output (derived) noise defect conditions data"};
45 SG::WriteCondHandleKey<SCT_AllGoodStripInfo> m_writeKeyInfo{this, "WriteKeyInfo", "SCT_AllGoodStripInfo", "Key of output (derived) good strip information conditions data"};
46
47 // Defect type map, contains Fit, NPtGain and No defects for now
48 std::map<int, std::string> m_defectMapIntToString{};
49 // Arrays to hold defects to ignore/limits
50 StringArrayProperty m_ignoreDefects{this, "IgnoreDefects", {}, "Defects to ignore"};
51 FloatArrayProperty m_ignoreDefectParameters{this, "IgnoreDefectsParameters", {}, "Limit on defect to ignore parameters"};
52
53 const SCT_ID* m_id_sct{nullptr};
54};
55
56#endif // SCT_ReadCalibDataCondAlg_h
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
header file for data object
Base class for conditions algorithms.
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyNoise
virtual ~SCT_ReadCalibDataCondAlg()=default
SG::WriteCondHandleKey< SCT_AllGoodStripInfo > m_writeKeyInfo
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SG::WriteCondHandleKey< SCT_CalibDefectData > m_writeKeyNoise
const SCT_ID * m_id_sct
Handle to SCT ID helper.
SG::WriteCondHandleKey< SCT_CalibDefectData > m_writeKeyGain
std::map< int, std::string > m_defectMapIntToString
virtual StatusCode execute(const EventContext &ctx) const override final
virtual StatusCode finalize() override final
virtual StatusCode initialize() override final
SCT_ReadCalibDataCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
FloatArrayProperty m_ignoreDefectParameters
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyGain
#define private