ATLAS Offline Software
Loading...
Searching...
No Matches
TileBadChanTool.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_TILEBADCHANTOOL_H
6#define TILECONDITIONS_TILEBADCHANTOOL_H
7
8// Tile includes
12
13// Calo includes
16
17// Athena includes
19#include "Identifier/Identifier.h"
23
24#include <map>
25#include <vector>
26#include <string>
27
28class TileHWID;
30
35
36class TileBadChanTool: public extends<AthAlgTool, ITileBadChanTool, ICaloBadChanTool> {
37
38 public:
39
40 TileBadChanTool(const std::string& type, const std::string& name, const IInterface* parent);
41 virtual ~TileBadChanTool();
42
43 virtual StatusCode initialize() override;
44 virtual StatusCode finalize() override;
45
46 //===============================================================
47 //=== ICaloBadChanTool methods
48 //===============================================================
49
55 virtual CaloBadChannel caloStatus(const EventContext& ctx,
56 Identifier cell_id) const override;
57
58 //===============================================================
59 //=== ITileBadChanTool methods
60 //===============================================================
61
62 const TileBchStatus& getAdcStatus(IdentifierHash hash_id, unsigned int adc) const;
63
67 virtual const TileBchStatus& getAdcStatus(const HWIdentifier& adc_id, const EventContext& ctx) const override;
68
72 virtual const TileBchStatus& getAdcStatus(const HWIdentifier& adc_id) const override;
73
77 virtual const TileBchStatus& getAdcStatus(unsigned int drawerIdx
78 , unsigned int channel
79 , unsigned int adc
80 , const EventContext& ctx) const override;
84 virtual const TileBchStatus& getAdcStatus(unsigned int drawerIdx
85 , unsigned int channel
86 , unsigned int adc) const override;
87
88 const TileBchStatus& getChannelStatus(IdentifierHash hash_id) const;
89
93 virtual const TileBchStatus& getChannelStatus(const HWIdentifier& channel_id, const EventContext& ctx) const override;
94
98 virtual const TileBchStatus& getChannelStatus(const HWIdentifier& channel_id) const override;
99
103 virtual const TileBchStatus& getChannelStatus(unsigned int drawerIdx, unsigned int channel, const EventContext& ctx) const override;
104
108 virtual const TileBchStatus& getChannelStatus(unsigned int drawerIdx, unsigned int channel) const override;
109
110 virtual uint32_t encodeStatus(const TileBchStatus& status) const override;
111
115 virtual const std::vector<float>& getTripsProbabilities(unsigned int ros, const EventContext& ctx) const override;
116
120 virtual const std::vector<float>& getTripsProbabilities(unsigned int ros) const override;
121
125 virtual bool isDrawerMasked(unsigned int frag_id, const EventContext& ctx) const override;
126
130 virtual bool isDrawerMasked(unsigned int frag_id) const override;
131
132 private:
133
138 "TileBadChannels", "TileBadChannels", "Input Tile bad channel status"};
139
141
144
145 // dummy declarations just to make new gccreflex happy
147
148 std::vector<float> m_defaultTripsProbs;
149
150 std::vector<unsigned int> m_roses;
151 std::vector<unsigned int> m_drawers;
152
153};
154
155
156#endif
virtual CaloBadChannel caloStatus(const EventContext &ctx, Identifier id) const =0
This is a "hash" representation of an Identifier.
const TileHWID * m_tileHWID
SG::ReadCondHandleKey< TileBadChannels > m_badChannelsKey
Name of TileBadChannels in condition store.
const TileBchStatus & getChannelStatus(IdentifierHash hash_id) const
TileBchStatus m_defaultStatus
virtual bool isDrawerMasked(unsigned int frag_id, const EventContext &ctx) const override
Check if Tile drawer is masked completely.
std::vector< float > m_defaultTripsProbs
const TileDetDescrManager * m_tileMgr
const TileBchStatus & getAdcStatus(IdentifierHash hash_id, unsigned int adc) const
TileBadChanTool(const std::string &type, const std::string &name, const IInterface *parent)
std::vector< unsigned int > m_roses
virtual StatusCode initialize() override
TileBadChanTool & operator=(const TileBadChanTool &)
virtual const std::vector< float > & getTripsProbabilities(unsigned int ros, const EventContext &ctx) const override
Return trips probabilities for all Tile drawers.
virtual StatusCode finalize() override
virtual ~TileBadChanTool()
std::vector< unsigned int > m_drawers
virtual uint32_t encodeStatus(const TileBchStatus &status) const override
virtual CaloBadChannel caloStatus(const EventContext &ctx, Identifier cell_id) const override
Class holding bad channel problems.
Helper class for TileCal online (hardware) identifiers.
Definition TileHWID.h:49