CMS 3D CMS Logo

SiPixelRocStatus.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <map>
3 #include <cmath>
4 #include <vector>
5 
7 
8 using namespace std;
9 
10 // ----------------------------------------------------------------------
12  fDC_ = 0;
13  isFEDerror25_ = false;
14 }
15 
16 // ----------------------------------------------------------------------
18 
19 // ----------------------------------------------------------------------
20 void SiPixelRocStatus::fillDIGI() { fDC_++; }
21 // ----------------------------------------------------------------------
22 void SiPixelRocStatus::fillFEDerror25() { isFEDerror25_ = true; }
23 
24 // ----------------------------------------------------------------------
25 void SiPixelRocStatus::updateDIGI(unsigned int hits) { fDC_ += hits; }
26 // ----------------------------------------------------------------------
27 /*AND logic to update FEDerror25*/
28 void SiPixelRocStatus::updateFEDerror25(bool fedError25) { isFEDerror25_ = isFEDerror25_ && fedError25; }
29 
30 // ----------------------------------------------------------------------
31 unsigned int SiPixelRocStatus::digiOccROC() { return fDC_; }
32 // ----------------------------------------------------------------------
33 bool SiPixelRocStatus::isFEDerror25() { return isFEDerror25_; }
void updateFEDerror25(bool fedError25)
void updateDIGI(unsigned int hits)
unsigned int digiOccROC()