12 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMap,
"SiStrip/Histo_Map",
"MeanPed_TkMap", 0.);
25 for (
const auto det : selectedDetIds) {
31 ModMEs selModME_ = _selModME_;
37 for (
int istrip = 0; istrip < nStrip; ++istrip) {
39 selModME_.ProfileDistr->Fill(istrip + 1,
condObj_->
getPed(istrip, pedRange));
45 for (
const auto det : selectedDetIds) {
57 selME.SummaryOfProfileDistr->getTProfile()->Draw();
58 std::string name(selME.SummaryOfProfileDistr->getTProfile()->GetTitle());
60 c1.Print(name.c_str());
66 selME.SummaryDistr->getTH1()->Draw();
69 c1.Print(name.c_str());
77 int subdetectorId_ = ((selDetId_ >> 25) & 0x7);
79 if (subdetectorId_ < 3 || subdetectorId_ > 6) {
80 edm::LogError(
"SiStripPedestalsDQM") <<
"[SiStripPedestalsDQM::fillMEsForLayer] WRONG INPUT : no such "
82 << subdetectorId_ <<
" no folder set!" << std::endl;
92 if (selMEsMapIter_ != SummaryMEsMap_.end())
93 selME_ = selMEsMapIter_->second;
110 hSummaryOfProfile_name =
113 for (
int istrip = 0; istrip < nStrip; ++istrip) {
115 selME_.SummaryOfProfileDistr->Fill(istrip + 1,
condObj_->
getPed(istrip, pedRange));
134 float meanPedestal = 0;
136 for (
int istrip = 0; istrip < nStrip; ++istrip) {
141 meanPedestal = meanPedestal / nStrip;
146 std::vector<uint32_t> sameLayerDetIds_;
148 sameLayerDetIds_.clear();
152 unsigned int iBin = 0;
153 for (
unsigned int i = 0;
i < sameLayerDetIds_.size();
i++) {
154 if (sameLayerDetIds_[
i] == selDetId_) {
159 selME_.SummaryDistr->Fill(iBin, meanPedestal);
163 Tk_HM_->fill(selDetId_, meanPedestal);
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
void fillMEsForLayer(uint32_t selDetId_) override
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds) override
SiStripPedestalsDQM(edm::ESGetToken< SiStripPedestals, SiStripPedestalsRcd > token, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet, const TrackerTopology *tTopo, const TkDetMap *tkDetMap)
Log< level::Error, false > LogError
void fillTkMap(const uint32_t &detid, const float &value)
const SiStripPedestals * condObj_
float getPed(const uint16_t &strip, const Range &range) const
U second(std::pair< T, U > const &p)
~SiStripPedestalsDQM() override
std::map< uint32_t, ModMEs > SummaryMEsMap_
void fillModMEs(const std::vector< uint32_t > &selectedDetIds) override
std::string CondObj_fillId_
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
void getConditionObject(const edm::EventSetup &eSetup) override
void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_) 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)
void getActiveDetIds(const edm::EventSetup &eSetup) override
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_