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++)
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);
114 ME->setAxisTitle(
"Sub Det", 1);
115 ME->setAxisTitle(
"Layer", 2);
117 ME->setBinLabel(1,
"TIB");
118 ME->setBinLabel(2,
"TID F");
119 ME->setBinLabel(3,
"TID B");
120 ME->setBinLabel(4,
"TOB");
121 ME->setBinLabel(5,
"TEC F");
122 ME->setBinLabel(6,
"TEC B");
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);
static constexpr auto TEC
T getParameter(std::string const &) const
unsigned int tobLayer(const DetId &id) const
const TrackerTopology * tTopo_
const std::vector< const FedChannelConnection * > & getConnections(uint32_t det_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)
unsigned int tidSide(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
void setCurrentFolder(std::string const &fullpath) override
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
unsigned int tecSide(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static constexpr auto TOB
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())
void addAllDetectorsRawIds(std::vector< uint32_t > &vector_to_fill_with_detids) const
dqm::harvesting::MonitorElement ME
std::vector< uint32_t > activeDetIds
unsigned int tibLayer(const DetId &id) const
static constexpr auto TID
const uint16_t nApvPairs(uint32_t det_id) const
std::unique_ptr< TkHistoMap > Tk_HM_
void addActiveDetectorsRawIds(std::vector< uint32_t > &) const