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) {
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;
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_)
T getParameter(std::string const &) const
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_
MonitorElement * ProfileDistr
void getActiveDetIds(const edm::EventSetup &eSetup) override
MonitorElement * SummaryOfProfileDistr
MonitorElement * CumulDistr
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_)
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
void getConditionObject(const edm::EventSetup &eSetup) override
const Range getRange(const uint32_t detID) const
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_)
const Range getRange(const uint32_t detID) const
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId)
static float getStripGain(uint16_t strip, const Range &range)
MonitorElement * SummaryDistr
std::vector< uint32_t > activeDetIds
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
MonitorElement * SummaryOfCumulDistr
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
void getDetIds(std::vector< uint32_t > &DetIds_) const
SiStripHistoId hidmanager
std::unique_ptr< TkHistoMap > Tk_HM_