1 #ifndef CalibFormats_SiStripObjects_StripClusterizerConditions_h
2 #define CalibFormats_SiStripObjects_StripClusterizerConditions_h
22 while (++L < R &&
bad(L)) {
47 if (
p ==
e ||
id != (*
p)) {
48 #ifdef NOT_ON_MONTECARLO
50 <<
"id " <<
id <<
" not connected. this is impossible on data " << std::endl;
52 static const Det dummy =
Det();
68 const std::vector<float>& invGains,
69 const std::vector<const FedChannelConnection*>&
connections) {
72 auto& det =
m_dets.emplace_back();
74 det.qualityRange = qualityRange;
75 det.noiseRange = noiseRange;
76 for (uint32_t
i = 0;
i != invGains.size(); ++
i) {
77 det.m_weight[
i] = invGains[
i];
91 #endif // CalibFormats_SiStripObjects_StripClusterizerConditions_h
const SiStripQuality * m_quality
float noise(const uint16_t strip) const
static float getRawNoise(const uint16_t &strip, const Range &range)
float weight(const uint16_t strip) const
uint16_t *__restrict__ id
void emplace_back(uint32_t id, SiStripQuality::Range qualityRange, SiStripNoises::Range noiseRange, const std::vector< float > &invGains, const std::vector< const FedChannelConnection * > &connections)
uint16_t rawNoise(const uint16_t strip) const
uint32_t const *__restrict__ Quality * quality
bool IsStripBad(const uint32_t &detid, const short &strip) const
std::vector< uint32_t > const & allDetIds() const
SiStripNoises::Range noiseRange
Det const & findDetId(const uint32_t id) const
bool allBadBetween(uint16_t L, const uint16_t &R) const
bool isModuleBad(const uint32_t id) const
std::vector< const FedChannelConnection * > const & currentConnection(const Det &det) const
SiStripQuality const * quality
SiStripQuality::Range qualityRange
std::vector< Det > m_dets
static float getNoise(uint16_t strip, const Range &range)
bool bad(const uint16_t strip) const
bool IsModuleUsable(const uint32_t &detid) const
auto const & allDets() const
bool IsModuleBad(const uint32_t &detid) const
bool isModuleUsable(const uint32_t id) const
static constexpr unsigned short invalidI
SiStripClusterizerConditions(const SiStripQuality *quality)
std::vector< uint32_t > m_detIds
std::vector< std::vector< const FedChannelConnection * > > m_connections
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
std::pair< ContainerIterator, ContainerIterator > Range
Log< level::Warning, false > LogWarning
std::pair< ContainerIterator, ContainerIterator > Range
void reserve(std::size_t length)