#include <DeadChannelsManager.h>
Public Member Functions | |
DeadChannelsManager () | |
DeadChannelsManager (edm::ESHandle< TotemAnalysisMask > analysisMask) | |
void | displayMap () |
bool | isChannelDead (RPDetId detectorId, unsigned short stripNumber) |
Static Public Member Functions | |
static uint32_t | rawToDecId (uint32_t raw) |
Private Attributes | |
edm::ESHandle< TotemAnalysisMask > | analysisMask |
bool | analysisMaskPresent |
Definition at line 14 of file DeadChannelsManager.h.
DeadChannelsManager::DeadChannelsManager | ( | edm::ESHandle< TotemAnalysisMask > | analysisMask | ) |
This constructor allows us to set analysisMask. The analysisMask can be read from EventSetup.
Definition at line 11 of file DeadChannelsManager.cc.
References analysisMask, and analysisMaskPresent.
DeadChannelsManager::DeadChannelsManager | ( | ) |
void DeadChannelsManager::displayMap | ( | ) |
Definition at line 38 of file DeadChannelsManager.cc.
References analysisMask, TotemAnalysisMask::analysisMask, analysisMaskPresent, TotemVFATAnalysisMask::fullMask, createfilelist::int, LogDebug, and TotemVFATAnalysisMask::maskedChannels.
bool DeadChannelsManager::isChannelDead | ( | RPDetId | detectorId, |
unsigned short | stripNumber | ||
) |
This function answers the question whether given channel is dead or not. RPDetId - detector ID given in raw form, this function has to convert raw ID to symbolic stripNumber - ID of the strip, it is a number from range <0; 511>, this function has to convert it into a vfat ID and a number from range <0; 127>
It is assumed that: channels 0 - 127 are in vfat number 0 channels 128 - 255 are in vfat number 1 channels 256 - 383 are in vfat number 2 channels 384 - 511 are in vfat number 3
Definition at line 16 of file DeadChannelsManager.cc.
References analysisMask, TotemAnalysisMask::analysisMask, analysisMaskPresent, TotemVFATAnalysisMask::fullMask, TotemVFATAnalysisMask::maskedChannels, RPDisplacementGenerator::rawToDecId(), and TotemSymbID::symbolicID.
|
static |
|
private |
Definition at line 16 of file DeadChannelsManager.h.
Referenced by DeadChannelsManager(), displayMap(), and isChannelDead().
|
private |
Definition at line 17 of file DeadChannelsManager.h.
Referenced by DeadChannelsManager(), displayMap(), and isChannelDead().