|
|
Go to the documentation of this file.
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);
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
T const * product() const
SiStripHistoId hidmanager
void getConditionObject(const edm::EventSetup &eSetup) override
~SiStripNoisesDQM() override
static float getStripGain(uint16_t strip, const Range &range)
MonitorElement * CumulDistr
MonitorElement * ProfileDistr
bool simGainRenormalisation_
std::vector< uint32_t > activeDetIds
U second(std::pair< T, U > const &p)
MonitorElement * SummaryOfProfileDistr
std::vector< int > tkMapScaler
const Range getRange(const uint32_t detID) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
const Range getRange(const uint32_t detID) const
edm::ESHandle< SiStripNoises > noiseHandle_
std::map< uint32_t, ModMEs > SummaryMEsMap_
void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo) override
SiStripDetInfoFileReader * reader
MonitorElement * SummaryDistr
void fillTkMap(const uint32_t &detid, const float &value)
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
std::pair< ContainerIterator, ContainerIterator > Range
bool gainRenormalisation_
std::unique_ptr< TkHistoMap > Tk_HM_
__host__ constexpr __device__ RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
std::string CondObj_fillId_
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
edm::ESHandle< SiStripApvGain > gainHandle_
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
T getParameter(std::string const &) const
SiStripNoisesDQM(const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo) override
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
std::pair< ContainerIterator, ContainerIterator > Range
MonitorElement * SummaryOfCumulDistr
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
void getActiveDetIds(const edm::EventSetup &eSetup) override
static float getNoise(uint16_t strip, const Range &range)
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)