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());
static const int _threshold
void computeShot(const std::vector< SiStripDigi > &digis, const DetId &detid, const bool zs=true)
const bool isGenuine() const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
const int apvNumber() const
constexpr uint32_t rawId() const
get the raw id
const unsigned int detId() const
const float median() const
const int nStrips() const