8 _zs(
true), _apv(-1), _nstrips(0), _median(-1), _detid() { }
11 _zs(zs), _apv(-1), _nstrips(0), _median(-1), _detid() { }
14 _zs(zs), _apv(-1), _nstrips(0), _median(-1), _detid()
28 std::vector<unsigned int>
charge;
29 for(std::vector<SiStripDigi>::const_iterator digi=digis.begin();digi!=digis.end();++digi) {
31 if(!
_zs || digi->adc()>0) {
33 _apv = digi->strip()/128;
34 if(oldapv>=0 && oldapv!=
_apv)
throw cms::Exception(
"WrongDigiVector") <<
"Digis from Different APVs" ;
36 charge.push_back(digi->adc());
43 std::sort(charge.begin(),charge.end());
44 std::reverse(charge.begin(),charge.end());
46 if(charge.size()> 64) {
_median = float(charge[64]); }
static const int _threshold
const unsigned int detId() const
uint32_t rawId() const
get the raw id
const int apvNumber() const
void computeShot(const std::vector< SiStripDigi > &digis, const DetId &detid, const bool zs=true)
const float median() const
const bool isGenuine() const
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
const int nStrips() const