14 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMap,
"SiStrip/Histo_Map",
"Cabling_TkMap", 0.);
24 edm::LogError(
"InvalidCablingHandle") <<
"Invalid Cabling Handle";
32 for (
int i = 0;
i < 4;
i++)
35 for (
int i = 0;
i < 2;
i++) {
36 for (
int j = 0;
j < 3;
j++)
40 for (
int i = 0;
i < 6;
i++)
43 for (
int i = 0;
i < 2;
i++) {
44 for (
int j = 0;
j < 9;
j++)
64 switch (subdet.subdetId()) {
75 }
else if (side == 1) {
90 }
else if (side == 1) {
100 int TIBDetIds[4] = {672, 864, 540, 648};
101 int TIDDetIds[2][3] = {{136, 136, 136}, {136, 136, 136}};
102 int TOBDetIds[6] = {1008, 1152, 648, 720, 792, 888};
103 int TECDetIds[2][9] = {{408, 408, 408, 360, 360, 360, 312, 312, 272}, {408, 408, 408, 360, 360, 360, 312, 312, 272}};
113 ME =
dqmStore_->
book2D(
"SummaryOfCabling",
"SummaryOfCabling", 6, 0.5, 6.5, 9, 0.5, 9.5);
124 for (
int i = 0; i < 4; i++) {
125 ME->
Fill(1, i + 1,
float(counterTIB[i]) / TIBDetIds[i]);
128 for (
int i = 0; i < 2; i++) {
129 for (
int j = 0; j < 3; j++) {
130 ME->
Fill(i + 2, j + 1,
float(counterTID[i][j]) / TIDDetIds[i][j]);
134 for (
int i = 0; i < 6; i++) {
135 ME->
Fill(4, i + 1,
float(counterTOB[i]) / TOBDetIds[i]);
138 for (
int i = 0; i < 2; i++) {
139 for (
int j = 0; j < 9; j++) {
140 ME->
Fill(i + 5, j + 1,
float(counterTEC[i][j]) / TECDetIds[i][j]);
146 ME->
getTH1()->Draw(
"TEXT");
147 ME->
getTH1()->SetStats(kFALSE);
150 c1.Print(name.c_str());
virtual std::string getTitle() const
get MonitorElement title
static constexpr auto TEC
void addActiveDetectorsRawIds(std::vector< uint32_t > &) const
const TrackerTopology * tTopo_
unsigned int tibLayer(const DetId &id) const
SiStripCablingDQM(edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > token, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet, const TrackerTopology *tTopo, const TkDetMap *tkDetMap)
void setCurrentFolder(std::string const &fullpath) override
unsigned int tidWheel(const DetId &id) const
Log< level::Error, false > LogError
void fillTkMap(const uint32_t &detid, const float &value)
const SiStripDetCabling * condObj_
void getActiveDetIds(const edm::EventSetup &eSetup) override
~SiStripCablingDQM() override
const std::vector< const FedChannelConnection * > & getConnections(uint32_t det_id) const
unsigned int tidSide(const DetId &id) const
static constexpr auto TOB
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
static constexpr auto TIB
void getConditionObject(const edm::EventSetup &eSetup) override
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
T getParameter(std::string const &) const
const uint16_t nApvPairs(uint32_t det_id) const
dqm::harvesting::MonitorElement ME
std::vector< uint32_t > activeDetIds
void addAllDetectorsRawIds(std::vector< uint32_t > &vector_to_fill_with_detids) const
unsigned int tecWheel(const DetId &id) const
static constexpr auto TID
virtual TH1 * getTH1() const
std::unique_ptr< TkHistoMap > Tk_HM_
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)