17 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMapHandle.
product(),
"SiStrip/Histo_Map",
"MeanApvGain_TkMap", 0.);
42 for (std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin(); detIter_ != selectedDetIds.end();
50 ModMEs selModME_ = _selModME_;
51 std::vector<uint32_t> DetIds;
60 for (
int iapv = 0; iapv < nApv; ++iapv) {
82 for (std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin(); detIter_ != selectedDetIds.end();
97 c1.Print(name.c_str());
105 c1.Print(name.c_str());
113 int subdetectorId_ = ((selDetId_ >> 25) & 0x7);
115 if (subdetectorId_ < 3 || subdetectorId_ > 6) {
116 edm::LogError(
"SiStripApvGainsDQM") <<
"[SiStripApvGainsDQM::fillMEsForLayer] WRONG INPUT : no such " 117 "subdetector type : " 118 << subdetectorId_ <<
" no folder set!" << std::endl;
126 selME_ = selMEsMapIter_->second;
132 float meanApvGain = 0;
145 for (
int iapv = 0; iapv < nApv; ++iapv) {
156 meanApvGain = meanApvGain / nApv;
160 Tk_HM_->setBinContent(selDetId_, meanApvGain);
175 std::vector<uint32_t> sameLayerDetIds_;
177 sameLayerDetIds_.clear();
181 unsigned int iBin = 0;
182 for (
unsigned int i = 0;
i < sameLayerDetIds_.size();
i++) {
183 if (sameLayerDetIds_[
i] == selDetId_) {
188 for (
int iapv = 0; iapv < nApv; ++iapv) {
192 meanApvGain = meanApvGain / nApv;
T getParameter(std::string const &) const
void getConditionObject(const edm::EventSetup &eSetup) override
static float getApvGain(uint16_t apv, const Range &range)
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
~SiStripApvGainsDQM() override
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo) override
void getDetIds(std::vector< uint32_t > &DetIds_) const
void fillTkMap(const uint32_t &detid, const float &value)
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es) override
void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo) override
U second(std::pair< T, U > const &p)
void getActiveDetIds(const edm::EventSetup &eSetup) override
std::map< uint32_t, ModMEs > SummaryMEsMap_
SiStripDetInfoFileReader * reader
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)
std::pair< ContainerIterator, ContainerIterator > Range
SiStripApvGainsDQM(const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
std::string CondObj_fillId_
MonitorElement * ProfileDistr
edm::ESHandle< SiStripApvGain > gainHandle_
MonitorElement * SummaryOfProfileDistr
MonitorElement * CumulDistr
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
virtual TProfile * getTProfile() const
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
MonitorElement * SummaryDistr
std::vector< uint32_t > activeDetIds
void fillModMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es) override
const Range getRange(const uint32_t detID) const
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
T const * product() const
virtual TH1 * getTH1() const
SiStripHistoId hidmanager
std::unique_ptr< TkHistoMap > Tk_HM_