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
mps_fire.i
i
Definition: mps_fire.py:428
SiPixelModuleStatus::fNrocs_
int fNrocs_
Definition: SiPixelModuleStatus.h:52
PixelFEDChannel
Definition: PixelFEDChannel.h:6
SiPixelModuleStatus::digiOccMOD
unsigned int digiOccMOD()
return module status (= hits on module)
Definition: SiPixelModuleStatus.cc:62
SiPixelModuleStatus::fillDIGI
void fillDIGI(int iroc)
fill digi
Definition: SiPixelModuleStatus.cc:23
SiPixelRocStatus.h
PixelFEDChannel.h
SiPixelModuleStatus::setDetId
void setDetId(int detid)
Definition: SiPixelModuleStatus.cc:42
SiPixelModuleStatus::fRocs_
std::vector< SiPixelRocStatus > fRocs_
Definition: SiPixelModuleStatus.h:53
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:28
SiPixelModuleStatus
Definition: SiPixelModuleStatus.h:10
SiPixelModuleStatus::updateDIGI
void updateDIGI(int iroc, unsigned int nhit)
update digi (nhit > 1)
Definition: SiPixelModuleStatus.cc:47
SiPixelModuleStatus::detid
int detid()
accessors and setters
Definition: SiPixelModuleStatus.cc:38
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:71
SiPixelModuleStatus::getRoc
SiPixelRocStatus * getRoc(int i)
get a ROC
Definition: SiPixelModuleStatus.cc:95
SiPixelModuleStatus::fDetid_
int fDetid_
Definition: SiPixelModuleStatus.h:52
SiPixelModuleStatus::perRocDigiOccVar
double perRocDigiOccVar()
Definition: SiPixelModuleStatus.cc:80
SiPixelModuleStatus::digiOccROC
unsigned int digiOccROC(int iroc)
return ROC status (= hits on ROC iroc)
Definition: SiPixelModuleStatus.cc:58
SiPixelModuleStatus::updateFEDerror25
void updateFEDerror25(int iroc, bool FEDerror25)
update FEDerror25
Definition: SiPixelModuleStatus.cc:52
SiPixelModuleStatus::updateModuleStatus
void updateModuleStatus(SiPixelModuleStatus newData)
Definition: SiPixelModuleStatus.cc:103
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:98
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498
SiPixelModuleStatus::nrocs
int nrocs()
Definition: SiPixelModuleStatus.cc:40
SiPixelModuleStatus::fedError25
bool fedError25(int iroc)
return ROC FEDerror25
Definition: SiPixelModuleStatus.cc:60
SiPixelModuleStatus::setNrocs
void setNrocs(int iroc)
Definition: SiPixelModuleStatus.cc:44