1 #ifndef SiStripThreshold_h 2 #define SiStripThreshold_h 9 #include<boost/cstdint.hpp> 48 inline void encode (
const uint16_t&
strip,
const float& lTh,
const float& hTh) {
58 inline void encode (
const uint16_t&
strip,
const float& lTh,
const float& hTh,
const float& cTh) {
60 clusTh=(uint8_t)(cTh*10+.5);
72 <<
"lTh: " <<
" " <<
getLth() <<
" \t" 73 <<
"hTh: " <<
" " <<
getHth() <<
" \t" 74 <<
"cTh: " <<
" " <<
getClusth() <<
" \t";}
105 typedef std::pair<ContainerIterator, ContainerIterator>
Range;
117 bool put(
const uint32_t& detID,
const InputVector& vect);
118 const Range
getRange(
const uint32_t& detID)
const;
119 void getDetIds(std::vector<uint32_t>& DetIds_)
const;
127 void setData(
const uint16_t&
strip,
const float& lTh,
const float& hTh, Container& vthr);
128 void setData(
const uint16_t& strip,
const float& lTh,
const float& hTh,
const float& cTh, Container& vthr);
131 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 printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints all the thresholds for all DetIds.
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
void printSummary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints mean, rms, min and max threshold values for each DetId.
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
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)
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