29 edm::LogError(
"InvalidCablingHandle") <<
"Invalid Cabling Handle";
38 for(
int i=0;
i<4;
i++) counterTIB[
i]=0;
41 for(
int j=0;
j<3;
j++)counterTID[
i][
j]=0;
44 for(
int i=0;
i<6;
i++)counterTOB[
i]=0;
47 for(
int j=0;
j<9;
j++)counterTEC[
i][
j]=0;
52 std::vector<uint32_t>::const_iterator idet=
activeDetIds.begin();
56 uint32_t detId = *idet;
63 for(uint32_t connDet_i=0; connDet_i<
cablingHandle_->getConnections(detId).size(); connDet_i++){
68 switch (subdet.subdetId())
73 int i = tibId.layer() - 1;
80 if (tidId.side() == 2) {
81 int j = tidId.wheel() - 1;
83 }
else if (tidId.side() == 1) {
84 int j = tidId.wheel() - 1;
92 int i = tobId.layer() - 1;
99 if (tecId.side() == 2) {
100 int j = tecId.wheel() - 1;
102 }
else if (tecId.side() == 1) {
103 int j = tecId.wheel() - 1;
113 int TIBDetIds[4]={672,864,540,648};
114 int TIDDetIds[2][3]={{136,136,136},{136,136,136}};
115 int TOBDetIds[6]={1008,1152,648,720,792,888};
116 int TECDetIds[2][9]={{408,408,408,360,360,360,312,312,272},{408,408,408,360,360,360,312,312,272}};
122 std::string FolderName=
fPSet_.
getParameter<std::string>(
"FolderName_For_QualityAndCabling_SummaryHistos");
128 ME =
dqmStore_->
book2D(
"SummaryOfCabling",
"SummaryOfCabling",6,0.5,6.5,9,0.5,9.5);
133 ME->
getTH1()->GetXaxis()->SetBinLabel(1,
"TIB");
134 ME->
getTH1()->GetXaxis()->SetBinLabel(2,
"TID F");
135 ME->
getTH1()->GetXaxis()->SetBinLabel(3,
"TID B");
136 ME->
getTH1()->GetXaxis()->SetBinLabel(4,
"TOB");
137 ME->
getTH1()->GetXaxis()->SetBinLabel(5,
"TEC F");
138 ME->
getTH1()->GetXaxis()->SetBinLabel(6,
"TEC B");
140 for(
int i=0;i<4;i++){
141 ME->
Fill(1,i+1,
float(counterTIB[i])/TIBDetIds[i]);
144 for(
int i=0;i<2;i++){
145 for(
int j=0;j<3;j++){
146 ME->
Fill(i+2,j+1,
float(counterTID[i][j])/TIDDetIds[i][j]);
150 for(
int i=0;i<6;i++){
151 ME->
Fill(4,i+1,
float(counterTOB[i])/TOBDetIds[i]);
154 for(
int i=0;i<2;i++){
155 for(
int j=0;j<9;j++){
156 ME->
Fill(i+5,j+1,
float(counterTEC[i][j])/TECDetIds[i][j]);
163 ME->
getTH1()->Draw(
"TEXT");
164 ME->
getTH1()->SetStats(kFALSE);
167 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)