|
|
Go to the documentation of this file.
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();
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;
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
T const * product() const
SiStripHistoId hidmanager
void fillModMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es) override
MonitorElement * CumulDistr
MonitorElement * ProfileDistr
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es) override
~SiStripApvGainsDQM() override
std::vector< uint32_t > activeDetIds
U second(std::pair< T, U > const &p)
MonitorElement * SummaryOfProfileDistr
const Range getRange(const uint32_t detID) const
std::map< uint32_t, ModMEs > SummaryMEsMap_
SiStripDetInfoFileReader * reader
MonitorElement * SummaryDistr
void fillTkMap(const uint32_t &detid, const float &value)
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
std::unique_ptr< TkHistoMap > Tk_HM_
virtual TProfile * getTProfile() const
void getActiveDetIds(const edm::EventSetup &eSetup) override
virtual TH1 * getTH1() const
void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo) override
std::string CondObj_fillId_
void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo) override
Log< level::Error, false > LogError
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
edm::ESHandle< SiStripApvGain > gainHandle_
SiStripApvGainsDQM(const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
std::pair< ContainerIterator, ContainerIterator > Range
T getParameter(std::string const &) const
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
void getConditionObject(const edm::EventSetup &eSetup) override
void getDetIds(std::vector< uint32_t > &DetIds_) const
static float getApvGain(uint16_t apv, const Range &range)
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)