34 edm::LogError(
"InvalidCablingHandle") <<
"Invalid Cabling Handle";
43 for(
int i=0;
i<4;
i++) counterTIB[
i]=0;
46 for(
int j=0;
j<3;
j++)counterTID[
i][
j]=0;
49 for(
int i=0;
i<6;
i++)counterTOB[
i]=0;
52 for(
int j=0;
j<9;
j++)counterTEC[
i][
j]=0;
57 std::vector<uint32_t>::const_iterator idet=
activeDetIds.begin();
61 uint32_t detId = *idet;
68 for(uint32_t connDet_i=0; connDet_i<
cablingHandle_->getConnections(detId).size(); connDet_i++){
84 int side = tTopo->
tidSide(detId);
87 }
else if (side == 1) {
101 int side = tTopo->
tecSide(detId);
104 }
else if (side == 1) {
114 int TIBDetIds[4]={672,864,540,648};
115 int TIDDetIds[2][3]={{136,136,136},{136,136,136}};
116 int TOBDetIds[6]={1008,1152,648,720,792,888};
117 int TECDetIds[2][9]={{408,408,408,360,360,360,312,312,272},{408,408,408,360,360,360,312,312,272}};
129 ME = dqmStore_->
book2D(
"SummaryOfCabling",
"SummaryOfCabling",6,0.5,6.5,9,0.5,9.5);
134 ME->
getTH1()->GetXaxis()->SetBinLabel(1,
"TIB");
135 ME->
getTH1()->GetXaxis()->SetBinLabel(2,
"TID F");
136 ME->
getTH1()->GetXaxis()->SetBinLabel(3,
"TID B");
137 ME->
getTH1()->GetXaxis()->SetBinLabel(4,
"TOB");
138 ME->
getTH1()->GetXaxis()->SetBinLabel(5,
"TEC F");
139 ME->
getTH1()->GetXaxis()->SetBinLabel(6,
"TEC B");
141 for(
int i=0;
i<4;
i++){
142 ME->
Fill(1,
i+1,
float(counterTIB[
i])/TIBDetIds[i]);
145 for(
int i=0;
i<2;
i++){
146 for(
int j=0;
j<3;
j++){
147 ME->
Fill(
i+2,
j+1,
float(counterTID[
i][
j])/TIDDetIds[
i][j]);
151 for(
int i=0;
i<6;
i++){
152 ME->
Fill(4,
i+1,
float(counterTOB[
i])/TOBDetIds[i]);
155 for(
int i=0;
i<2;
i++){
156 for(
int j=0;
j<9;
j++){
157 ME->
Fill(
i+5,
j+1,
float(counterTEC[
i][
j])/TECDetIds[
i][j]);
164 ME->
getTH1()->Draw(
"TEXT");
165 ME->
getTH1()->SetStats(kFALSE);
168 c1.Print(name.c_str());
T getParameter(std::string const &) const
unsigned int tibLayer(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
void fillTkMap(const uint32_t &detid, const float &value)
unsigned int tidSide(const DetId &id) const
void fill(uint32_t &detid, float value)
void getConditionObject(const edm::EventSetup &eSetup)
edm::ESHandle< SiStripDetCabling > cablingHandle_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
SiStripCablingDQM(const edm::EventSetup &eSetup, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
T const * product() const
void getActiveDetIds(const edm::EventSetup &eSetup)
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.
unsigned int tecWheel(const DetId &id) const
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)
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const