CMS 3D CMS Logo

SiPixelModuleStatus.h
Go to the documentation of this file.
1 #ifndef SIPIXELMODULESTATUS_h
2 #define SIPIXELMODULESTATUS_h
3 
6 
7 #include <vector>
8 
9 // ----------------------------------------------------------------------
11 public:
12  SiPixelModuleStatus(int det = 0, int nrocs = 16); // default for Phase-1
14 
16  void fillDIGI(int iroc);
19 
21  void updateDIGI(int iroc, unsigned int nhit);
23  void updateFEDerror25(int iroc, bool FEDerror25);
24 
26  unsigned int digiOccROC(int iroc);
27 
29  bool fedError25(int iroc);
30 
32  unsigned int digiOccMOD();
33 
36 
38  int detid();
39  int nrocs();
40  void setDetId(int detid);
41  void setNrocs(int iroc);
42 
44  double perRocDigiOcc();
45  double perRocDigiOccVar();
46 
48  void updateModuleDIGI(int roc, unsigned int nhits);
50 
51 private:
53  std::vector<SiPixelRocStatus> fRocs_;
54 };
55 
56 #endif
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 setDetId(int detid)
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)
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&#39;s ROCs) mean hit number and its sigma