34 for(
int i=0;
i<4;
i++) counterTIB[
i]=0;
37 for(
int j=0;
j<3;
j++)counterTID[
i][
j]=0;
40 for(
int i=0;
i<6;
i++)counterTOB[
i]=0;
43 for(
int j=0;
j<9;
j++)counterTEC[
i][
j]=0;
48 std::vector<uint32_t>::const_iterator idet=
activeDetIds.begin();
52 uint32_t detId = *idet;
59 for(uint32_t connDet_i=0; connDet_i<
cablingHandle_->getConnections(detId).size(); connDet_i++){
60 if(
cablingHandle_->getConnections(detId)[connDet_i].isConnected()!=0) n_conn++;
64 switch (subdet.subdetId())
69 int i = tibId.layer() - 1;
76 if (tidId.side() == 2) {
77 int j = tidId.wheel() - 1;
79 }
else if (tidId.side() == 1) {
80 int j = tidId.wheel() - 1;
88 int i = tobId.layer() - 1;
95 if (tecId.side() == 2) {
96 int j = tecId.wheel() - 1;
98 }
else if (tecId.side() == 1) {
99 int j = tecId.wheel() - 1;
109 int TIBDetIds[4]={672,864,540,648};
110 int TIDDetIds[2][3]={{136,136,136},{136,136,136}};
111 int TOBDetIds[6]={1008,1152,648,720,792,888};
112 int TECDetIds[2][9]={{408,408,408,360,360,360,312,312,272},{408,408,408,360,360,360,312,312,272}};
118 std::string FolderName=
fPSet_.
getParameter<std::string>(
"FolderName_For_QualityAndCabling_SummaryHistos");
124 ME =
dqmStore_->
book2D(
"SummaryOfCabling",
"SummaryOfCabling",6,0.5,6.5,9,0.5,9.5);
129 ME->
getTH1()->GetXaxis()->SetBinLabel(1,
"TIB");
130 ME->
getTH1()->GetXaxis()->SetBinLabel(2,
"TID F");
131 ME->
getTH1()->GetXaxis()->SetBinLabel(3,
"TID B");
132 ME->
getTH1()->GetXaxis()->SetBinLabel(4,
"TOB");
133 ME->
getTH1()->GetXaxis()->SetBinLabel(5,
"TEC F");
134 ME->
getTH1()->GetXaxis()->SetBinLabel(6,
"TEC B");
136 for(
int i=0;i<4;i++){
137 ME->
Fill(1,i+1,
float(counterTIB[i])/TIBDetIds[i]);
140 for(
int i=0;i<2;i++){
141 for(
int j=0;j<3;j++){
142 ME->
Fill(i+2,j+1,
float(counterTID[i][j])/TIDDetIds[i][j]);
146 for(
int i=0;i<6;i++){
147 ME->
Fill(4,i+1,
float(counterTOB[i])/TOBDetIds[i]);
150 for(
int i=0;i<2;i++){
151 for(
int j=0;j<9;j++){
152 ME->
Fill(i+5,j+1,
float(counterTEC[i][j])/TECDetIds[i][j]);
159 ME->
getTH1()->Draw(
"TEXT");
160 ME->
getTH1()->SetStats(kFALSE);
163 c1.Print(name.c_str());
T getParameter(std::string const &) const
void fillTkMap(const uint32_t &detid, const float &value)
void fill(uint32_t &detid, float value)
void getConditionObject(const edm::EventSetup &eSetup)
edm::ESHandle< SiStripDetCabling > cablingHandle_
std::vector< uint32_t > activeDetIds
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)