ATLAS Offline Software
ITileBadChanTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILECONDITIONS_ITILEBADCHANTOOL_H
6 #define TILECONDITIONS_ITILEBADCHANTOOL_H
7 
9 #include "GaudiKernel/IAlgTool.h"
11 #include <stdint.h>
12 #include <set>
13 
14 class EventContext;
15 
21 class ITileBadChanTool: virtual public IAlgTool {
22  public:
23 
24  virtual ~ITileBadChanTool() {}
25 
32  virtual const TileBchStatus& getAdcStatus(const HWIdentifier& adc_id, const EventContext& ctx) const = 0;
33 
39  virtual const TileBchStatus& getAdcStatus(const HWIdentifier& adc_id) const = 0;
40 
49  virtual const TileBchStatus& getAdcStatus(unsigned int drawerIdx
50  , unsigned int channel
51  , unsigned int adc
52  , const EventContext& ctx) const = 0;
60  virtual const TileBchStatus& getAdcStatus(unsigned int drawerIdx
61  , unsigned int channel
62  , unsigned int adc) const = 0;
63 
70  virtual const TileBchStatus& getChannelStatus(const HWIdentifier& channel_id, const EventContext& ctx) const = 0;
71 
77  virtual const TileBchStatus& getChannelStatus(const HWIdentifier& channel_id) const = 0;
78 
79 
87  virtual const TileBchStatus& getChannelStatus(unsigned int drawerIdx
88  , unsigned int channel
89  , const EventContext& ctx) const = 0;
96  virtual const TileBchStatus& getChannelStatus(unsigned int drawerIdx
97  , unsigned int channel) const = 0;
98 
99  virtual uint32_t encodeStatus(const TileBchStatus& status) const = 0;
100 
106  virtual const std::vector<float>& getTripsProbabilities(unsigned int ros, const EventContext& ctx) const = 0;
107 
112  virtual const std::vector<float>& getTripsProbabilities(unsigned int ros) const = 0;
113 
120  virtual bool isDrawerMasked(unsigned int frag_id, const EventContext& ctx) const = 0;
121 
127  virtual bool isDrawerMasked(unsigned int frag_id) const = 0;
128 
130 };
131 
132 #endif // TILECONDITIONS_ITILEBADCHANTOOL_H
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
ITileBadChanTool::encodeStatus
virtual uint32_t encodeStatus(const TileBchStatus &status) const =0
ITileBadChanTool::getAdcStatus
virtual const TileBchStatus & getAdcStatus(const HWIdentifier &adc_id, const EventContext &ctx) const =0
Return Tile ADC status.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ITileBadChanTool::getChannelStatus
virtual const TileBchStatus & getChannelStatus(const HWIdentifier &channel_id, const EventContext &ctx) const =0
Return Tile channel status.
TileBchStatus
Class holding bad channel problems.
Definition: TileBchStatus.h:20
ITileBadChanTool::getChannelStatus
virtual const TileBchStatus & getChannelStatus(const HWIdentifier &channel_id) const =0
Return Tile channel status.
HWIdentifier
Definition: HWIdentifier.h:13
ITileBadChanTool::getTripsProbabilities
virtual const std::vector< float > & getTripsProbabilities(unsigned int ros, const EventContext &ctx) const =0
Return trips probabilities for all Tile drawers.
ITileBadChanTool::DeclareInterfaceID
DeclareInterfaceID(ITileBadChanTool, 1, 0)
ITileBadChanTool::isDrawerMasked
virtual bool isDrawerMasked(unsigned int frag_id) const =0
Check if Tile drawer is masked completely.
ITileBadChanTool::getChannelStatus
virtual const TileBchStatus & getChannelStatus(unsigned int drawerIdx, unsigned int channel) const =0
Return Tile channel status.
createCoolChannelIdFile.channel_id
channel_id
Definition: createCoolChannelIdFile.py:52
ITileBadChanTool::~ITileBadChanTool
virtual ~ITileBadChanTool()
Definition: ITileBadChanTool.h:24
ITileBadChanTool::getAdcStatus
virtual const TileBchStatus & getAdcStatus(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const =0
Return Tile ADC status.
ITileBadChanTool::getChannelStatus
virtual const TileBchStatus & getChannelStatus(unsigned int drawerIdx, unsigned int channel, const EventContext &ctx) const =0
Return Tile channel status.
TileBchStatus.h
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
ITileBadChanTool::getAdcStatus
virtual const TileBchStatus & getAdcStatus(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const =0
Return Tile ADC status.
HWIdentifier.h
ITileBadChanTool::isDrawerMasked
virtual bool isDrawerMasked(unsigned int frag_id, const EventContext &ctx) const =0
Check if Tile drawer is masked completely.
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
ITileBadChanTool
An abstract inteface to get Tile channel and ADC status.
Definition: ITileBadChanTool.h:21
merge.status
status
Definition: merge.py:17
ITileBadChanTool::getTripsProbabilities
virtual const std::vector< float > & getTripsProbabilities(unsigned int ros) const =0
Return trips probabilities for all Tile drawers.
ITileBadChanTool::getAdcStatus
virtual const TileBchStatus & getAdcStatus(const HWIdentifier &adc_id) const =0
Return Tile ADC status.