10 WhichThreshold = hPSet.getParameter<
std::string>(
"WhichThreshold");
13 if (WhichThreshold ==
"Low")
14 Tk_HM_L = std::make_unique<TkHistoMap>(tkDetMap,
"SiStrip/Histo_Map",
"LowThresh_TkMap", 0.);
15 if (WhichThreshold ==
"High")
16 Tk_HM_H = std::make_unique<TkHistoMap>(tkDetMap,
"SiStrip/Histo_Map",
"HighThresh_TkMap", 0.);
29 for (
const auto det : selectedDetIds) {
35 ModMEs selModME_ = _selModME_;
36 std::vector<uint32_t> DetIds;
44 for (
int istrip = 0; istrip < nStrip; ++istrip) {
55 for (
const auto det : selectedDetIds) {
63 int subdetectorId_ = ((selDetId_ >> 25) & 0x7);
65 if (subdetectorId_ < 3 || subdetectorId_ > 6) {
66 edm::LogError(
"SiStripThresholdDQM") <<
"[SiStripThresholdDQM::fillMEsForLayer] WRONG INPUT : no such "
68 << subdetectorId_ <<
" no folder set!" << std::endl;
76 selME_ = selMEsMapIter_->second;
94 hSummaryOfProfile_name =
97 for (
int istrip = 0; istrip < nStrip; ++istrip) {
123 float meanLowThreshold = 0;
124 float meanHighThreshold = 0;
126 for (
int istrip = 0; istrip < nStrip; ++istrip) {
131 meanLowThreshold = meanLowThreshold / nStrip;
132 meanHighThreshold = meanHighThreshold / nStrip;
139 unsigned int iBin = 0;
140 for (
unsigned int i = 0;
i < sameLayerDetIds_.size();
i++) {
141 if (sameLayerDetIds_[
i] == selDetId_) {
149 Tk_HM_L->fill(selDetId_, meanLowThreshold);
154 Tk_HM_H->fill(selDetId_, meanHighThreshold);
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
std::unique_ptr< TkHistoMap > Tk_HM_L
std::unique_ptr< TkHistoMap > Tk_HM_H
Log< level::Error, false > LogError
SiStripThresholdDQM(edm::ESGetToken< SiStripThreshold, SiStripThresholdRcd > token, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet, const TrackerTopology *tTopo, const TkDetMap *tkDetMap)
void fillTkMap(const uint32_t &detid, const float &value)
const SiStripThreshold * condObj_
U second(std::pair< T, U > const &p)
std::map< uint32_t, ModMEs > SummaryMEsMap_
void getActiveDetIds(const edm::EventSetup &eSetup) override
~SiStripThresholdDQM() override
std::string CondObj_fillId_
SiStripThreshold::Data getData(const uint16_t &strip, const Range &range) const
MonitorElement * ProfileDistr
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
MonitorElement * SummaryOfProfileDistr
void fillMEsForLayer(uint32_t selDetId_) override
void getConditionObject(const edm::EventSetup &eSetup) override
void getDetIds(std::vector< uint32_t > &DetIds_) const
T getParameter(std::string const &) const
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds) override
void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_) override
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)
MonitorElement * SummaryDistr
std::vector< uint32_t > activeDetIds
std::string WhichThreshold
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
const Range getRange(const uint32_t &detID) const
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
SiStripHistoId hidmanager
void fillModMEs(const std::vector< uint32_t > &selectedDetIds) override