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);
14 
16  void fillDIGI(int iroc);
17 
19  void updateDIGI(int iroc, unsigned int nhit);
20 
23 
25  unsigned int digiOccROC(int iroc);
26 
28  unsigned int digiOccMOD();
29 
32 
34  int detid();
35  int nrocs();
36  void setNrocs(int iroc);
37 
39  double perRocDigiOcc();
40  double perRocDigiOccVar();
41 
43  void updateModuleDIGI(int roc, unsigned int nhits);
45 
46 private:
47  int fDetid, fNrocs;
48  std::vector<SiPixelRocStatus> fRocs;
49 };
50 
51 #endif
mps_fire.i
i
Definition: mps_fire.py:355
PixelFEDChannel
Definition: PixelFEDChannel.h:6
SiPixelModuleStatus::digiOccMOD
unsigned int digiOccMOD()
return module status (= hits on module)
Definition: SiPixelModuleStatus.cc:49
SiPixelModuleStatus::fillDIGI
void fillDIGI(int iroc)
fill with online coordinates
Definition: SiPixelModuleStatus.cc:23
SiPixelRocStatus.h
SiPixelModuleStatus::fDetid
int fDetid
Definition: SiPixelModuleStatus.h:47
PixelFEDChannel.h
SiPixelModuleStatus::fNrocs
int fNrocs
Definition: SiPixelModuleStatus.h:47
SiPixelRocStatus
Definition: SiPixelRocStatus.h:5
SiPixelModuleStatus::SiPixelModuleStatus
SiPixelModuleStatus(int det=0, int nrocs=16)
Definition: SiPixelModuleStatus.cc:12
SiPixelModuleStatus::fillFEDerror25
void fillFEDerror25(PixelFEDChannel ch)
fill FEDerror25
Definition: SiPixelModuleStatus.cc:35
SiPixelModuleStatus
Definition: SiPixelModuleStatus.h:10
SiPixelModuleStatus::updateDIGI
void updateDIGI(int iroc, unsigned int nhit)
fill with online coordinates (nhit > 1)
Definition: SiPixelModuleStatus.cc:29
SiPixelModuleStatus::detid
int detid()
accessors and setters
Definition: SiPixelModuleStatus.cc:58
nhits
Definition: HIMultiTrackSelector.h:42
SiPixelModuleStatus::perRocDigiOcc
double perRocDigiOcc()
calculate (averaged over this module's ROCs) mean hit number and its sigma
Definition: SiPixelModuleStatus.cc:67
SiPixelModuleStatus::getRoc
SiPixelRocStatus * getRoc(int i)
get a ROC
Definition: SiPixelModuleStatus.cc:91
SiPixelModuleStatus::perRocDigiOccVar
double perRocDigiOccVar()
Definition: SiPixelModuleStatus.cc:76
SiPixelModuleStatus::digiOccROC
unsigned int digiOccROC(int iroc)
return ROC status (= hits on ROC iroc)
Definition: SiPixelModuleStatus.cc:46
SiPixelModuleStatus::updateModuleStatus
void updateModuleStatus(SiPixelModuleStatus newData)
Definition: SiPixelModuleStatus.cc:96
SiPixelModuleStatus::fRocs
std::vector< SiPixelRocStatus > fRocs
Definition: SiPixelModuleStatus.h:48
SiPixelModuleStatus::~SiPixelModuleStatus
~SiPixelModuleStatus()
Definition: SiPixelModuleStatus.cc:20
SiPixelModuleStatus::updateModuleDIGI
void updateModuleDIGI(int roc, unsigned int nhits)
combine new data to update(topup) module status
Definition: SiPixelModuleStatus.cc:94
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498
SiPixelModuleStatus::nrocs
int nrocs()
Definition: SiPixelModuleStatus.cc:61
SiPixelModuleStatus::setNrocs
void setNrocs(int iroc)
Definition: SiPixelModuleStatus.cc:64