13 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMap,
"SiStrip/Histo_Map",
"MeanApvGain_TkMap", 0.);
26 for (
const auto detIter : selectedDetIds) {
32 ModMEs selModME_ = _selModME_;
33 std::vector<uint32_t> DetIds;
42 for (
int iapv = 0; iapv < nApv; ++iapv) {
58 for (
const auto det : selectedDetIds) {
63 ModMEs selME = itm.second;
67 selME.SummaryOfProfileDistr->getTProfile()->Draw();
68 std::string name(selME.SummaryOfProfileDistr->getTProfile()->GetTitle());
70 c1.Print(name.c_str());
75 selME.SummaryDistr->getTH1()->Draw();
78 c1.Print(name.c_str());
85 int subdetectorId_ = ((selDetId_ >> 25) & 0x7);
87 if (subdetectorId_ < 3 || subdetectorId_ > 6) {
88 edm::LogError(
"SiStripApvGainsDQM") <<
"[SiStripApvGainsDQM::fillMEsForLayer] WRONG INPUT : no such "
90 << subdetectorId_ <<
" no folder set!" << std::endl;
97 if (selMEsMapIter_ != SummaryMEsMap_.end())
98 selME_ = selMEsMapIter_->second;
104 float meanApvGain = 0;
114 hSummaryOfProfile_name =
117 for (
int iapv = 0; iapv < nApv; ++iapv) {
128 meanApvGain = meanApvGain / nApv;
132 Tk_HM_->setBinContent(selDetId_, meanApvGain);
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 for (
int iapv = 0; iapv < nApv; ++iapv) {
163 meanApvGain = meanApvGain / nApv;
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
void fillMEsForLayer(uint32_t selDetId_) override
static float getApvGain(uint16_t apv, const Range &range)
~SiStripApvGainsDQM() override
Log< level::Error, false > LogError
void getDetIds(std::vector< uint32_t > &DetIds_) const
void fillTkMap(const uint32_t &detid, const float &value)
const SiStripApvGain * condObj_
U second(std::pair< T, U > const &p)
void getActiveDetIds(const edm::EventSetup &eSetup) override
std::map< uint32_t, ModMEs > SummaryMEsMap_
SiStripApvGainsDQM(edm::ESGetToken< SiStripApvGain, SiStripApvGainRcd > token, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet, const TrackerTopology *tTopo, const TkDetMap *tkDetMap)
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 getConditionObject(const edm::EventSetup &eSetup) override
T getParameter(std::string const &) const
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)
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_)
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds) override
SiStripHistoId hidmanager
std::unique_ptr< TkHistoMap > Tk_HM_