ATLAS Offline Software
PixelActiveDetectorElementStatusTool.h
Go to the documentation of this file.
1 /* Dear emacs, this is -*-c++-*- */
2 #ifndef PIXELACTIVEDETECTORELEMENTSTATUSTOOL_H
3 #define PIXELACTIVEDETECTORELEMENTSTATUSTOOL_H
4 
8 #include "Gaudi/Property.h"
9 #include <memory>
10 #include <tuple>
11 #include <vector>
12 #include <string>
13 
14 namespace InDet{
15  class SiDetectorElementStatus;
16 }
17 
18 class EventContext;
19 
21 {
22 public:
23  PixelActiveDetectorElementStatusTool(const std::string& type, const std::string& name, const IInterface* parent)
25  {}
26  static InterfaceID& interfaceID();
27 
28  virtual StatusCode initialize() override;
29 
30  virtual std::unique_ptr<InDet::SiDetectorElementStatus>
31  getDetectorElementStatus(const EventContext& ctx,
33 private:
35  {this, "PixelDCSStatusCondData", "PixelDCSStatusCondData", "Pixel FSM status key"};
36  Gaudi::Property< std::vector<std::string> > m_isActiveStatus
37  {this, "IsActiveStatus", {},"Pixel module status for which the module is considered active." };
38 
39  unsigned int m_activeStatusMask{0};
40 };
41 
43  static InterfaceID IID_PixelActiveDetectorElementStatusTool("PixelActiveDetectorElementStatusTool", 1, 0);
44  return IID_PixelActiveDetectorElementStatusTool;
45 }
46 
47 #endif
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
PixelDetectorElementStatusToolBase
Definition: PixelDetectorElementStatusToolBase.h:24
PixelActiveDetectorElementStatusTool::m_condDCSStatusKey
SG::ReadCondHandleKey< PixelDCSStatusData > m_condDCSStatusKey
Definition: PixelActiveDetectorElementStatusTool.h:35
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixelActiveDetectorElementStatusTool::m_isActiveStatus
Gaudi::Property< std::vector< std::string > > m_isActiveStatus
Definition: PixelActiveDetectorElementStatusTool.h:37
test_pyathena.parent
parent
Definition: test_pyathena.py:15
PixelActiveDetectorElementStatusTool::PixelActiveDetectorElementStatusTool
PixelActiveDetectorElementStatusTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: PixelActiveDetectorElementStatusTool.h:23
PixelActiveDetectorElementStatusTool
Definition: PixelActiveDetectorElementStatusTool.h:21
ReadCondHandleKey.h
PixelDCSStatusData.h
Store pixel DCS module status in PixelDCSStatusData.
PixelActiveDetectorElementStatusTool::initialize
virtual StatusCode initialize() override
Definition: PixelActiveDetectorElementStatusTool.cxx:4
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PixelActiveDetectorElementStatusTool::interfaceID
static InterfaceID & interfaceID()
Definition: PixelActiveDetectorElementStatusTool.h:42
SG::ReadCondHandleKey< PixelDCSStatusData >
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
PixelActiveDetectorElementStatusTool::getDetectorElementStatus
virtual std::unique_ptr< InDet::SiDetectorElementStatus > getDetectorElementStatus(const EventContext &ctx, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const override
Definition: PixelActiveDetectorElementStatusTool.cxx:40
PixelActiveDetectorElementStatusTool::m_activeStatusMask
unsigned int m_activeStatusMask
mask in which each status is represented by a bit and for status values which are cnsidered active th...
Definition: PixelActiveDetectorElementStatusTool.h:39
PixelDetectorElementStatusToolBase.h
SG::WriteCondHandle
Definition: WriteCondHandle.h:26