10 bool setDetId,
bool removeApvShots)
11 : ChannelThreshold( chan ), SeedThreshold( seed ), ClusterThresholdSquared( cluster*cluster ),
12 MaxSequentialHoles( holes ), MaxSequentialBad( bad ), MaxAdjacentBad( adj ), RemoveApvShots(removeApvShots) {
18 template<
class digiDetSet>
23 if (!
setDetId( digis.detId() ))
return;
27 LogWarning(
"ThreeThresholdAlgorithm") <<
" id " << digis.detId() <<
" not usable???" << std::endl;
31 typename digiDetSet::const_iterator
32 scan( digis.begin() ),
40 while( scan !=
end ) {
50 uint16_t holes = testStrip -
lastStrip - 1;
51 return ( ( (!
ADCs.empty()) &
63 float Noise =
noise( strip );
71 ADCs.push_back( adc );
int adc(sample_type sample)
get the ADC sample (12 bits)
bool bad(const uint16_t &strip) const
uint16_t firstStrip() const
float ClusterThresholdSquared
bool isModuleBad(const uint32_t &id) const
float noise(const uint16_t &strip) const
void addToCandidate(const SiStripDigi &digi)
int bad(Items const &cont)
bool setDetId(const uint32_t)
bool candidateEnded(const uint16_t &) const
void stripByStripAdd(uint16_t strip, uint8_t adc, std::vector< SiStripCluster > &out)
SiStripApvShotCleaner ApvCleaner
bool stripByStripBegin(uint32_t id)
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
ThreeThresholdAlgorithm(float, float, float, unsigned, unsigned, unsigned, std::string qualityLabel, bool setDetId, bool removeApvShots=false)
std::vector< uint8_t > ADCs
uint8_t MaxSequentialHoles
void stripByStripEnd(std::vector< SiStripCluster > &out)
bool isModuleUsable(const uint32_t &id) const
bool allBadBetween(uint16_t L, const uint16_t &R) const
void clusterizeDetUnit(const edm::DetSet< SiStripDigi > &, output_t::FastFiller &)
void appendBadNeighbors()
float gain(const uint16_t &strip) const
void clusterizeDetUnit_(const T &, output_t::FastFiller &)
bool clean(const edmNew::DetSet< SiStripDigi > &in, edmNew::DetSet< SiStripDigi >::const_iterator &scan, edmNew::DetSet< SiStripDigi >::const_iterator &end)
bool candidateAccepted() const
Power< A, B >::type pow(const A &a, const B &b)