ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileConditions
TileConditions
TileBadChanTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILECONDITIONS_TILEBADCHANTOOL_H
6
#define TILECONDITIONS_TILEBADCHANTOOL_H
7
8
// Tile includes
9
#include "
TileConditions/ITileBadChanTool.h
"
10
#include "
TileCalibBlobObjs/TileBchStatus.h
"
11
#include "
TileConditions/TileBadChannels.h
"
12
#include "
TileCalibBlobObjs/TileCalibUtils.h
"
13
14
// Calo includes
15
#include "
CaloConditions/ICaloBadChanTool.h
"
16
#include "
CaloConditions/CaloBadChannel.h
"
17
18
// Athena includes
19
#include "
AthenaBaseComps/AthAlgTool.h
"
20
#include "Identifier/Identifier.h"
21
#include "
Identifier/IdentifierHash.h
"
22
#include "
Identifier/HWIdentifier.h
"
23
#include "
StoreGate/ReadCondHandleKey.h
"
24
25
#include <map>
26
#include <vector>
27
#include <string>
28
29
class
TileHWID
;
30
class
TileDetDescrManager
;
31
36
37
class
TileBadChanTool
:
public
extends<AthAlgTool, ITileBadChanTool, ICaloBadChanTool> {
38
39
public
:
40
41
TileBadChanTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
42
virtual
~TileBadChanTool
();
43
44
virtual
StatusCode
initialize
()
override
;
45
virtual
StatusCode
finalize
()
override
;
46
47
//===============================================================
48
//=== ICaloBadChanTool methods
49
//===============================================================
50
55
using
ICaloBadChanTool::caloStatus
;
56
virtual
CaloBadChannel
caloStatus
(
const
EventContext& ctx,
57
Identifier
cell_id)
const override
;
58
59
//===============================================================
60
//=== ITileBadChanTool methods
61
//===============================================================
62
63
const
TileBchStatus
&
getAdcStatus
(
IdentifierHash
hash_id,
unsigned
int
adc)
const
;
64
68
virtual
const
TileBchStatus
&
getAdcStatus
(
const
HWIdentifier
& adc_id,
const
EventContext& ctx)
const override
;
69
73
virtual
const
TileBchStatus
&
getAdcStatus
(
unsigned
int
drawerIdx
74
,
unsigned
int
channel
75
,
unsigned
int
adc
76
,
const
EventContext& ctx)
const override
;
77
78
const
TileBchStatus
&
getChannelStatus
(
IdentifierHash
hash_id)
const
;
79
83
virtual
const
TileBchStatus
&
getChannelStatus
(
const
HWIdentifier
& channel_id,
const
EventContext& ctx)
const override
;
84
88
virtual
const
TileBchStatus
&
getChannelStatus
(
unsigned
int
drawerIdx,
unsigned
int
channel,
const
EventContext& ctx)
const override
;
89
90
virtual
uint32_t
encodeStatus
(
const
TileBchStatus
& status)
const override
;
91
95
virtual
const
std::vector<float>&
getTripsProbabilities
(
unsigned
int
ros,
const
EventContext& ctx)
const override
;
96
100
virtual
bool
isDrawerMasked
(
unsigned
int
frag_id,
const
EventContext& ctx)
const override
;
101
102
private
:
103
107
SG::ReadCondHandleKey<TileBadChannels>
m_badChannelsKey
{
this
,
108
"TileBadChannels"
,
"TileBadChannels"
,
"Input Tile bad channel status"
};
109
110
const
TileDetDescrManager
*
m_tileMgr
{
nullptr
};
111
112
const
TileHWID
*
m_tileHWID
{
nullptr
};
113
TileBchStatus
m_defaultStatus
{};
114
115
// dummy declarations just to make new gccreflex happy
116
TileBadChanTool
&
operator=
(
const
TileBadChanTool
&);
117
118
std::vector<float>
m_defaultTripsProbs
= std::vector<float>(
TileCalibUtils::MAX_DRAWER
, 0.0F);
119
120
std::vector<unsigned int>
m_roses
;
121
std::vector<unsigned int>
m_drawers
;
122
123
};
124
125
126
#endif
AthAlgTool.h
CaloBadChannel.h
HWIdentifier.h
ICaloBadChanTool.h
ITileBadChanTool.h
IdentifierHash.h
ReadCondHandleKey.h
TileBadChannels.h
TileBchStatus.h
TileCalibUtils.h
CaloBadChannel
Definition
CaloBadChannel.h:8
HWIdentifier
Definition
HWIdentifier.h:13
ICaloBadChanTool::caloStatus
virtual CaloBadChannel caloStatus(const EventContext &ctx, Identifier id) const =0
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
TileBadChanTool::m_tileHWID
const TileHWID * m_tileHWID
Definition
TileBadChanTool.h:112
TileBadChanTool::m_badChannelsKey
SG::ReadCondHandleKey< TileBadChannels > m_badChannelsKey
Name of TileBadChannels in condition store.
Definition
TileBadChanTool.h:107
TileBadChanTool::getChannelStatus
const TileBchStatus & getChannelStatus(IdentifierHash hash_id) const
Definition
TileBadChanTool.cxx:146
TileBadChanTool::m_defaultStatus
TileBchStatus m_defaultStatus
Definition
TileBadChanTool.h:113
TileBadChanTool::isDrawerMasked
virtual bool isDrawerMasked(unsigned int frag_id, const EventContext &ctx) const override
Check if Tile drawer is masked completely.
Definition
TileBadChanTool.cxx:212
TileBadChanTool::m_defaultTripsProbs
std::vector< float > m_defaultTripsProbs
Definition
TileBadChanTool.h:118
TileBadChanTool::m_tileMgr
const TileDetDescrManager * m_tileMgr
Definition
TileBadChanTool.h:110
TileBadChanTool::getAdcStatus
const TileBchStatus & getAdcStatus(IdentifierHash hash_id, unsigned int adc) const
Definition
TileBadChanTool.cxx:130
TileBadChanTool::TileBadChanTool
TileBadChanTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TileBadChanTool.cxx:27
TileBadChanTool::m_roses
std::vector< unsigned int > m_roses
Definition
TileBadChanTool.h:120
TileBadChanTool::initialize
virtual StatusCode initialize() override
Definition
TileBadChanTool.cxx:41
TileBadChanTool::operator=
TileBadChanTool & operator=(const TileBadChanTool &)
TileBadChanTool::getTripsProbabilities
virtual const std::vector< float > & getTripsProbabilities(unsigned int ros, const EventContext &ctx) const override
Return trips probabilities for all Tile drawers.
Definition
TileBadChanTool.cxx:199
TileBadChanTool::finalize
virtual StatusCode finalize() override
Definition
TileBadChanTool.cxx:70
TileBadChanTool::~TileBadChanTool
virtual ~TileBadChanTool()
Definition
TileBadChanTool.cxx:34
TileBadChanTool::m_drawers
std::vector< unsigned int > m_drawers
Definition
TileBadChanTool.h:121
TileBadChanTool::encodeStatus
virtual uint32_t encodeStatus(const TileBchStatus &status) const override
Definition
TileBadChanTool.cxx:195
TileBadChanTool::caloStatus
virtual CaloBadChannel caloStatus(const EventContext &ctx, Identifier cell_id) const override
Definition
TileBadChanTool.cxx:80
TileBchStatus
Class holding bad channel problems.
Definition
TileBchStatus.h:20
TileCalibUtils::MAX_DRAWER
static const unsigned int MAX_DRAWER
Number of drawers in ROS 1-4.
Definition
TileCalibUtils.h:139
TileDetDescrManager
Definition
TileDetDescrManager.h:33
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition
TileHWID.h:49
Identifier
Definition
IdentifierFieldParser.cxx:14
type
Generated on
for ATLAS Offline Software by
1.17.0