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 
10 // ----------------------------------------------------------------------
12 
13 public:
14 
15  SiPixelModuleStatus(int det = 0, int nrocs = 16);
17 
19  void fillDIGI(int iroc);
20 
22  void updateDIGI(int iroc, unsigned int nhit);
23 
26 
28  unsigned int digiOccROC(int iroc);
29 
31  unsigned int digiOccMOD();
32 
35 
37  int detid();
38  int nrocs();
39  void setNrocs(int iroc);
40 
42  double perRocDigiOcc();
43  double perRocDigiOccVar();
44 
46  void updateModuleDIGI(int roc, unsigned int nhits);
48 
49 private:
50 
51  int fDetid, fNrocs;
52  std::vector<SiPixelRocStatus> fRocs;
53 
54 };
55 
56 #endif
void updateModuleDIGI(int roc, unsigned int nhits)
combine new data to update(topup) module status
void fillDIGI(int iroc)
fill with online coordinates
void fillFEDerror25(PixelFEDChannel ch)
fill FEDerror25
int detid()
accessors and setters
std::vector< SiPixelRocStatus > fRocs
void updateDIGI(int iroc, unsigned int nhit)
fill with online coordinates (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