|
|
Go to the documentation of this file.
12 edm::LogError(
"SiStripApvGain") <<
"[" << __PRETTY_FUNCTION__ <<
"] SiStripApvGain for DetID " <<
DetId
13 <<
" is already stored. Skippig this put" << std::endl;
20 unsigned int ibegin =
v_gains.size();
37 unsigned int ibegin = *(
v_ibegin.begin() + pd);
38 unsigned int iend = *(
v_iend.begin() + pd);
39 __builtin_prefetch((&
v_gains.front()) + ibegin);
48 unsigned int iend = *(
v_iend.begin() +
pos);
49 __builtin_prefetch((&
v_gains.front()) + ibegin);
61 uint16_t apv = (uint16_t)(
strip / 128);
64 <<
"[SiStripApvGain::getApvGain] looking for SiStripApvGain for a strip out of range: strip " <<
strip
65 <<
" apv " << apv << std::endl;
70 return *(
range.first + apv);
76 <<
"[SiStripApvGain::getApvGain] looking for SiStripApvGain for an apv out of range: apv " << apv << std::endl;
81 return *(
range.first + apv);
86 std::vector<unsigned int>::const_iterator detid =
v_detids.begin();
87 ss <<
"Number of detids " <<
v_detids.size() << std::endl;
89 for (; detid !=
v_detids.end(); ++detid) {
92 for (
int it = 0; it <
range.second -
range.first; ++it) {
93 ss <<
"detid " << *detid <<
" \t"
94 <<
" apv " << apv++ <<
" \t" <<
getApvGain(it,
range) <<
" \t" << std::endl;
102 std::vector<uint32_t>::const_iterator detid =
v_detids.begin();
103 for (; detid !=
v_detids.end(); ++detid) {
105 for (
int it = 0; it <
range.second -
range.first; ++it) {
109 ss <<
"Summary of gain values:" << std::endl;
110 summaryGain.print(
ss,
true);
static const std::string input
static float getStripGain(uint16_t strip, const Range &range)
PixelRecoRange< float > Range
std::vector< unsigned int > v_iend
void printSummary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
std::vector< unsigned int > v_ibegin
std::vector< float > v_gains
const Range getRange(const uint32_t detID) const
Registry::const_iterator RegistryConstIterator
void printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
bool put(const uint32_t &detID, Range input)
__host__ constexpr __device__ RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
Registry::iterator RegistryIterator
std::vector< unsigned int > v_detids
Range getRangeByPos(unsigned short pos) const
std::pair< ContainerIterator, ContainerIterator > Range
void getDetIds(std::vector< uint32_t > &DetIds_) const
static float getApvGain(uint16_t apv, const Range &range)