ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_DCSConditionsStatCondAlg.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_DCSCONDITIONSSTATCONDALG
8#define SCT_DCSCONDITIONSSTATCONDALG
9
11
14
17
18#include "Gaudi/Property.h"
19
21{
22 public:
23 SCT_DCSConditionsStatCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
24 virtual ~SCT_DCSConditionsStatCondAlg() = default;
25 virtual StatusCode initialize() override final;
26 virtual StatusCode execute(const EventContext& ctx) const override final;
27 virtual StatusCode finalize() override final;
28
29 private:
30 // Meaning of state word is found at
31 // https://twiki.cern.ch/twiki/bin/view/Atlas/SctDCSSoftware#Decoding_Status_words
32 enum StateWord {OFF=0x0,
33 ON=0x1,
35 MANUAL=0x3,
47 ANY=0xF};
48
49 SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyHV{this, "ReadKeyHV", "/SCT/DCS/HV", "Key of input (raw) HV conditions folder"};
50 SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyState{this, "ReadKeyState", "/SCT/DCS/CHANSTAT", "Key of input (raw) State conditions folder"};
51 SG::WriteCondHandleKey<SCT_DCSStatCondData> m_writeKeyState{this, "WriteKeyState", "SCT_DCSStatCondData", "Key of output (derived) State conditions data"};
52
53 bool m_doState{true};
54 BooleanProperty m_readAllDBFolders{this, "ReadAllDBFolders", true};
55 BooleanProperty m_returnHVTemp{this, "ReturnHVTemp", true};
56 StringProperty m_chanstatCut{this, "StateCut", "NORM"};
57 FloatProperty m_hvLowLimit{this, "HVCutLow", 0.0};
58 FloatProperty m_hvUpLimit{this, "HVCutUp", 1000000.0};
59 BooleanProperty m_useDefaultHV{this, "UseDefaultHV", false};
60 FloatProperty m_useHVLowLimit{this, "useHVLow", 19.};
61 FloatProperty m_useHVUpLimit{this, "useHVUp", 1000000.0};
62 StringProperty m_useHVChanCut{this, "useHVChan", "LOOSE"};
63};
64
65#endif // SCT_DCSCONDITIONSSTATCONDALG
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 for SCT_DCSConditionsStatCondAlg, SCT_DCSConditionsTool,...
Base class for conditions algorithms.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyState
virtual ~SCT_DCSConditionsStatCondAlg()=default
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyHV
SCT_DCSConditionsStatCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteCondHandleKey< SCT_DCSStatCondData > m_writeKeyState
virtual StatusCode execute(const EventContext &ctx) const override final
virtual StatusCode finalize() override final
virtual StatusCode initialize() override final
#define private