17 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMapHandle.
product(),
"SiStrip/Histo_Map",
"Cabling_TkMap", 0.);
36 edm::LogError(
"InvalidCablingHandle") <<
"Invalid Cabling Handle";
44 for (
int i = 0;
i < 4;
i++)
47 for (
int i = 0;
i < 2;
i++) {
48 for (
int j = 0; j < 3; j++)
52 for (
int i = 0;
i < 6;
i++)
55 for (
int i = 0;
i < 2;
i++) {
56 for (
int j = 0; j < 9; j++)
60 std::vector<uint32_t>::const_iterator idet =
activeDetIds.begin();
64 uint32_t detId = *idet;
87 int side = tTopo->
tidSide(detId);
90 }
else if (side == 1) {
102 int side = tTopo->
tecSide(detId);
105 }
else if (side == 1) {
115 int TIBDetIds[4] = {672, 864, 540, 648};
116 int TIDDetIds[2][3] = {{136, 136, 136}, {136, 136, 136}};
117 int TOBDetIds[6] = {1008, 1152, 648, 720, 792, 888};
118 int TECDetIds[2][9] = {{408, 408, 408, 360, 360, 360, 312, 312, 272}, {408, 408, 408, 360, 360, 360, 312, 312, 272}};
124 dqmStore_->setCurrentFolder(FolderName);
128 ME = dqmStore_->book2D(
"SummaryOfCabling",
"SummaryOfCabling", 6, 0.5, 6.5, 9, 0.5, 9.5);
132 ME->
getTH1()->GetXaxis()->SetBinLabel(1,
"TIB");
133 ME->
getTH1()->GetXaxis()->SetBinLabel(2,
"TID F");
134 ME->
getTH1()->GetXaxis()->SetBinLabel(3,
"TID B");
135 ME->
getTH1()->GetXaxis()->SetBinLabel(4,
"TOB");
136 ME->
getTH1()->GetXaxis()->SetBinLabel(5,
"TEC F");
137 ME->
getTH1()->GetXaxis()->SetBinLabel(6,
"TEC B");
139 for (
int i = 0;
i < 4;
i++) {
140 ME->
Fill(1,
i + 1,
float(counterTIB[
i]) / TIBDetIds[i]);
143 for (
int i = 0;
i < 2;
i++) {
144 for (
int j = 0; j < 3; j++) {
145 ME->
Fill(
i + 2, j + 1,
float(counterTID[
i][j]) / TIDDetIds[
i][j]);
149 for (
int i = 0;
i < 6;
i++) {
150 ME->
Fill(4,
i + 1,
float(counterTOB[
i]) / TOBDetIds[i]);
153 for (
int i = 0;
i < 2;
i++) {
154 for (
int j = 0; j < 9; j++) {
155 ME->
Fill(
i + 5, j + 1,
float(counterTEC[
i][j]) / TECDetIds[
i][j]);
161 ME->
getTH1()->Draw(
"TEXT");
162 ME->
getTH1()->SetStats(kFALSE);
165 c1.Print(name.c_str());
T getParameter(std::string const &) const
void addActiveDetectorsRawIds(std::vector< uint32_t > &) const
unsigned int tibLayer(const DetId &id) const
void getConditionObject(const edm::EventSetup &eSetup) override
unsigned int tidWheel(const DetId &id) const
void fillTkMap(const uint32_t &detid, const float &value)
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
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
edm::ESHandle< SiStripDetCabling > cablingHandle_
const uint16_t nApvPairs(uint32_t det_id) const
std::vector< uint32_t > activeDetIds
SiStripCablingDQM(const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
void addAllDetectorsRawIds(std::vector< uint32_t > &vector_to_fill_with_detids) const
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)
T const * product() const
std::unique_ptr< TkHistoMap > Tk_HM_
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const