#include <SiPixelModuleStatus.h>
Public Member Functions | |
int | detid () |
accessors and setters More... | |
unsigned int | digiOccMOD () |
return module status (= hits on module) More... | |
unsigned int | digiOccROC (int iroc) |
return ROC status (= hits on ROC iroc) More... | |
void | fillDIGI (int iroc) |
fill with online coordinates More... | |
void | fillFEDerror25 (PixelFEDChannel ch) |
fill FEDerror25 More... | |
SiPixelRocStatus * | getRoc (int i) |
get a ROC More... | |
int | nrocs () |
double | perRocDigiOcc () |
calculate (averaged over this module's ROCs) mean hit number and its sigma More... | |
double | perRocDigiOccVar () |
void | setNrocs (int iroc) |
SiPixelModuleStatus (int det=0, int nrocs=16) | |
void | updateDIGI (int iroc, unsigned int nhit) |
fill with online coordinates (nhit > 1) More... | |
void | updateModuleDIGI (int roc, unsigned int nhits) |
combine new data to update(topup) module status More... | |
void | updateModuleStatus (SiPixelModuleStatus newData) |
~SiPixelModuleStatus () | |
Private Attributes | |
int | fDetid |
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 12 of file SiPixelModuleStatus.cc.
References a, fNrocs, fRocs, and mps_fire::i.
SiPixelModuleStatus::~SiPixelModuleStatus | ( | ) |
Definition at line 23 of file SiPixelModuleStatus.cc.
int SiPixelModuleStatus::detid | ( | ) |
accessors and setters
Definition at line 73 of file SiPixelModuleStatus.cc.
References fDetid.
Referenced by updateModuleStatus().
unsigned int SiPixelModuleStatus::digiOccMOD | ( | ) |
return module status (= hits on module)
Definition at line 62 of file SiPixelModuleStatus.cc.
References KineDebug3::count(), digiOccROC(), and fNrocs.
unsigned int SiPixelModuleStatus::digiOccROC | ( | int | iroc | ) |
return ROC status (= hits on ROC iroc)
Definition at line 55 of file SiPixelModuleStatus.cc.
Referenced by digiOccMOD(), SiPixelStatusHarvester::endRunProduce(), perRocDigiOcc(), perRocDigiOccVar(), and updateModuleStatus().
void SiPixelModuleStatus::fillDIGI | ( | int | iroc | ) |
void SiPixelModuleStatus::fillFEDerror25 | ( | PixelFEDChannel | ch | ) |
fill FEDerror25
Definition at line 43 of file SiPixelModuleStatus.cc.
References fNrocs, fRocs, createfilelist::int, PixelFEDChannel::roc_first, and PixelFEDChannel::roc_last.
SiPixelRocStatus * SiPixelModuleStatus::getRoc | ( | int | i | ) |
get a ROC
Definition at line 122 of file SiPixelModuleStatus.cc.
References fRocs, and mps_fire::i.
Referenced by SiPixelDetectorStatus::getFEDerror25Rocs(), and updateModuleStatus().
int SiPixelModuleStatus::nrocs | ( | ) |
Definition at line 80 of file SiPixelModuleStatus.cc.
References fNrocs.
Referenced by SiPixelStatusHarvester::endRunProduce(), SiPixelDetectorStatus::getFEDerror25Rocs(), and updateModuleStatus().
double SiPixelModuleStatus::perRocDigiOcc | ( | ) |
calculate (averaged over this module's ROCs) mean hit number and its sigma
Definition at line 94 of file SiPixelModuleStatus.cc.
References digiOccROC(), and fNrocs.
Referenced by perRocDigiOccVar().
double SiPixelModuleStatus::perRocDigiOccVar | ( | ) |
Definition at line 105 of file SiPixelModuleStatus.cc.
References digiOccROC(), fNrocs, and perRocDigiOcc().
void SiPixelModuleStatus::setNrocs | ( | int | iroc | ) |
Definition at line 87 of file SiPixelModuleStatus.cc.
References fNrocs.
Referenced by SiPixelDetectorStatus::readFromFile().
void SiPixelModuleStatus::updateDIGI | ( | int | iroc, |
unsigned int | nhit | ||
) |
void SiPixelModuleStatus::updateModuleDIGI | ( | int | roc, |
unsigned int | nhits | ||
) |
combine new data to update(topup) module status
Definition at line 129 of file SiPixelModuleStatus.cc.
References fRocs.
Referenced by SiPixelDetectorStatus::readFromFile().
void SiPixelModuleStatus::updateModuleStatus | ( | SiPixelModuleStatus | newData | ) |
Definition at line 135 of file SiPixelModuleStatus.cc.
References detid(), digiOccROC(), fDetid, fNrocs, fRocs, getRoc(), SiPixelRocStatus::isFEDerror25(), and nrocs().
|
private |
Definition at line 51 of file SiPixelModuleStatus.h.
Referenced by detid(), and updateModuleStatus().
|
private |
Definition at line 51 of file SiPixelModuleStatus.h.
Referenced by digiOccMOD(), digiOccROC(), fillDIGI(), fillFEDerror25(), nrocs(), perRocDigiOcc(), perRocDigiOccVar(), setNrocs(), SiPixelModuleStatus(), updateDIGI(), and updateModuleStatus().
|
private |
Definition at line 52 of file SiPixelModuleStatus.h.
Referenced by digiOccROC(), fillDIGI(), fillFEDerror25(), getRoc(), SiPixelModuleStatus(), updateDIGI(), updateModuleDIGI(), and updateModuleStatus().