Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
The tool to get Tile channel and ADC status.
More...
#include <TileBadChanTool.h>
|
| TileBadChanTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~TileBadChanTool () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | finalize () override |
|
virtual CaloBadChannel | caloStatus (const EventContext &ctx, Identifier cell_id) const override |
|
const TileBchStatus & | getAdcStatus (IdentifierHash hash_id, unsigned int adc) const |
|
virtual const TileBchStatus & | getAdcStatus (const HWIdentifier &adc_id, const EventContext &ctx) const override |
| Return Tile ADC status. More...
|
|
virtual const TileBchStatus & | getAdcStatus (const HWIdentifier &adc_id) const override |
| Return Tile ADC status. More...
|
|
virtual const TileBchStatus & | getAdcStatus (unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const override |
| Return Tile ADC status. More...
|
|
virtual const TileBchStatus & | getAdcStatus (unsigned int drawerIdx, unsigned int channel, unsigned int adc) const override |
| Return Tile ADC status. More...
|
|
const TileBchStatus & | getChannelStatus (IdentifierHash hash_id) const |
|
virtual const TileBchStatus & | getChannelStatus (const HWIdentifier &channel_id, const EventContext &ctx) const override |
| Return Tile channel status. More...
|
|
virtual const TileBchStatus & | getChannelStatus (const HWIdentifier &channel_id) const override |
| Return Tile channel status. More...
|
|
virtual const TileBchStatus & | getChannelStatus (unsigned int drawerIdx, unsigned int channel, const EventContext &ctx) const override |
| Return Tile channel status. More...
|
|
virtual const TileBchStatus & | getChannelStatus (unsigned int drawerIdx, unsigned int channel) const override |
| Return Tile channel status. More...
|
|
virtual uint32_t | encodeStatus (const TileBchStatus &status) const override |
|
virtual const std::vector< float > & | getTripsProbabilities (unsigned int ros, const EventContext &ctx) const override |
| Return trips probabilities for all Tile drawers. More...
|
|
virtual const std::vector< float > & | getTripsProbabilities (unsigned int ros) const override |
| Return trips probabilities for all Tile drawers. More...
|
|
virtual bool | isDrawerMasked (unsigned int frag_id, const EventContext &ctx) const override |
| Check if Tile drawer is masked completely. More...
|
|
virtual bool | isDrawerMasked (unsigned int frag_id) const override |
| Check if Tile drawer is masked completely. More...
|
|
virtual CaloBadChannel | caloStatus (const EventContext &ctx, Identifier id) const=0 |
| ICaloBadChanTool interface. More...
|
|
virtual CaloBadChannel | caloStatus (Identifier id) const |
| ICaloBadChanTool interface. More...
|
|
The tool to get Tile channel and ADC status.
Definition at line 36 of file TileBadChanTool.h.
◆ TileBadChanTool()
TileBadChanTool::TileBadChanTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TileBadChanTool()
TileBadChanTool::~TileBadChanTool |
( |
| ) |
|
|
virtual |
◆ caloStatus() [1/3]
◆ caloStatus() [2/3]
◆ caloStatus() [3/3]
◆ encodeStatus()
◆ finalize()
StatusCode TileBadChanTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getAdcStatus() [1/5]
Return Tile ADC status.
- Parameters
-
adc_id | Tile hardware (online) ADC identifier |
- Returns
- Tile ADC status
Definition at line 135 of file TileBadChanTool.cxx.
137 const EventContext& ctx{Gaudi::Hive::currentContext()};
◆ getAdcStatus() [2/5]
Return Tile ADC status.
- Parameters
-
adc_id | Tile hardware (online) ADC identifier |
ctx | event context |
- Returns
- Tile ADC status
Definition at line 125 of file TileBadChanTool.cxx.
128 return badChannels->getAdcStatus(adc_id);
◆ getAdcStatus() [3/5]
◆ getAdcStatus() [4/5]
const TileBchStatus & TileBadChanTool::getAdcStatus |
( |
unsigned int |
drawerIdx, |
|
|
unsigned int |
channel, |
|
|
unsigned int |
adc |
|
) |
| const |
|
overridevirtual |
Return Tile ADC status.
- Parameters
-
drawerIdx | Tile drawer index in range [0..275] |
channel | Tile channel number in range [0..47] |
adc | Tile ADC number |
- Returns
- Tile ADC status
Definition at line 231 of file TileBadChanTool.cxx.
233 const EventContext& ctx{Gaudi::Hive::currentContext()};
◆ getAdcStatus() [5/5]
const TileBchStatus & TileBadChanTool::getAdcStatus |
( |
unsigned int |
drawerIdx, |
|
|
unsigned int |
channel, |
|
|
unsigned int |
adc, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
Return Tile ADC status.
- Parameters
-
drawerIdx | Tile drawer index in range [0..275] |
channel | Tile channel number in range [0..47] |
adc | Tile ADC number |
ctx | event context |
- Returns
- Tile ADC status
Definition at line 219 of file TileBadChanTool.cxx.
224 return badChannels->getAdcStatus(adc_id);
◆ getChannelStatus() [1/5]
Return Tile channel status.
- Parameters
-
channel_id | Tile hardware (online) channel identifier |
- Returns
- Tile channel status
Definition at line 187 of file TileBadChanTool.cxx.
189 const EventContext& ctx{Gaudi::Hive::currentContext()};
◆ getChannelStatus() [2/5]
Return Tile channel status.
- Parameters
-
channel_id | Tile hardware (online) channel identifier |
ctx | event context |
- Returns
- Tile channel status
Definition at line 177 of file TileBadChanTool.cxx.
180 return badChannels->getChannelStatus(
channel_id);
◆ getChannelStatus() [3/5]
◆ getChannelStatus() [4/5]
const TileBchStatus & TileBadChanTool::getChannelStatus |
( |
unsigned int |
drawerIdx, |
|
|
unsigned int |
channel |
|
) |
| const |
|
overridevirtual |
Return Tile channel status.
- Parameters
-
drawerIdx | Tile drawer index in range [0..275] |
channel | Tile channel number in range [0..47] |
- Returns
- Tile channel status
Definition at line 209 of file TileBadChanTool.cxx.
211 const EventContext& ctx{Gaudi::Hive::currentContext()};
◆ getChannelStatus() [5/5]
const TileBchStatus & TileBadChanTool::getChannelStatus |
( |
unsigned int |
drawerIdx, |
|
|
unsigned int |
channel, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
Return Tile channel status.
- Parameters
-
drawerIdx | Tile drawer index in range [0..275] |
channel | Tile channel number in range [0..47] |
ctx | event context |
- Returns
- Tile channel status
Definition at line 197 of file TileBadChanTool.cxx.
202 return badChannels->getChannelStatus(
channel_id);
◆ getTripsProbabilities() [1/2]
const std::vector< float > & TileBadChanTool::getTripsProbabilities |
( |
unsigned int |
ros | ) |
const |
|
overridevirtual |
Return trips probabilities for all Tile drawers.
- Returns
- Trip probabilites for all Tile drawers
Definition at line 256 of file TileBadChanTool.cxx.
258 const EventContext& ctx{Gaudi::Hive::currentContext()};
◆ getTripsProbabilities() [2/2]
const std::vector< float > & TileBadChanTool::getTripsProbabilities |
( |
unsigned int |
ros, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
Return trips probabilities for all Tile drawers.
- Parameters
-
- Returns
- Trip probabilites for all Tile drawers
Definition at line 243 of file TileBadChanTool.cxx.
247 const std::vector<std::vector<float>>& tripsProbs = badChannels->getTripsProbabilities();
249 if (!tripsProbs.empty()) {
250 return tripsProbs.at(
ros - 1);
◆ initialize()
StatusCode TileBadChanTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ isDrawerMasked() [1/2]
bool TileBadChanTool::isDrawerMasked |
( |
unsigned int |
frag_id | ) |
const |
|
overridevirtual |
Check if Tile drawer is masked completely.
- Parameters
-
frag_id | Tile frag identifier |
- Returns
- True if Tile drawer is masked comletely
Definition at line 274 of file TileBadChanTool.cxx.
276 const EventContext& ctx{Gaudi::Hive::currentContext()};
◆ isDrawerMasked() [2/2]
bool TileBadChanTool::isDrawerMasked |
( |
unsigned int |
frag_id, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
Check if Tile drawer is masked completely.
- Parameters
-
frag_id | Tile frag identifier |
ctx | event context |
- Returns
- True if Tile drawer is masked comletely
Definition at line 264 of file TileBadChanTool.cxx.
267 const std::vector<int>& maskedDrawers = badChannels->getMaskedDrawers();
269 return std::binary_search (maskedDrawers.begin(),
◆ operator=()
◆ m_badChannelsKey
Initial value:{this,
"TileBadChannels", "TileBadChannels", "Input Tile bad channel status"}
Name of TileBadChannels in condition store.
Definition at line 137 of file TileBadChanTool.h.
◆ m_defaultStatus
◆ m_defaultTripsProbs
std::vector<float> TileBadChanTool::m_defaultTripsProbs |
|
private |
◆ m_drawers
std::vector<unsigned int> TileBadChanTool::m_drawers |
|
private |
◆ m_roses
std::vector<unsigned int> TileBadChanTool::m_roses |
|
private |
◆ m_tileHWID
◆ m_tileMgr
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
IdentifierHash onl2() const
cell online identifier 2
static unsigned int getMaxDrawer(unsigned int ros)
Returns the maximal channel number for a given drawer.
static const unsigned int MAX_DRAWERIDX
Maximal drawer index
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Class holding bad channel problems.
static const unsigned int MAX_DRAWER
Number of drawers in ROS 1-4.
IdentifierHash onl1() const
cell online identifier 1
static uint32_t encodeStatus(const TileBchStatus &status)
std::pair< std::vector< unsigned int >, bool > res
static const unsigned int MAX_ROS
Number of ROSs
CaloDetDescrElement * get_cell_element(unsigned int cell_hash) const
HWIdentifier channel_id(int ros, int drawer, int channel) const
channel HWIdentifer
StatusCode initialize(bool used=true)
static void setBit(ProblemType pb, BitWord &word, bool value=true)
Sets the bit corresponding to "pb" inside the word passed as second argument to "value".
HWIdentifier adc_id(int ros, int drawer, int channel, int adc) const
adc HWIdentifer
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...