17 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMapHandle.
product(),
"SiStrip/Histo_Map",
"MeanApvGain_TkMap",0.);
49 for(std::vector<uint32_t>::const_iterator detIter_ =selectedDetIds.begin();
50 detIter_!=selectedDetIds.end();++detIter_){
58 ModMEs selModME_ = _selModME_;
59 std::vector<uint32_t> DetIds;
68 for(
int iapv=0;iapv<nApv;++iapv){
92 for(std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin();
93 detIter_!= selectedDetIds.end();detIter_++){
100 selME = iter->second;
108 c1.Print(name.c_str());
116 c1.Print(name.c_str());
125 int subdetectorId_ = ((selDetId_>>25)&0x7);
127 if( subdetectorId_<3 ||subdetectorId_>6 ){
129 <<
"[SiStripApvGainsDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : " 130 << subdetectorId_ <<
" no folder set!" 139 selME_ =selMEsMapIter_->second;
156 hSummaryOfProfile_name = hidmanager.
createHistoLayer(hSummaryOfProfile_description,
160 for(
int iapv=0;iapv<nApv;++iapv){
172 meanApvGain = meanApvGain/nApv;
195 std::vector<uint32_t> sameLayerDetIds_;
197 sameLayerDetIds_.clear();
202 for(
unsigned int i=0;
i<sameLayerDetIds_.size();
i++){
203 if(sameLayerDetIds_[
i]==selDetId_){iBin=
i+1;}
206 for(
int iapv=0;iapv<nApv;++iapv){
210 meanApvGain = meanApvGain/nApv;
TProfile * getTProfile() const
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)
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
SiStripHistoId hidmanager
std::unique_ptr< TkHistoMap > Tk_HM_