30 LogTrace(
"DTPreCalibSummary") <<
"[DTPrecalibrationTask]: Constructor" << endl;
46 for (
int wheel = -2; wheel <= 2; wheel++) {
47 for (
int sector = 1; sector <= 14; sector++) {
48 LogTrace(
"DTPreCalibSummary") <<
"[DTPrecalibrationTask]: Book histos for wheel " << wheel <<
", sector "
51 bookTimeBoxes(iBooker, wheel, sector);
54 bookOccupancyPlot(iBooker, wheel, sector);
66 for (dtLayerId_It = dtdigis->begin(); dtLayerId_It != dtdigis->end(); ++dtLayerId_It) {
68 digiIt != ((*dtLayerId_It).second).
second;
71 int tdcTime = (*digiIt).countsTDC();
72 TimeBoxes[make_pair((*dtLayerId_It).first.superlayerId().chamberId().wheel(),
73 (*dtLayerId_It).first.superlayerId().chamberId().sector())]
77 const DTLayerId dtLId = (*dtLayerId_It).first;
81 if ((*dtLayerId_It).first.superlayerId().chamberId().sector() < 13)
82 OccupancyHistos[make_pair((*dtLayerId_It).first.superlayerId().chamberId().wheel(),
83 (*dtLayerId_It).first.superlayerId().chamberId().sector())]
87 yBin = 44 + dtLId.
layer();
89 yBin = 48 + dtLId.
layer();
90 if ((*dtLayerId_It).first.superlayerId().chamberId().sector() == 13)
91 OccupancyHistos[make_pair((*dtLayerId_It).first.superlayerId().chamberId().wheel(), 4)]->
Fill(
92 (*digiIt).wire(),
yBin);
93 if ((*dtLayerId_It).first.superlayerId().chamberId().sector() == 14)
94 OccupancyHistos[make_pair((*dtLayerId_It).first.superlayerId().chamberId().wheel(), 10)]->
Fill(
95 (*digiIt).wire(),
yBin);
108 TimeBoxes[make_pair(wheel, sector)] = iBooker.
book1D(
"TimeBox_W" + wh.str() +
"_Sec" + sec.str(),
109 "Time Box W" + wh.str() +
"_Sec" + sec.str(),
110 (maxTriggerWidth - minTriggerWidth) / 50,
113 TimeBoxes[make_pair(wheel, sector)]->
setAxisTitle(
"TDC counts");
123 if (sector == 4 || sector == 10)
124 OccupancyHistos[make_pair(wheel, sector)] = iBooker.
book2D(
"Occupancy_W" + wh.str() +
"_Sec" + sec.str(),
125 "Occupancy W" + wh.str() +
"_Sec" + sec.str(),
133 OccupancyHistos[make_pair(wheel, sector)] = iBooker.
book2D(
"Occupancy_W" + wh.str() +
"_Sec" + sec.str(),
134 "Occupancy W" + wh.str() +
"_Sec" + sec.str(),
141 OccupancyHistos[make_pair(wheel, sector)]->
setAxisTitle(
"wire number", 1);
142 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(1,
"M1L1", 2);
143 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(2,
"M1L2", 2);
144 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(3,
"M1L3", 2);
145 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(4,
"M1L4", 2);
146 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(5,
"M1L5", 2);
147 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(6,
"M1L6", 2);
148 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(7,
"M1L7", 2);
149 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(8,
"M1L8", 2);
150 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(9,
"M1L9", 2);
151 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(10,
"M1L10", 2);
152 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(11,
"M1L11", 2);
153 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(12,
"M1L12", 2);
154 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(13,
"M2L1", 2);
155 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(14,
"M2L2", 2);
156 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(15,
"M2L3", 2);
157 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(16,
"M2L4", 2);
158 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(17,
"M2L5", 2);
159 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(18,
"M2L6", 2);
160 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(19,
"M2L7", 2);
161 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(20,
"M2L8", 2);
162 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(21,
"M2L9", 2);
163 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(22,
"M2L10", 2);
164 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(23,
"M2L11", 2);
165 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(24,
"M2L12", 2);
166 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(25,
"M3L1", 2);
167 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(26,
"M3L2", 2);
168 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(27,
"M3L3", 2);
169 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(28,
"M3L4", 2);
170 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(29,
"M3L5", 2);
171 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(30,
"M3L6", 2);
172 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(31,
"M3L7", 2);
173 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(32,
"M3L8", 2);
174 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(33,
"M3L9", 2);
175 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(34,
"M3L10", 2);
176 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(35,
"M3L11", 2);
177 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(36,
"M3L12", 2);
178 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(37,
"M4L1", 2);
179 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(38,
"M4L2", 2);
180 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(39,
"M4L3", 2);
181 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(40,
"M4L4", 2);
182 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(41,
"M4L5", 2);
183 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(42,
"M4L6", 2);
184 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(43,
"M4L7", 2);
185 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(44,
"M4L8", 2);
187 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(45,
"M4Sec13L1", 2);
188 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(46,
"M4Sec13L2", 2);
189 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(47,
"M4Sec13L3", 2);
190 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(48,
"M4Sec13L4", 2);
191 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(49,
"M4Sec13L5", 2);
192 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(50,
"M4Sec13L6", 2);
193 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(51,
"M4Sec13L7", 2);
194 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(52,
"M4Sec13L8", 2);
197 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(45,
"M4Sec14L1", 2);
198 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(46,
"M4Sec14L2", 2);
199 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(47,
"M4Sec14L3", 2);
200 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(48,
"M4Sec14L4", 2);
201 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(49,
"M4Sec14L5", 2);
202 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(50,
"M4Sec14L6", 2);
203 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(51,
"M4Sec14L7", 2);
204 OccupancyHistos[make_pair(wheel, sector)]->setBinLabel(52,
"M4Sec14L8", 2);
void bookTimeBoxes(DQMStore::IBooker &, int wheel, int sector)
Book histos.
T getUntrackedParameter(std::string const &, T const &) const
DTPreCalibrationTask(const edm::ParameterSet &ps)
Constructor.
virtual void setCurrentFolder(std::string const &fullpath)
~DTPreCalibrationTask() override
Destructor.
int layer() const
Return the layer number.
void bookOccupancyPlot(DQMStore::IBooker &, int wheel, int sector)
U second(std::pair< T, U > const &p)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
int superlayer() const
Return the superlayer number (deprecated method name)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
std::vector< DigiType >::const_iterator const_iterator
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
int station() const
Return the station number.
void analyze(const edm::Event &, const edm::EventSetup &) override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)