#include <DeadChannelsManager.h>
Public Member Functions | |
DeadChannelsManager (const TotemAnalysisMask *analysisMask) | |
DeadChannelsManager () | |
void | displayMap () |
bool | isChannelDead (RPDetId detectorId, unsigned short stripNumber) |
Private Attributes | |
const TotemAnalysisMask * | analysisMask |
bool | analysisMaskPresent |
Definition at line 13 of file DeadChannelsManager.h.
DeadChannelsManager::DeadChannelsManager | ( | const 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 | ( | ) |
Definition at line 9 of file DeadChannelsManager.cc.
References analysisMaskPresent.
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, RPDisplacementGenerator::rawToDecId(), TotemSymbID::symbolicID, and nano_mu_digi_cff::vfatMask.
|
private |
Definition at line 15 of file DeadChannelsManager.h.
Referenced by DeadChannelsManager(), displayMap(), and isChannelDead().
|
private |
Definition at line 16 of file DeadChannelsManager.h.
Referenced by DeadChannelsManager(), displayMap(), and isChannelDead().