12 theNDigisPerLayerPlots(),
22 for (
int i = 0;
i < 10; ++
i) {
23 char title1[200], title2[200], title3[200], title4[200];
24 sprintf(title1,
"CSCComparatorDigiTimeType%d",
i + 1);
25 sprintf(title2,
"CSCComparatorDigisPerLayerType%d",
i + 1);
26 sprintf(title3,
"CSCComparatorStripAmplitudeType%d",
i + 1);
27 sprintf(title4,
"CSCComparator3StripAmplitudeType%d",
i + 1);
48 unsigned nDigisPerEvent = 0;
51 std::vector<CSCComparatorDigi>::const_iterator digiItr = (*j).second.first;
52 std::vector<CSCComparatorDigi>::const_iterator
last = (*j).second.second;
62 for (; digiItr !=
last; ++digiItr) {
66 int strip = digiItr->getStrip();
67 for (std::vector<CSCStripDigi>::const_iterator stripItr = stripRange.first; stripItr != stripRange.second;
69 if (stripItr->getStrip() ==
strip) {
70 std::vector<int>
adc = stripItr->getADCCounts();
71 float pedc = 0.5 * (
adc[0] +
adc[1]);
72 float amp =
adc[4] - pedc;
75 if (stripItr != stripRange.first && stripItr != stripRange.second - 1) {
76 std::vector<int> adcl = (stripItr - 1)->getADCCounts();
77 std::vector<int> adcr = (stripItr + 1)->getADCCounts();
78 float pedl = 0.5 * (adcl[0] + adcl[1]);
79 float pedr = 0.5 * (adcr[0] + adcr[1]);
80 float three = adcl[4] - pedl + adcr[4] - pedr + amp;