9 APVShot::APVShot(
const bool zs) : _zs(zs), _apv(-1), _nstrips(0), _median(-1), _detid() {}
12 : _zs(zs), _apv(-1), _nstrips(0), _median(-1), _detid() {
24 std::vector<unsigned int>
charge;
25 for (std::vector<SiStripDigi>::const_iterator digi = digis.begin(); digi != digis.end(); ++digi) {
26 if (!
_zs || digi->adc() > 0) {
28 _apv = digi->strip() / 128;
29 if (oldapv >= 0 && oldapv !=
_apv)
30 throw cms::Exception(
"WrongDigiVector") <<
"Digis from Different APVs";
32 charge.push_back(digi->adc());