Go to the documentation of this file.
24 return std::make_pair(accumulate(
begin,
max, uint16_t(0)), accumulate(
max + 1,
end, uint16_t(0)));
28 float q(0),
x1(0),
x2(0);
32 x1 += (*it) * (
i + 0.5);
33 x2 += (*it) * (
i *
i +
i + 1. / 3);
56 for (
size_t i = 0;
i <
width();
i++) {
65 std::vector<float> gains;
66 gains.reserve(
width());
67 for (
size_t i = 0;
i <
width();
i++) {
74 std::vector<bool> isBad;
75 isBad.reserve(
width());
83 float noiseSumInQuadrature = 0;
84 int numberStripsOverThreshold = 0;
88 numberStripsOverThreshold++;
91 return std::sqrt(noiseSumInQuadrature / numberStripsOverThreshold);
97 accumulate(stripBad.begin(), stripBad.end(),
false, std::logical_or<bool>());
const SiStripNoises * siStripNoises_
std::vector< float > stripNoises() const
std::vector< bool > stripQualitiesBad() const
bool IsModuleBad(const uint32_t &detid) const
auto stripCharges() const -> decltype(cluster() ->amplitudes())
std::vector< float > stripNoisesRescaledByGain() const
bool IsModuleUsable(const uint32_t &detid) const
const Range getRange(const uint32_t detID) const
const SiStripQuality * siStripQuality_
static float getStripGain(const uint16_t &strip, const SiStripApvGain::Range &range)
const SiStripCluster * cluster() const
bool IsFiberBad(const uint32_t &detid, const short &fiberNb) const
std::vector< float > stripGains() const
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > siStripQualityToken_
std::pair< ContainerIterator, ContainerIterator > Range
const SiStripApvGain::Range getRange(uint32_t detID) const
const SiStripCluster * cluster_ptr
uint16_t firstStrip() const
const SiStripGain * siStripGain_
std::pair< uint16_t, uint16_t > chargeLR() const
bool IsStripBad(const uint32_t &detid, const short &strip) const
void setCluster(const SiStripCluster &cluster, int detId)
bool getData(T &iHolder) const
bool IsApvBad(const uint32_t &detid, const short &apvNb) const
void initEvent(const edm::EventSetup &iSetup)
bool IsModuleUsable() const
std::pair< ContainerIterator, ContainerIterator > Range
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > siStripNoisesToken_
float calculate_noise(const std::vector< float > &) const
static float getNoise(uint16_t strip, const Range &range)
edm::ESGetToken< SiStripGain, SiStripGainRcd > siStripGainToken_
bool IsAnythingBad() const
SiStripClusterInfo(edm::ConsumesCollector &&, const std::string &qualityLabel="")