ATLAS Offline Software
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  virtual bool isReEntrant() const override final { return false; }
29 
30  private:
31  // Meaning of state word is found at
32  // https://twiki.cern.ch/twiki/bin/view/Atlas/SctDCSSoftware#Decoding_Status_words
33  enum StateWord {OFF=0x0,
34  ON=0x1,
35  STANDBY=0x2,
36  MANUAL=0x3,
37  MASK_OFF=0x4,
38  MASK_ON=0x5,
40  DISABLED=0x7,
41  RAMPING=0x8,
43  TRIP_HW=0xA,
44  TRIP_SW=0xB,
46  NO_MATCH=0xD,
47  UNKNOWN=0xE,
48  ANY=0xF};
49 
50  SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyHV{this, "ReadKeyHV", "/SCT/DCS/HV", "Key of input (raw) HV conditions folder"};
51  SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyState{this, "ReadKeyState", "/SCT/DCS/CHANSTAT", "Key of input (raw) State conditions folder"};
52  SG::WriteCondHandleKey<SCT_DCSStatCondData> m_writeKeyState{this, "WriteKeyState", "SCT_DCSStatCondData", "Key of output (derived) State conditions data"};
53 
54  bool m_doState{true};
55  BooleanProperty m_readAllDBFolders{this, "ReadAllDBFolders", true};
56  BooleanProperty m_returnHVTemp{this, "ReturnHVTemp", true};
57  StringProperty m_chanstatCut{this, "StateCut", "NORM"};
58  FloatProperty m_hvLowLimit{this, "HVCutLow", 0.0};
59  FloatProperty m_hvUpLimit{this, "HVCutUp", 1000000.0};
60  BooleanProperty m_useDefaultHV{this, "UseDefaultHV", false};
61  FloatProperty m_useHVLowLimit{this, "useHVLow", 19.};
62  FloatProperty m_useHVUpLimit{this, "useHVUp", 1000000.0};
63  StringProperty m_useHVChanCut{this, "useHVChan", "LOOSE"};
64 };
65 
66 #endif // SCT_DCSCONDITIONSSTATCONDALG
SCT_DCSConditionsStatCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: SCT_DCSConditionsStatCondAlg.cxx:41
SCT_DCSConditionsStatCondAlg::m_useHVChanCut
StringProperty m_useHVChanCut
Definition: SCT_DCSConditionsStatCondAlg.h:63
SCT_DCSConditionsStatCondAlg::m_readAllDBFolders
BooleanProperty m_readAllDBFolders
Definition: SCT_DCSConditionsStatCondAlg.h:55
SCT_DCSConditionsStatCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: SCT_DCSConditionsStatCondAlg.h:28
SCT_DCSConditionsStatCondAlg::NO_MATCH
@ NO_MATCH
Definition: SCT_DCSConditionsStatCondAlg.h:46
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
SCT_DCSConditionsStatCondAlg::SCT_DCSConditionsStatCondAlg
SCT_DCSConditionsStatCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_DCSConditionsStatCondAlg.cxx:11
SCT_DCSConditionsStatCondAlg::m_hvUpLimit
FloatProperty m_hvUpLimit
Definition: SCT_DCSConditionsStatCondAlg.h:59
SCT_DCSConditionsStatCondAlg::m_useHVUpLimit
FloatProperty m_useHVUpLimit
Definition: SCT_DCSConditionsStatCondAlg.h:62
WriteCondHandleKey.h
SCT_DCSConditionsStatCondAlg::LVCARD_LATCH
@ LVCARD_LATCH
Definition: SCT_DCSConditionsStatCondAlg.h:45
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SCT_DCSConditionsStatCondAlg::DISABLED
@ DISABLED
Definition: SCT_DCSConditionsStatCondAlg.h:40
SCT_DCSConditionsStatCondAlg::TRIP_SW
@ TRIP_SW
Definition: SCT_DCSConditionsStatCondAlg.h:44
SCT_DCSConditionsStatCondAlg::~SCT_DCSConditionsStatCondAlg
virtual ~SCT_DCSConditionsStatCondAlg()=default
SCT_DCSConditionsStatCondAlg::TRIP_HW
@ TRIP_HW
Definition: SCT_DCSConditionsStatCondAlg.h:43
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_DCSConditionsStatCondAlg::m_useHVLowLimit
FloatProperty m_useHVLowLimit
Definition: SCT_DCSConditionsStatCondAlg.h:61
SCT_DCSConditionsStatCondAlg::m_chanstatCut
StringProperty m_chanstatCut
Definition: SCT_DCSConditionsStatCondAlg.h:57
SCT_DCSConditionsStatCondAlg::HARD_RESET
@ HARD_RESET
Definition: SCT_DCSConditionsStatCondAlg.h:39
SCT_DCSConditionsStatCondAlg::OFF
@ OFF
Definition: SCT_DCSConditionsStatCondAlg.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_DCSConditionsStatCondAlg::m_hvLowLimit
FloatProperty m_hvLowLimit
Definition: SCT_DCSConditionsStatCondAlg.h:58
SCT_DCSConditionsStatCondAlg::MANUAL
@ MANUAL
Definition: SCT_DCSConditionsStatCondAlg.h:36
SCT_DCSConditionsStatCondAlg::m_readKeyHV
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyHV
Definition: SCT_DCSConditionsStatCondAlg.h:50
ReadCondHandleKey.h
SCT_DCSConditionsStatCondAlg::MASK_ON
@ MASK_ON
Definition: SCT_DCSConditionsStatCondAlg.h:38
AthReentrantAlgorithm.h
SCT_DCSConditionsStatCondAlg::INTERLOCKED
@ INTERLOCKED
Definition: SCT_DCSConditionsStatCondAlg.h:42
SCT_DCSConditionsStatCondAlg::MASK_OFF
@ MASK_OFF
Definition: SCT_DCSConditionsStatCondAlg.h:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_DCSConditionsStatCondAlg::initialize
virtual StatusCode initialize() override final
Definition: SCT_DCSConditionsStatCondAlg.cxx:16
SCT_DCSConditionsStatCondAlg
Definition: SCT_DCSConditionsStatCondAlg.h:21
SCT_DCSConditionsStatCondAlg::ON
@ ON
Definition: SCT_DCSConditionsStatCondAlg.h:34
SCT_DCSConditionsStatCondAlg::UNKNOWN
@ UNKNOWN
Definition: SCT_DCSConditionsStatCondAlg.h:47
SCT_DCSConditionsStatCondAlg::m_readKeyState
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyState
Definition: SCT_DCSConditionsStatCondAlg.h:51
SCT_DCSConditionsStatCondAlg::m_doState
bool m_doState
Definition: SCT_DCSConditionsStatCondAlg.h:54
SCT_DCSStatCondData.h
header file for data object for SCT_DCSConditionsStatCondAlg, SCT_DCSConditionsTool,...
SG::ReadCondHandleKey< CondAttrListCollection >
SCT_DCSConditionsStatCondAlg::m_returnHVTemp
BooleanProperty m_returnHVTemp
Definition: SCT_DCSConditionsStatCondAlg.h:56
SCT_DCSConditionsStatCondAlg::STANDBY
@ STANDBY
Definition: SCT_DCSConditionsStatCondAlg.h:35
SG::WriteCondHandleKey< SCT_DCSStatCondData >
SCT_DCSConditionsStatCondAlg::StateWord
StateWord
Definition: SCT_DCSConditionsStatCondAlg.h:33
SCT_DCSConditionsStatCondAlg::ANY
@ ANY
Definition: SCT_DCSConditionsStatCondAlg.h:48
SCT_DCSConditionsStatCondAlg::m_useDefaultHV
BooleanProperty m_useDefaultHV
Definition: SCT_DCSConditionsStatCondAlg.h:60
SCT_DCSConditionsStatCondAlg::m_writeKeyState
SG::WriteCondHandleKey< SCT_DCSStatCondData > m_writeKeyState
Definition: SCT_DCSConditionsStatCondAlg.h:52
SCT_DCSConditionsStatCondAlg::RAMPING
@ RAMPING
Definition: SCT_DCSConditionsStatCondAlg.h:41
SCT_DCSConditionsStatCondAlg::finalize
virtual StatusCode finalize() override final
Definition: SCT_DCSConditionsStatCondAlg.cxx:152