1 #ifndef SiStripThreshold_h 2 #define SiStripThreshold_h 46 inline void encode(
const uint16_t&
strip,
const float& lTh,
const float& hTh) {
54 inline void encode(
const uint16_t&
strip,
const float& lTh,
const float& hTh,
const float& cTh) {
56 clusTh = (uint8_t)(cTh * 10 + .5);
72 <<
" " <<
getLth() <<
" \t" 74 <<
" " <<
getHth() <<
" \t" 106 typedef std::pair<ContainerIterator, ContainerIterator>
Range;
120 void getDetIds(std::vector<uint32_t>& DetIds_)
const;
128 void setData(
const uint16_t&
strip,
const float& lTh,
const float& hTh,
const float& cTh,
Container& vthr);
static const uint32_t FirstThStripShift_
bool put(const uint32_t &detID, const InputVector &vect)
Container::iterator compact(Container &input)
std::vector< DetRegistry > Registry
void allThresholds(std::vector< float > &lowThs, std::vector< float > &highThs, const Range &range) const
SiStripThreshold::Data getData(const uint16_t &strip, const Range &range) const
void printSummary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints mean, rms, min and max threshold values for each DetId.
uint16_t getFirstStrip() const
bool operator==(const Data &d) const
static std::string const input
void encode(const uint16_t &strip, const float &lTh, const float &hTh, const float &cTh)
std::vector< Data > Container
uint16_t FirstStrip_and_Hth
ContainerIterator getDataVectorEnd() const
void addToStat(float value, uint16_t &range, float &sum, float &sum2, float &min, float &max) const
void print(std::stringstream &ss) const
void encode(const uint16_t &strip, const float &lTh, const float &hTh)
bool operator()(const uint16_t &i, const Data &p) const
std::pair< ContainerIterator, ContainerIterator > Range
void printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints all the thresholds for all DetIds.
static const uint32_t HighThStripMask_
static const uint32_t LowThStripMask_
SiStripThreshold(const SiStripThreshold &orig)
#define COND_SERIALIZABLE
void setData(const uint16_t &strip, const float &lTh, const float &hTh, Container &vthr)
const Range getRange(const uint32_t &detID) const
virtual ~SiStripThreshold()
static const uint32_t FirstThStripMask_
RegistryIterator getRegistryVectorEnd() const
Registry::const_iterator RegistryIterator
ContainerIterator getDataVectorBegin() const
bool operator<(const Data &d) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
RegistryIterator getRegistryVectorBegin() const
Container::const_iterator ContainerIterator
bool operator()(const DetRegistry &p, const uint32_t &i) const