31 std::stringstream labelBuilder;
33 const short nBeams = 8;
34 const short nDisks = 9;
39 nameAndTitle =
"NumberOfSignals_AlignmentTubes";
40 nSignalsAT = iBooker.
book2D(nameAndTitle, nameAndTitle, 22, 0, 22, nBeams, 0, nBeams);
45 for (
unsigned int i = 1;
i <= 5; ++
i) {
48 labelBuilder <<
"TEC- D" << 5 -
i;
52 labelBuilder <<
"TEC+ D" <<
i - 1;
55 for (
unsigned int i = 0;
i < 6; ++
i) {
58 labelBuilder <<
"TIB" <<
i;
62 labelBuilder <<
"TOB" <<
i;
69 nameAndTitle =
"NumberOfSignals_TEC+R4";
74 nameAndTitle =
"NumberOfSignals_TEC+R6";
79 nameAndTitle =
"NumberOfSignals_TEC-R4";
84 nameAndTitle =
"NumberOfSignals_TEC-R6";
90 for (
unsigned int disk = 0; disk < 9; ++disk) {
93 labelBuilder <<
"DISK" << disk;
102 labelBuilder.clear();
103 labelBuilder.str(
"");
104 labelBuilder <<
"BEAM" <<
beam;
128 if (digiType ==
"Raw") {
139 else if (digiType ==
"Processed") {
151 <<
" ERROR ** Unknown DigiType: " << digiType <<
" specified in config." << std::endl;
170 bool isAboveThreshold =
false;
171 bool isExceedThreshold =
false;
180 if (detSetIter == aDetSetVector.
end()) {
181 throw cms::Exception(
"[LaserAlignmentT0ProducerDQM::FillFromRawDigis]")
182 <<
" ** ERROR: No raw DetSet found for det: " << detRawId <<
"." << std::endl;
188 for (; digiRangeIterator != detSetIter->data.
end(); ++digiRangeIterator) {
195 isAboveThreshold =
true;
197 isExceedThreshold =
true;
201 if (isAboveThreshold && !isExceedThreshold) {
223 bool isAboveThreshold =
false;
224 bool isExceedThreshold =
false;
233 if (detSetIter == aDetSetVector.
end()) {
234 throw cms::Exception(
"[LaserAlignmentT0ProducerDQM::FillFromRawDigis]")
235 <<
" ** ERROR: No raw DetSet found for det: " << detRawId <<
"." << std::endl;
241 for (; digiRangeIterator != detSetIter->data.
end(); ++digiRangeIterator) {
248 isAboveThreshold =
true;
250 isExceedThreshold =
true;
254 if (isAboveThreshold && !isExceedThreshold) {
272 bool isAboveThreshold =
false;
273 bool isExceedThreshold =
false;
282 if (detSetIter == aDetSetVector.
end()) {
283 throw cms::Exception(
"[LaserAlignmentT0ProducerDQM::FillFromRawDigis]")
284 <<
" ** ERROR: No raw DetSet found for det: " << detRawId <<
"." << std::endl;
290 for (; digiRangeIterator != detSetIter->data.
end(); ++digiRangeIterator) {
297 isAboveThreshold =
true;
299 isExceedThreshold =
true;
303 if (isAboveThreshold && !isExceedThreshold) {
330 bool isAboveThreshold =
false;
331 bool isExceedThreshold =
false;
340 if (detSetIter == aDetSetVector.
end())
346 for (; digiRangeIterator != detSetIter->data.
end(); ++digiRangeIterator) {
353 isAboveThreshold =
true;
355 isExceedThreshold =
true;
359 if (isAboveThreshold && !isExceedThreshold) {
381 bool isAboveThreshold =
false;
382 bool isExceedThreshold =
false;
391 if (detSetIter == aDetSetVector.
end())
397 for (; digiRangeIterator != detSetIter->data.
end(); ++digiRangeIterator) {
404 isAboveThreshold =
true;
406 isExceedThreshold =
true;
410 if (isAboveThreshold && !isExceedThreshold) {
428 bool isAboveThreshold =
false;
429 bool isExceedThreshold =
false;
438 if (detSetIter == aDetSetVector.
end())
444 for (; digiRangeIterator != detSetIter->data.
end(); ++digiRangeIterator) {
451 isAboveThreshold =
true;
453 isExceedThreshold =
true;
457 if (isAboveThreshold && !isExceedThreshold) {