CMS 3D CMS Logo

SiPixelRocStatus.h
Go to the documentation of this file.
1 #ifndef SIPIXELROCSTATUS_h
2 #define SIPIXELROCSTATUS_h
3 
4 #include <ctime>
5 
6 // ----------------------------------------------------------------------
8 public:
11  void fillDIGI(int idc);
12  void updateDIGI(int idc, unsigned long int hits);
13 
14  void fillStuckTBM(unsigned int fed, unsigned int link, std::time_t time);
15  void updateStuckTBM(unsigned int fed, unsigned int link, std::time_t time, unsigned long int freq);
16 
17  // stuckTBM
18  bool isStuckTBM(){ return isStuckTBM_; }
19  unsigned int getBadFed(){ return badFed_; }
20  unsigned int getBadLink(){ return badLink_; }
21  std::time_t getStartBadTime(){ return startBadTime_; }
22  unsigned long int getBadFreq(){ return badFreq_; }
23 
24  // occpancy
25  unsigned long int digiOccDC(int idc);
26  unsigned long int digiOccROC();
27 
28  int nDC(){ return nDC_;}
29 
30 
31 private:
32  const int nDC_ = 26;
33  unsigned long int fDC[26];
34 
36  unsigned int badFed_;
37  unsigned int badLink_;
38  std::time_t startBadTime_;
39  unsigned long int badFreq_;
40 
41 };
42 
43 #endif
void updateDIGI(int idc, unsigned long int hits)
unsigned int badFed_
std::time_t startBadTime_
void fillStuckTBM(unsigned int fed, unsigned int link, std::time_t time)
unsigned long int digiOccDC(int idc)
void fillDIGI(int idc)
unsigned long int getBadFreq()
unsigned int getBadLink()
unsigned int getBadFed()
unsigned int badLink_
unsigned long int fDC[26]
std::time_t getStartBadTime()
void updateStuckTBM(unsigned int fed, unsigned int link, std::time_t time, unsigned long int freq)
unsigned long int badFreq_
unsigned long int digiOccROC()