12 edm::LogError(
"SiStripApvGain") <<
"[" << __PRETTY_FUNCTION__ <<
"] SiStripApvGain for DetID " << DetId <<
" is already stored. Skippig this put" << std::endl;
16 unsigned int sd= input.second-input.first;
19 unsigned int ibegin=
v_gains.size();
36 unsigned int ibegin = *(
v_ibegin.begin()+pd);
37 unsigned int iend = *(
v_iend.begin()+pd);
49 uint16_t apv = (uint16_t) (strip/128);
50 if (apv>=range.second-range.first){
52 <<
"[SiStripApvGain::getApvGain] looking for SiStripApvGain for a strip out of range: strip " << strip <<
" apv " << apv << std::endl;
57 return *(range.first+apv);
62 if (apv>=range.second-range.first){
64 <<
"[SiStripApvGain::getApvGain] looking for SiStripApvGain for an apv out of range: apv " << apv << std::endl;
69 return *(range.first+apv);
74 std::vector<unsigned int>::const_iterator
detid =
v_detids.begin();
75 ss <<
"Number of detids " <<
v_detids.size() << std::endl;
80 for(
int it=0; it < range.second - range.first; ++it ) {
81 ss <<
"detid " << *detid <<
" \t"
82 <<
" apv " << apv++ <<
" \t"
93 std::vector<uint32_t>::const_iterator
detid =
v_detids.begin();
96 for(
int it=0; it < range.second - range.first; ++it ) {
100 ss <<
"Summary of gain values:" << std::endl;
101 summaryGain.
print(ss,
true);
Registry::const_iterator RegistryConstIterator
Registry::iterator RegistryIterator
void getDetIds(std::vector< uint32_t > &DetIds_) const
bool put(const uint32_t &detID, Range input)
float getStripGain(const uint16_t &strip, const Range &range) const
void printDebug(std::stringstream &ss) const
std::vector< float > v_gains
void printSummary(std::stringstream &ss) const
std::pair< ContainerIterator, ContainerIterator > Range
std::vector< unsigned int > v_iend
void print(std::stringstream &ss, const bool mean=true) const
std::vector< unsigned int > v_detids
const Range getRange(const uint32_t &detID) const
std::vector< unsigned int > v_ibegin
void add(const DetId &detid, const float &value)
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo...
float getApvGain(const uint16_t &apv, const Range &range) const