ATLAS Offline Software
TileDCSTool.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TILECONDITIONS_TILEDCSTOOL_H
8 #define TILECONDITIONS_TILEDCSTOOL_H
9 
10 // Tile includes
13 
14 // Athena includes
17 
23 class TileDCSTool: public extends<AthAlgTool, ITileDCSTool> {
24 
25  public:
26 
27  TileDCSTool(const std::string& type, const std::string& name, const IInterface* parent);
28  virtual ~TileDCSTool();
29 
30  virtual StatusCode initialize() override;
31  virtual StatusCode finalize() override;
35  virtual float getChannelHV(unsigned int ros, unsigned int drawer, unsigned int channel) const override;
36 
40  virtual float getChannelHVSet(unsigned int ros, unsigned int drawer, unsigned int channel) const override;
41 
45  virtual int getDrawerStates(unsigned int ros, unsigned int drawer) const override;
46 
50  virtual TileDCSState::TileDCSStatus getDCSHVStatus(unsigned int ros, unsigned int drawer, unsigned int channel) const override;
51 
55  virtual TileDCSState::TileDCSStatus getDCSStatus(unsigned int ros, unsigned int drawer) const override;
56 
60  virtual TileDCSState::TileDCSStatus getDCSStatus(unsigned int ros, unsigned int drawer, unsigned int channel) const override;
61 
65  virtual bool isStatusHVBad(unsigned int ros, unsigned int drawer, unsigned int channel) const override;
66 
70  virtual bool isStatusBad (unsigned int ros, unsigned int drawer) const override;
71 
75  virtual bool isStatusBad(unsigned int ros, unsigned int drawer, unsigned int channel) const override;
76 
77  private:
78 
83  "TileDCS", "TileDCS", "Input Tile DCS status"};
84 
85 };
86 
87 
88 
89 #endif // TILECONDITIONS_TILEDCSTOOL_H
TileDCSTool::getDCSStatus
virtual TileDCSState::TileDCSStatus getDCSStatus(unsigned int ros, unsigned int drawer) const override
Return TileDCSstatus for given Tile drawer determined by summary states per LVPS.
Definition: TileDCSTool.cxx:78
TileDCSState.h
TileDCSTool::isStatusBad
virtual bool isStatusBad(unsigned int ros, unsigned int drawer) const override
Return true if given Tile drawer considered as bad by summary drawer states per LVPS otherwise return...
Definition: TileDCSTool.cxx:100
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
TileDCSTool::getDrawerStates
virtual int getDrawerStates(unsigned int ros, unsigned int drawer) const override
Return Tile drawer summary states per LVPS reported by DCS.
Definition: TileDCSTool.cxx:63
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
TileDCSTool::finalize
virtual StatusCode finalize() override
Definition: TileDCSTool.cxx:41
TileDCSTool::TileDCSTool
TileDCSTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TileDCSTool.cxx:15
TileDCSState::TileDCSStatus
TileDCSStatus
Describes Tile DCS status.
Definition: TileDCSState.h:32
TileDCSTool::getChannelHVSet
virtual float getChannelHVSet(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return requested HV reported by DCS for given Tile channel.
Definition: TileDCSTool.cxx:56
TileDCSTool::getChannelHV
virtual float getChannelHV(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return measured HV reported by DCS for given Tile channel.
Definition: TileDCSTool.cxx:49
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TileDCSTool::getDCSHVStatus
virtual TileDCSState::TileDCSStatus getDCSHVStatus(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return TileDCSstatus for given Tile channel determined by deviation between measured and requested HV...
Definition: TileDCSTool.cxx:71
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
ITileDCSTool.h
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SG::ReadCondHandleKey< TileDCSState >
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileDCSTool::initialize
virtual StatusCode initialize() override
Definition: TileDCSTool.cxx:29
TileDCSTool
The tool to get Tile DCS information from DB.
Definition: TileDCSTool.h:23
TileDCSTool::isStatusHVBad
virtual bool isStatusHVBad(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return true if given Tile channel considered as bad by deviation between measured and requested HV ot...
Definition: TileDCSTool.cxx:93
TileDCSTool::~TileDCSTool
virtual ~TileDCSTool()
Definition: TileDCSTool.cxx:24
TileDCSTool::m_dcsStateKey
SG::ReadCondHandleKey< TileDCSState > m_dcsStateKey
Name of TileDCSState object in condition store.
Definition: TileDCSTool.h:82