21 ClusterThresholdSquared(cluster * cluster),
26 minGoodCharge(minGoodCharge) {
30 template <
class digiDetSet>
35 auto const& det =
findDetId(digis.detId());
41 edm::LogWarning(
"ThreeThresholdAlgorithm") <<
" id " << digis.detId() <<
" not usable???" << std::endl;
44 typename digiDetSet::const_iterator scan(digis.begin()),
end(digis.end());
60 uint16_t holes = testStrip - state.
lastStrip - 1;
61 return (((!state.
ADCs.empty()) &
76 if (state.
ADCs.empty())
79 state.
ADCs.push_back(0);
81 state.
ADCs.push_back(adc);
119 state.
ADCs.insert(state.
ADCs.begin(), 0);
122 state.
ADCs.push_back(0);
142 std::vector<SiStripCluster>&
out)
const {
ThreeThresholdAlgorithm(float, float, float, unsigned, unsigned, unsigned, std::string qualityLabel, bool removeApvShots, float minGoodCharge)
float ClusterThresholdSquared
bool isModuleBad(const uint32_t &id) const
void clusterizeDetUnit(const edm::DetSet< SiStripDigi > &, output_t::TSFastFiller &) const override
bool candidateAccepted(State const &state) const
Det stripByStripBegin(uint32_t id) const override
void endCandidate(State &state, T &) const
std::vector< uint8_t > ADCs
void clearCandidate(State &state) const
void appendBadNeighbors(State &state) const
void stripByStripEnd(State &state, std::vector< SiStripCluster > &out) const override
bool bad(const uint16_t &strip) const
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
bool candidateEnded(State const &state, const uint16_t &) const
bool allBadBetween(uint16_t L, const uint16_t &R) const
float gain(const uint16_t &strip) const
void addToCandidate(State &state, const SiStripDigi &digi) const
uint8_t MaxSequentialHoles
bool isModuleUsable(const uint32_t &id) const
void stripByStripAdd(State &state, uint16_t strip, uint8_t adc, std::vector< SiStripCluster > &out) const override
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
void applyGains(State &state) const
Det findDetId(const uint32_t) const
bool clean(const edmNew::DetSet< SiStripDigi > &in, edmNew::DetSet< SiStripDigi >::const_iterator &scan, edmNew::DetSet< SiStripDigi >::const_iterator &end)
uint16_t firstStrip(State const &state) const
float noise(const uint16_t &strip) const
Power< A, B >::type pow(const A &a, const B &b)
void clusterizeDetUnit_(const T &, output_t::TSFastFiller &) const