18 if (simGainRenormalisation_) {
26 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMapHandle.
product(),
"SiStrip/Histo_Map",
"MeanNoise_TkMap", 0.);
43 ModMEs selModME_ = _selModME_;
44 std::vector<uint32_t> DetIds;
61 for (
int istrip = 0; istrip < nStrip; ++istrip) {
88 int subdetectorId_ = ((selDetId_ >> 25) & 0x7);
90 if (subdetectorId_ < 3 || subdetectorId_ > 6) {
91 edm::LogError(
"SiStripNoisesDQM") <<
"[SiStripNoisesDQM::fillMEsForLayer] WRONG INPUT : no such " 93 << subdetectorId_ <<
" no folder set!" << std::endl;
101 selME_ = selMEsMapIter_->second;
107 float stripnoise = -1.;
115 float gainFactor = 1;
146 for (
int istrip = 0; istrip < nStrip; ++istrip) {
154 meanNoise += stripnoise;
175 meanNoise = meanNoise / (nStrip - Nbadstrips);
178 std::vector<uint32_t> sameLayerDetIds_;
181 std::vector<uint32_t>::const_iterator ibound =
182 lower_bound(sameLayerDetIds_.begin(), sameLayerDetIds_.end(), selDetId_);
183 if (ibound != sameLayerDetIds_.end() && *ibound == selDetId_)
184 selME_.
SummaryDistr->
Fill(ibound - sameLayerDetIds_.begin() + 1, meanNoise);
188 Tk_HM_->fill(selDetId_, meanNoise);
192 int intNoise =
int(meanNoise);
T getParameter(std::string const &) const
void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo) override
bool gainRenormalisation_
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
std::vector< int > tkMapScaler
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
void fillTkMap(const uint32_t &detid, const float &value)
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
SiStripDetInfoFileReader * reader
void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo) override
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)
std::pair< ContainerIterator, ContainerIterator > Range
std::string CondObj_fillId_
MonitorElement * ProfileDistr
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
void getActiveDetIds(const edm::EventSetup &eSetup) override
MonitorElement * SummaryOfProfileDistr
MonitorElement * CumulDistr
edm::ESHandle< SiStripNoises > noiseHandle_
void getDetIds(std::vector< uint32_t > &DetIds_) const
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
bool simGainRenormalisation_
void getConditionObject(const edm::EventSetup &eSetup) override
static float getStripGain(uint16_t strip, const Range &range)
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
const Range getRange(const uint32_t detID) const
MonitorElement * SummaryDistr
std::vector< uint32_t > activeDetIds
edm::ESHandle< SiStripApvGain > gainHandle_
const Range getRange(const uint32_t detID) const
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
std::pair< ContainerIterator, ContainerIterator > Range
MonitorElement * SummaryOfCumulDistr
T const * product() const
SiStripHistoId hidmanager
std::unique_ptr< TkHistoMap > Tk_HM_
SiStripNoisesDQM(const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)