1 #ifndef SiStripThreshold_h 2 #define SiStripThreshold_h 9 #include<boost/cstdint.hpp> 46 inline void encode (
const uint16_t&
strip,
const float& lTh,
const float& hTh) {
56 inline void encode (
const uint16_t&
strip,
const float& lTh,
const float& hTh,
const float& cTh) {
58 clusTh=(uint8_t)(cTh*10+.5);
70 <<
"lTh: " <<
" " <<
getLth() <<
" \t" 71 <<
"hTh: " <<
" " <<
getHth() <<
" \t" 72 <<
"cTh: " <<
" " <<
getClusth() <<
" \t";}
103 typedef std::pair<ContainerIterator, ContainerIterator>
Range;
115 bool put(
const uint32_t& detID,
const InputVector& vect);
116 const Range
getRange(
const uint32_t& detID)
const;
117 void getDetIds(std::vector<uint32_t>& DetIds_)
const;
125 void setData(
const uint16_t&
strip,
const float& lTh,
const float& hTh, Container& vthr);
126 void setData(
const uint16_t& strip,
const float& lTh,
const float& hTh,
const float& cTh, Container& vthr);
129 void allThresholds(std::vector<float> &lowThs, std::vector<float> &highThs,
const Range& range)
const;
static const uint32_t FirstThStripShift_
bool put(const uint32_t &detID, const InputVector &vect)
Container::iterator compact(Container &input)
std::vector< DetRegistry > Registry
ContainerIterator getDataVectorBegin() const
bool operator<(const Data &d) const
void allThresholds(std::vector< float > &lowThs, std::vector< float > &highThs, const Range &range) const
ContainerIterator getDataVectorEnd() 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
SiStripThreshold::Data getData(const uint16_t &strip, const Range &range) const
RegistryIterator getRegistryVectorBegin() const
uint16_t getFirstStrip() const
void encode(const uint16_t &strip, const float &lTh, const float &hTh)
void print(std::stringstream &ss) const
void printDebug(std::stringstream &ss) const
Prints all the thresholds for all DetIds.
std::pair< ContainerIterator, ContainerIterator > Range
static const uint32_t HighThStripMask_
void getDetIds(std::vector< uint32_t > &DetIds_) const
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)
void printSummary(std::stringstream &ss) const
Prints mean, rms, min and max threshold values for each DetId.
virtual ~SiStripThreshold()
static const uint32_t FirstThStripMask_
Registry::const_iterator RegistryIterator
bool operator==(const Data &d) const
void addToStat(float value, uint16_t &range, float &sum, float &sum2, float &min, float &max) const
const Range getRange(const uint32_t &detID) const
RegistryIterator getRegistryVectorEnd() const
Container::const_iterator ContainerIterator