16 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMapHandle.
product(),
"SiStrip/Histo_Map",
"MeanPed_TkMap", 0.);
41 for (std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin(); detIter_ != selectedDetIds.end();
50 ModMEs selModME_ = _selModME_;
56 for (
int istrip = 0; istrip < nStrip; ++istrip) {
71 for (std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin(); detIter_ != selectedDetIds.end();
87 c1.Print(name.c_str());
96 c1.Print(name.c_str());
107 int subdetectorId_ = ((selDetId_ >> 25) & 0x7);
109 if (subdetectorId_ < 3 || subdetectorId_ > 6) {
110 edm::LogError(
"SiStripPedestalsDQM") <<
"[SiStripPedestalsDQM::fillMEsForLayer] WRONG INPUT : no such " 111 "subdetector type : " 112 << subdetectorId_ <<
" no folder set!" << std::endl;
123 selME_ = selMEsMapIter_->second;
143 for (
int istrip = 0; istrip < nStrip; ++istrip) {
165 float meanPedestal = 0;
167 for (
int istrip = 0; istrip < nStrip; ++istrip) {
172 meanPedestal = meanPedestal / nStrip;
177 std::vector<uint32_t> sameLayerDetIds_;
179 sameLayerDetIds_.clear();
183 unsigned int iBin = 0;
184 for (
unsigned int i = 0;
i < sameLayerDetIds_.size();
i++) {
185 if (sameLayerDetIds_[
i] == selDetId_) {
194 Tk_HM_->fill(selDetId_, meanPedestal);
TProfile * getTProfile() const
T getParameter(std::string const &) const
edm::ESHandle< SiStripPedestals > pedestalHandle_
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo) override
std::pair< ContainerIterator, ContainerIterator > Range
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es) override
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
void fillTkMap(const uint32_t &detid, const float &value)
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_
SiStripDetInfoFileReader * reader
SiStripPedestalsDQM(const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)
void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo) override
std::string CondObj_fillId_
void getConditionObject(const edm::EventSetup &eSetup) override
MonitorElement * ProfileDistr
MonitorElement * SummaryOfProfileDistr
void fillModMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es) override
void getDetIds(std::vector< uint32_t > &DetIds_) const
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
MonitorElement * SummaryDistr
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)
T const * product() const
SiStripHistoId hidmanager
std::unique_ptr< TkHistoMap > Tk_HM_