11 gainHandle_{gainHandle} {
14 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMap,
"SiStrip/Histo_Map",
"MeanNoise_TkMap", 0.);
26 ModMEs selModME_ = _selModME_;
27 std::vector<uint32_t> DetIds;
44 for (
int istrip = 0; istrip < nStrip; ++istrip) {
52 selModME_.ProfileDistr->Fill(istrip + 1, stripnoise);
55 selModME_.CumulDistr->Fill(stripnoise);
71 int subdetectorId_ = ((selDetId_ >> 25) & 0x7);
73 if (subdetectorId_ < 3 || subdetectorId_ > 6) {
74 edm::LogError(
"SiStripNoisesDQM") <<
"[SiStripNoisesDQM::fillMEsForLayer] WRONG INPUT : no such "
76 << subdetectorId_ <<
" no folder set!" << std::endl;
84 selME_ = selMEsMapIter_->second;
90 float stripnoise = -1.;
108 hSummaryOfProfile_name =
116 hSummaryOfCumul_name =
128 for (
int istrip = 0; istrip < nStrip; ++istrip) {
136 meanNoise += stripnoise;
139 selME_.SummaryOfProfileDistr->Fill(istrip + 1, stripnoise);
145 selME_.SummaryOfCumulDistr->Fill(stripnoise);
157 meanNoise = meanNoise / (nStrip - Nbadstrips);
160 std::vector<uint32_t> sameLayerDetIds_;
163 std::vector<uint32_t>::const_iterator ibound =
164 lower_bound(sameLayerDetIds_.begin(), sameLayerDetIds_.end(), selDetId_);
165 if (ibound != sameLayerDetIds_.end() && *ibound == selDetId_)
166 selME_.SummaryDistr->Fill(ibound - sameLayerDetIds_.begin() + 1, meanNoise);
170 Tk_HM_->fill(selDetId_, meanNoise);
174 int intNoise = int(meanNoise);
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
void fillMEsForLayer(uint32_t selDetId_) override
const SiStripApvGain * gainHandle_
std::vector< int > tkMapScaler
Log< level::Error, false > LogError
void fillTkMap(const uint32_t &detid, const float &value)
const SiStripNoises * condObj_
U second(std::pair< T, U > const &p)
std::map< uint32_t, ModMEs > SummaryMEsMap_
static float getNoise(uint16_t strip, const Range &range)
~SiStripNoisesDQM() override
std::pair< ContainerIterator, ContainerIterator > Range
std::string CondObj_fillId_
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
void getActiveDetIds(const edm::EventSetup &eSetup) override
SiStripNoisesDQM(edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noiseToken, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet, const TrackerTopology *tTopo, const TkDetMap *tkDetMap, const SiStripApvGain *gainHandle)
void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_) override
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_)
void getDetIds(std::vector< uint32_t > &DetIds_) const
void getConditionObject(const edm::EventSetup &eSetup) override
T getParameter(std::string const &) const
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_)
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId)
static float getStripGain(uint16_t strip, const Range &range)
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
const Range getRange(const uint32_t detID) const
std::vector< uint32_t > activeDetIds
const Range getRange(const uint32_t detID) const
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
SiStripHistoId hidmanager
std::unique_ptr< TkHistoMap > Tk_HM_