#include <SiPixelModuleStatus.h>
Public Member Functions | |
int | detid () |
accessors and setters More... | |
unsigned long int | digiOccDC (int iroc, int idc) |
return DC status of a ROC (=hits on DC idc on ROC iroc) More... | |
unsigned long int | digiOccMOD () |
return module status (= hits on module) More... | |
unsigned long int | digiOccROC (int iroc) |
return ROC status (= hits on ROC iroc) More... | |
void | digiOccupancy () |
calculate (averaged over this module's ROCs) mean hit number and its sigma More... | |
void | fillDIGI (int iroc, int idc) |
fill with online coordinates More... | |
void | fillStuckTBM (PixelFEDChannel ch, std::time_t time) |
fill stuck TBM More... | |
SiPixelRocStatus * | getRoc (int i) |
get a ROC More... | |
int | nrocs () |
double | perRocDigiOcc () |
double | perRocDigiOccVar () |
void | setNrocs (int iroc) |
SiPixelModuleStatus (int det=0, int nrocs=16) | |
void | updateDIGI (int iroc, int idc, unsigned long nhit) |
fill with online coordinates (nhit > 1) More... | |
void | updateModuleDIGI (int roc, int dc, unsigned long int nhits) |
combine new data to update(topup) module status More... | |
void | updateModuleStatus (SiPixelModuleStatus newData) |
~SiPixelModuleStatus () | |
Private Attributes | |
int | fDetid |
double | fModAverage |
double | fModSigma |
int | fNrocs |
std::vector< SiPixelRocStatus > | fRocs |
Definition at line 11 of file SiPixelModuleStatus.h.
SiPixelModuleStatus::SiPixelModuleStatus | ( | int | det = 0 , |
int | nrocs = 16 |
||
) |
Definition at line 14 of file SiPixelModuleStatus.cc.
References a, fModAverage, fModSigma, fNrocs, fRocs, and mps_fire::i.
SiPixelModuleStatus::~SiPixelModuleStatus | ( | ) |
Definition at line 27 of file SiPixelModuleStatus.cc.
int SiPixelModuleStatus::detid | ( | ) |
accessors and setters
Definition at line 89 of file SiPixelModuleStatus.cc.
References fDetid.
Referenced by updateModuleStatus().
unsigned long int SiPixelModuleStatus::digiOccDC | ( | int | iroc, |
int | idc | ||
) |
return DC status of a ROC (=hits on DC idc on ROC iroc)
Definition at line 61 of file SiPixelModuleStatus.cc.
Referenced by updateModuleStatus().
unsigned long int SiPixelModuleStatus::digiOccMOD | ( | ) |
return module status (= hits on module)
Definition at line 77 of file SiPixelModuleStatus.cc.
References KineDebug3::count(), digiOccROC(), and fNrocs.
unsigned long int SiPixelModuleStatus::digiOccROC | ( | int | iroc | ) |
return ROC status (= hits on ROC iroc)
Definition at line 69 of file SiPixelModuleStatus.cc.
Referenced by digiOccMOD(), digiOccupancy(), and SiPixelStatusHarvester::endRun().
void SiPixelModuleStatus::digiOccupancy | ( | ) |
calculate (averaged over this module's ROCs) mean hit number and its sigma
Definition at line 122 of file SiPixelModuleStatus.cc.
References digiOccROC(), fModAverage, fModSigma, and fNrocs.
Referenced by perRocDigiOcc(), and perRocDigiOccVar().
void SiPixelModuleStatus::fillDIGI | ( | int | iroc, |
int | idc | ||
) |
void SiPixelModuleStatus::fillStuckTBM | ( | PixelFEDChannel | ch, |
std::time_t | time | ||
) |
fill stuck TBM
Definition at line 47 of file SiPixelModuleStatus.cc.
References PixelFEDChannel::fed, fNrocs, fRocs, createfilelist::int, PixelFEDChannel::link, PixelFEDChannel::roc_first, and PixelFEDChannel::roc_last.
SiPixelRocStatus * SiPixelModuleStatus::getRoc | ( | int | i | ) |
get a ROC
Definition at line 145 of file SiPixelModuleStatus.cc.
References fRocs, and mps_fire::i.
Referenced by SiPixelDetectorStatus::getStuckTBMsRocs(), and updateModuleStatus().
int SiPixelModuleStatus::nrocs | ( | ) |
Definition at line 97 of file SiPixelModuleStatus.cc.
References fNrocs.
Referenced by SiPixelStatusHarvester::endRun(), SiPixelDetectorStatus::getStuckTBMsRocs(), and updateModuleStatus().
double SiPixelModuleStatus::perRocDigiOcc | ( | ) |
Definition at line 108 of file SiPixelModuleStatus.cc.
References digiOccupancy(), and fModAverage.
double SiPixelModuleStatus::perRocDigiOccVar | ( | ) |
Definition at line 115 of file SiPixelModuleStatus.cc.
References digiOccupancy(), and fModSigma.
void SiPixelModuleStatus::setNrocs | ( | int | iroc | ) |
Definition at line 102 of file SiPixelModuleStatus.cc.
References fNrocs.
Referenced by SiPixelDetectorStatus::readFromFile().
void SiPixelModuleStatus::updateDIGI | ( | int | iroc, |
int | idc, | ||
unsigned long | nhit | ||
) |
void SiPixelModuleStatus::updateModuleDIGI | ( | int | roc, |
int | dc, | ||
unsigned long int | nhits | ||
) |
combine new data to update(topup) module status
Definition at line 150 of file SiPixelModuleStatus.cc.
References fRocs.
Referenced by SiPixelDetectorStatus::readFromFile().
void SiPixelModuleStatus::updateModuleStatus | ( | SiPixelModuleStatus | newData | ) |
Definition at line 154 of file SiPixelModuleStatus.cc.
References detid(), digiOccDC(), fDetid, fNrocs, fRocs, SiPixelRocStatus::getBadFed(), SiPixelRocStatus::getBadFreq(), SiPixelRocStatus::getBadLink(), getRoc(), SiPixelRocStatus::getStartBadTime(), SiPixelRocStatus::isStuckTBM(), and nrocs().
Referenced by SiPixelDetectorStatus::combineDetectorStatus().
|
private |
Definition at line 55 of file SiPixelModuleStatus.h.
Referenced by detid(), and updateModuleStatus().
|
private |
Definition at line 56 of file SiPixelModuleStatus.h.
Referenced by digiOccupancy(), perRocDigiOcc(), and SiPixelModuleStatus().
|
private |
Definition at line 56 of file SiPixelModuleStatus.h.
Referenced by digiOccupancy(), perRocDigiOccVar(), and SiPixelModuleStatus().
|
private |
Definition at line 55 of file SiPixelModuleStatus.h.
Referenced by digiOccDC(), digiOccMOD(), digiOccROC(), digiOccupancy(), fillDIGI(), fillStuckTBM(), nrocs(), setNrocs(), SiPixelModuleStatus(), updateDIGI(), and updateModuleStatus().
|
private |
Definition at line 57 of file SiPixelModuleStatus.h.
Referenced by digiOccDC(), digiOccROC(), fillDIGI(), fillStuckTBM(), getRoc(), SiPixelModuleStatus(), updateDIGI(), updateModuleDIGI(), and updateModuleStatus().