Public Member Functions | |
void | SetupDet (int det) |
void | SetupNDOS () |
void | SetupNearDet () |
void | SetupFarDet () |
void | SetupTestBeam () |
void | DAQToXY (unsigned int db, unsigned int dcm, unsigned int feb, unsigned int pix, unsigned int *ix, unsigned int *iy) |
void | XYToDAQ (unsigned int *db, unsigned int *dcm, unsigned int *feb, unsigned int *pix, unsigned int ix, unsigned int iy) |
void | DAQToPlaneModCell (unsigned int *block, unsigned int *plane, unsigned int *view, unsigned int *module, unsigned int *cell, unsigned int db, unsigned int dcm, unsigned int feb, unsigned int pix) |
void | DAQToPlaneInBlockModCell (unsigned int *block, unsigned int *pinb, unsigned int *view, unsigned int *module, unsigned int *cell, unsigned int db, unsigned int dcm, unsigned int feb, unsigned int pix) |
void | PlaneCellToDAQ (unsigned int plane, unsigned int *pinb, unsigned int *view, unsigned int *module, unsigned int cell, unsigned int *db, unsigned int *block, unsigned int *dcm, unsigned int *feb, unsigned int *pix) |
void | DiblockXY (unsigned int db, unsigned int *ix, unsigned int *iy) |
void | DCMXY (unsigned int dcm, unsigned int *ix, unsigned int *iy) |
void | FEBXY (unsigned int feb, unsigned int *ix, unsigned int *iy) |
void | PixXY (unsigned int pix, unsigned int *ix, unsigned int *iy) |
void | XYDiblock (unsigned int *db, unsigned int ix) |
void | XYDCM (unsigned int *dcm, unsigned int iy) |
void | XYFEB (unsigned int *feb, unsigned int ix, unsigned int iy) |
void | XYPix (unsigned int *pix, unsigned int ix, unsigned int iy) |
Public Attributes | |
unsigned int | fDetId |
DAQ detector ID. More... | |
unsigned int | fNdiblocks |
Number of diblocks in detector. More... | |
unsigned int | fNdcmTop |
Number of DMC's per diblock on top of detector. More... | |
unsigned int | fNdcmSide |
Number of DMC's per diblock on side of detector. More... | |
unsigned int | fNfebCols |
Number of FEB columns in a DCM. More... | |
unsigned int | fNfebRows |
Number of FEB rows in a DCM. More... | |
unsigned int | fNpixCols |
Number of pixel columns in an FEB. More... | |
unsigned int | fNpixRows |
Number of pixel rows in an FEB. More... | |
unsigned int | fNxPerDB |
Width of 1 diblock. More... | |
unsigned int | fNyPerDCM |
Height of 1 DCM. More... | |
unsigned int | fNplanes |
Number of planes in the detector. More... | |
unsigned int | fNplanesPerBL |
Number of planes per block. More... | |
unsigned int | fNxcells |
Width of detector in units of cells. More... | |
unsigned int | fNycells |
Height of detector in units of cells. More... | |
unsigned int | fXmax |
Width of entire view. More... | |
unsigned int | fYmax |
Height of entire view. More... | |
unsigned int | fNcellPerMod |
Number of cells per module. More... | |
Map hardware addresses to a set of x,y pairs for display
Definition at line 14 of file HardwareDisplay.h.
void HardwareDisplay::DAQToPlaneInBlockModCell | ( | unsigned int * | block, |
unsigned int * | pinb, | ||
unsigned int * | view, | ||
unsigned int * | module, | ||
unsigned int * | cell, | ||
unsigned int | db, | ||
unsigned int | dcm, | ||
unsigned int | feb, | ||
unsigned int | pix | ||
) |
................................................................. Convert a DAQ address to a plane number within a block / module / global cell address
block | - on return, block number 0...27 |
pinb | - on return, plane number within a block (0...31) |
view | - on return, X measuring (vertical) or Y measuring (horizontal) |
module | - on return, Module number 0...11 |
cell | - on return, Global cell number 0...nmodule*32 |
db | - input DAQ diblock address |
dcm | - input DAQ DCM address |
feb | - input DAQ FEB address |
pix | - input DAQ APD pixel address |
Definition at line 305 of file HardwareDisplay.cpp.
References daqchannelmap::DAQChannelMap::computeBlock(), daqchannelmap::DAQChannelMap::computePlaneInBlock(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getCell(), daqchannelmap::DAQChannelMap::getInstance(), and daqchannelmap::DAQChannelMap::getView().
Referenced by om::PlotClickHandler::FEButcInfo(), om::PlotClickHandler::HwDCMHistogramInfo(), om::PlotClickHandler::HwDetHistogramInfo(), and om::FEBRateAnalysis::StoreContent().
void HardwareDisplay::DAQToPlaneModCell | ( | unsigned int * | block, |
unsigned int * | plane, | ||
unsigned int * | view, | ||
unsigned int * | module, | ||
unsigned int * | cell, | ||
unsigned int | db, | ||
unsigned int | dcm, | ||
unsigned int | feb, | ||
unsigned int | pix | ||
) |
................................................................. Convert a DAQ address to a global plane / module / global cell address
block | - on return, block number 0...27 |
plane | - on return, global plane number (0...nblock*32) |
view | - on return, X measuring (vertical) or Y measuring (horizontal) |
module | - on return, Module number 0...11 |
cell | - on return, Global cell number 0...nmodule*32 |
db | - input DAQ diblock address |
dcm | - input DAQ DCM address |
feb | - input DAQ FEB address |
pix | - input DAQ APD pixel address |
Definition at line 280 of file HardwareDisplay.cpp.
References daqchannelmap::DAQChannelMap::computeBlock(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getCell(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPlane(), and daqchannelmap::DAQChannelMap::getView().
Referenced by om::PlotClickHandler::FEButcInfo(), om::PlotClickHandler::HwDCMHistogramInfo(), and om::PlotClickHandler::HwDetHistogramInfo().
void HardwareDisplay::DAQToXY | ( | unsigned int | db, |
unsigned int | dcm, | ||
unsigned int | feb, | ||
unsigned int | pix, | ||
unsigned int * | ix, | ||
unsigned int * | iy | ||
) |
................................................................. Assign an x,y display location to a DAQ hardware address
db | - diblock number 1...14 |
dcm | - DCM number 1...12 |
feb | - FEB number 0...63 |
pix | - pixel number 0...31 |
ix | - On return, the x display location assigned |
iy | - On return, the y display location assigned |
Definition at line 190 of file HardwareDisplay.cpp.
References x1, submit_syst::x2, y1, and submit_syst::y2.
Referenced by evd::RawDataDrawer::RawDigitHardware(), and om::RawEventUnpacker::UnpackNanoSlice().
................................................................. Get the lower left hand corner on the display for a DCM
DCM | : DCM number, 1...12 |
ix | : On return, x pixel location within a Diblock block |
iy | : On return, y pixel location within a Diblock block |
Definition at line 151 of file HardwareDisplay.cpp.
Referenced by om::MicroErrors::GetMicroSliceSummary(), OnMonAnaHistosFEB_IssueRates(), and OnMonAnaHistosPIX().
................................................................. Get the lower left hand corner on the display for a Diblock
db | : Diblock number, 1-14... |
ix | : On return, x pixel location within the whole display |
iy | : On return, y pixel location within the whole display |
Definition at line 140 of file HardwareDisplay.cpp.
References febshutoff_auto::db.
Referenced by om::MicroErrors::GetMicroSliceSummary(), OnMonAnaHistosFEB_IssueRates(), and OnMonAnaHistosPIX().
................................................................. Get the lower left hand corner on the display for an FEB
FEB | : FEB number, 0...63 |
ix | : On return, x pixel location within a DCM block |
iy | : On return, y pixel location within a DCM block |
Definition at line 161 of file HardwareDisplay.cpp.
Referenced by BuildMetricsTree_OnMon(), om::NanoErrors::GetNanoSliceSummary(), om::HitMaps::GetNanoSliceSummary(), OnMonAnaHistosFEB_IssueRates(), and OnMonAnaHistosPIX().
................................................................. Get the location of a pixel on the display inside an FEB
pix | - Pixel number 0...31 |
ix | - On return, x display location within an FEB |
iy | - On return, y display location within an FEB |
Definition at line 171 of file HardwareDisplay.cpp.
References submit_syst::x, and submit_syst::y.
Referenced by BuildMetricsTree_OnMon(), om::NanoErrors::GetNanoSliceSummary(), om::HitMaps::GetNanoSliceSummary(), OnMonAnaHistosFEB_IssueRates(), and OnMonAnaHistosPIX().
void HardwareDisplay::PlaneCellToDAQ | ( | unsigned int | plane, |
unsigned int * | pinb, | ||
unsigned int * | view, | ||
unsigned int * | module, | ||
unsigned int | cell, | ||
unsigned int * | db, | ||
unsigned int * | block, | ||
unsigned int * | dcm, | ||
unsigned int * | feb, | ||
unsigned int * | pix | ||
) |
................................................................. Convert a global plane and cell address to a DAQ address
plane | - input global plane number, 0...nblock*32 |
pinb | - on return, plane number within a block (0...31) |
view | - on return, X measuring (vertical) or Y measuring (horizontal) |
module | - on return, Module number 0...11 |
cell | - input global cell number 0...nmodule*32 |
db | - input DAQ diblock address |
block | - on return block address |
dcm | - on return, DAQ DCM address |
feb | - on return, DAQ FEB address |
pix | - on return, DAQ APD pixel address |
Definition at line 330 of file HardwareDisplay.cpp.
References getBrightness::cell, daqchannelmap::DAQChannelMap::computeBlock(), daqchannelmap::DAQChannelMap::computePlaneInBlock(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPixel(), and daqchannelmap::DAQChannelMap::getView().
Referenced by om::PlotClickHandler::HwPCHistogramInfoX(), and om::PlotClickHandler::HwPCHistogramInfoY().
................................................................. Configure the mapping for a detector
det | : Detector ID following NovaDAQConventions |
Definition at line 16 of file HardwareDisplay.cpp.
References om::cerr, allTimeWatchdog::endl, cmf::kFARDET, novadaq::cnv::kNDOS, cmf::kNEARDET, and novadaq::cnv::kTESTBEAM.
Referenced by chaninfo::BadChanValidate::BadChansFromOM(), BuildMetricsTree_OnMon(), evd::HardwarePad::Config(), om::UTCLabel::DCMLabels(), om::UTCLabel::FEBLabels(), om::FEBRateAnalysis::FEBRateAnalysis(), om::FEBRatesByDiblock::FEBRatesByDiblock(), om::HitMaps::HitMaps(), om::MicroErrors::MicroErrors(), om::NanoErrors::NanoErrors(), OnMonAnaHistosFEB_IssueRates(), OnMonAnaHistosPIX(), om::PlotClickHandler::PlotClickHandler(), evd::RawDataDrawer::RawDigitHardware(), and om::RawEventUnpacker::RawEventUnpacker().
void HardwareDisplay::SetupFarDet | ( | ) |
Definition at line 86 of file HardwareDisplay.cpp.
References cmf::kFARDET.
void HardwareDisplay::SetupNDOS | ( | ) |
Definition at line 32 of file HardwareDisplay.cpp.
References novadaq::cnv::kNDOS.
void HardwareDisplay::SetupNearDet | ( | ) |
Definition at line 59 of file HardwareDisplay.cpp.
References cmf::kNEARDET.
void HardwareDisplay::SetupTestBeam | ( | ) |
Definition at line 113 of file HardwareDisplay.cpp.
References novadaq::cnv::kTESTBEAM.
................................................................. Map a y display location to a diblock address
dcm | : on return, the DCM address (1...14) |
iy | : input y display location |
Definition at line 224 of file HardwareDisplay.cpp.
Referenced by om::PlotClickHandler::HwDetDoubleClick(), and om::FEBRateAnalysis::StoreContent().
................................................................. Map an x display location to a diblock address
db | : on return, the diblock address (1...14) |
ix | : input x display location |
Definition at line 215 of file HardwareDisplay.cpp.
Referenced by om::PlotClickHandler::HwDetDoubleClick(), and om::FEBRateAnalysis::StoreContent().
................................................................. Map a x,y display location to a diblock address
feb | : on return, the FEB address (1...14) |
ix | : input x display location |
iy | : input y display location |
Definition at line 232 of file HardwareDisplay.cpp.
Referenced by chaninfo::BadChanValidate::BadChansFromOM(), and om::FEBRateAnalysis::StoreContent().
................................................................. Map an x,y display location to a pixel address
pix | : on return, the pixel address (1...14) |
ix | : input x display location |
iy | : input y display location |
Definition at line 244 of file HardwareDisplay.cpp.
Referenced by chaninfo::BadChanValidate::BadChansFromOM(), and om::FEBRateAnalysis::StoreContent().
void HardwareDisplay::XYToDAQ | ( | unsigned int * | db, |
unsigned int * | dcm, | ||
unsigned int * | feb, | ||
unsigned int * | pix, | ||
unsigned int | ix, | ||
unsigned int | iy | ||
) |
................................................................. Map an x,y location on the display to a DAQ hardware address
db | - on return, the diblock address |
dcm | - on return, the DCM address |
feb | - on return, the FEB address |
pix | - on return, the pixel address |
ix | - input x display location |
iy | - input y display location |
Definition at line 265 of file HardwareDisplay.cpp.
Referenced by om::PlotClickHandler::HwDCMHistogramInfo(), and om::PlotClickHandler::HwDetHistogramInfo().
unsigned int daqchannelmap::HardwareDisplay::fDetId |
DAQ detector ID.
Definition at line 197 of file HardwareDisplay.h.
Referenced by om::FEBRateAnalysis::AnaFile().
unsigned int daqchannelmap::HardwareDisplay::fNcellPerMod |
Number of cells per module.
Definition at line 213 of file HardwareDisplay.h.
unsigned int daqchannelmap::HardwareDisplay::fNdcmSide |
Number of DMC's per diblock on side of detector.
Definition at line 200 of file HardwareDisplay.h.
Referenced by om::UTCLabel::DCMLabels(), om::PlotClickHandler::DCMutcInfo(), om::UTCLabel::FEBLabels(), om::FEBRatesByDiblock::FEBRatesByDiblock(), and evd::RawDataDrawer::RawDigitHardware().
unsigned int daqchannelmap::HardwareDisplay::fNdcmTop |
Number of DMC's per diblock on top of detector.
Definition at line 199 of file HardwareDisplay.h.
Referenced by om::UTCLabel::DCMLabels(), om::PlotClickHandler::DCMutcInfo(), om::UTCLabel::FEBLabels(), om::FEBRatesByDiblock::FEBRatesByDiblock(), and evd::RawDataDrawer::RawDigitHardware().
unsigned int daqchannelmap::HardwareDisplay::fNdiblocks |
Number of diblocks in detector.
Definition at line 198 of file HardwareDisplay.h.
Referenced by om::UTCLabel::DCMLabels(), om::FEBRatesByDiblock::FEBRatesByDiblock(), om::FEBRatesByDiblock::GetNanoSliceSummary(), and evd::RawDataDrawer::RawDigitHardware().
unsigned int daqchannelmap::HardwareDisplay::fNfebCols |
Number of FEB columns in a DCM.
Definition at line 201 of file HardwareDisplay.h.
Referenced by evd::RawDataDrawer::RawDigitHardware().
unsigned int daqchannelmap::HardwareDisplay::fNfebRows |
Number of FEB rows in a DCM.
Definition at line 202 of file HardwareDisplay.h.
Referenced by evd::RawDataDrawer::RawDigitHardware().
unsigned int daqchannelmap::HardwareDisplay::fNpixCols |
Number of pixel columns in an FEB.
Definition at line 203 of file HardwareDisplay.h.
Referenced by evd::RawDataDrawer::RawDigitHardware().
unsigned int daqchannelmap::HardwareDisplay::fNpixRows |
Number of pixel rows in an FEB.
Definition at line 204 of file HardwareDisplay.h.
Referenced by evd::RawDataDrawer::RawDigitHardware().
unsigned int daqchannelmap::HardwareDisplay::fNplanes |
Number of planes in the detector.
Definition at line 207 of file HardwareDisplay.h.
unsigned int daqchannelmap::HardwareDisplay::fNplanesPerBL |
Number of planes per block.
Definition at line 208 of file HardwareDisplay.h.
unsigned int daqchannelmap::HardwareDisplay::fNxcells |
Width of detector in units of cells.
Definition at line 209 of file HardwareDisplay.h.
unsigned int daqchannelmap::HardwareDisplay::fNxPerDB |
Width of 1 diblock.
Definition at line 205 of file HardwareDisplay.h.
unsigned int daqchannelmap::HardwareDisplay::fNycells |
Height of detector in units of cells.
Definition at line 210 of file HardwareDisplay.h.
unsigned int daqchannelmap::HardwareDisplay::fNyPerDCM |
Height of 1 DCM.
Definition at line 206 of file HardwareDisplay.h.
unsigned int daqchannelmap::HardwareDisplay::fXmax |
Width of entire view.
Definition at line 211 of file HardwareDisplay.h.
Referenced by evd::HardwarePad::Config(), and evd::RawDataDrawer::RawDigitHardware().
unsigned int daqchannelmap::HardwareDisplay::fYmax |
Height of entire view.
Definition at line 212 of file HardwareDisplay.h.
Referenced by evd::HardwarePad::Config(), and evd::RawDataDrawer::RawDigitHardware().