31 for (
int iroc = 0; iroc <
fNrocs_; iroc++) {
32 if (iroc >= roc_first && iroc <= roc_last) {
33 fRocs_[iroc].fillFEDerror25();
49 fRocs_[iroc].updateDIGI(nhit);
54 fRocs_[iroc].updateFEDerror25(fedError25);
63 unsigned int count(0);
64 for (
int iroc = 0; iroc <
fNrocs_; ++iroc) {
73 for (
int iroc = 0; iroc <
fNrocs_; ++iroc) {
84 for (
int iroc = 0; iroc <
fNrocs_; ++iroc) {
86 sig += (fModAverage - inc) * (fModAverage - inc);
89 double fModSigma = sig / (fNrocs_ - 1);
90 return TMath::Sqrt(fModSigma);
100 fRocs_[iroc].updateDIGI(nhits);
104 bool isSameModule =
true;
106 isSameModule =
false;
110 for (
int iroc = 0; iroc <
fNrocs_; ++iroc) {
void updateModuleDIGI(int roc, unsigned int nhits)
combine new data to update(topup) module status
void fillDIGI(int iroc)
fill digi
void fillFEDerror25(PixelFEDChannel ch)
fill FEDerror25
std::vector< SiPixelRocStatus > fRocs_
int detid()
accessors and setters
bool fedError25(int iroc)
return ROC FEDerror25
void updateFEDerror25(int iroc, bool FEDerror25)
update FEDerror25
void updateDIGI(int iroc, unsigned int nhit)
update digi (nhit > 1)
SiPixelModuleStatus(int det=0, int nrocs=16)
unsigned int digiOccMOD()
return module status (= hits on module)
double perRocDigiOccVar()
SiPixelRocStatus * getRoc(int i)
get a ROC
void updateModuleStatus(SiPixelModuleStatus newData)
unsigned int digiOccROC(int iroc)
return ROC status (= hits on ROC iroc)
double perRocDigiOcc()
calculate (averaged over this module's ROCs) mean hit number and its sigma