11 stripsForMedian(64) {}
29 ss << __func__ <<
" working on detid " << in.
detId() <<
" for a digi.size=" << in.
size();
47 shotApv_[
i - 1] =
true;
50 <<
" apv " <<
i << std::endl;
84 size_t maxNumOfApvs) {
96 vdigis.insert(
vdigis.end(), pFirstDigiOfApv[
i], pFirstDigiOfApv[i + 1]);
101 std::stringstream
ss;
103 for (
size_t i = 0;
i <
vdigis.size(); ++
i)
117 std::stringstream
ss;
118 ss <<
"case with strip64=0 --> detid= " <<
cacheDetId <<
"\n";
131 const bool is10bit =
apvDigis[0].adc() > 255;
141 std::stringstream
ss;
142 ss <<
"[subtractCM] detid " <<
cacheDetId <<
" CM is " << CM <<
" the remaining strips after CM subtraction are "
edm::DetSet< SiStripDigi >::const_iterator pFirstDigiOfApv[7]
unsigned short stripsPerApv
void dumpInVector(edm::DetSet< SiStripDigi >::const_iterator *, size_t)
det_id_type detId() const
std::vector< SiStripDigi > vdigis
void reset(edm::DetSet< SiStripDigi >::const_iterator &a, edm::DetSet< SiStripDigi >::const_iterator &b)
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
std::unique_ptr< edm::DetSet< SiStripDigi > > pDetSet
bool loop(const edmNew::DetSet< SiStripDigi > &in)
Log< level::Info, false > LogInfo
unsigned short maxNumOfApvs
std::vector< SiStripDigi > apvDigis
unsigned short stripsForMedian
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
bool clean(const edmNew::DetSet< SiStripDigi > &in, edmNew::DetSet< SiStripDigi >::const_iterator &scan, edmNew::DetSet< SiStripDigi >::const_iterator &end)
collection_type::const_iterator const_iterator
const uint16_t & adc() const
uint16_t *__restrict__ uint16_t const *__restrict__ adc