38 std::vector<uint32_t> DetIds;
55 for(
int istrip=0;istrip<nStrip;++istrip){
57 gainFactor=
gainHandle_ ->getStripGain(istrip,gainRange);
62 stripnoise=
noiseHandle_->getNoise(istrip,noiseRange)/gainFactor;
65 <<
"[SiStripNoisesDQM::fillMEsForDet] cms::Exception accessing noiseHandle_->getNoise(istrip,noiseRange) for strip "
91 int subdetectorId_ = ((selDetId_>>25)&0x7);
93 if( subdetectorId_<3 ||subdetectorId_>6 ){
95 <<
"[SiStripNoisesDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
96 << subdetectorId_ <<
" no folder set!"
104 selME_ =selMEsMapIter_->second;
123 std::string hSummaryOfProfile_description;
124 hSummaryOfProfile_description =
hPSet_.
getParameter<std::string>(
"SummaryOfProfile_description");
126 std::string hSummaryOfProfile_name;
127 hSummaryOfProfile_name = hidmanager.
createHistoLayer(hSummaryOfProfile_description,
133 std::string hSummaryOfCumul_description;
136 std::string hSummaryOfCumul_name;
141 std::string hSummary_description;
144 std::string hSummary_name;
151 for(
int istrip=0;istrip<nStrip;++istrip){
153 gainFactor=
gainHandle_ ->getStripGain(istrip,gainRange);
159 stripnoise=
noiseHandle_->getNoise(istrip,noiseRange)/gainFactor;
160 meanNoise+=stripnoise;
164 <<
"[SiStripNoisesDQM::fillMEsForLayer] cms::Exception accessing noiseHandle_->getNoise(istrip,noiseRange) for strip "
194 meanNoise = meanNoise/(nStrip-Nbadstrips);
197 std::vector<uint32_t> sameLayerDetIds_;
200 std::vector<uint32_t>::const_iterator ibound=lower_bound(sameLayerDetIds_.begin(),sameLayerDetIds_.end(),selDetId_);
201 if(ibound!=sameLayerDetIds_.end() && *ibound==selDetId_)
210 int intNoise = int(meanNoise);
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
virtual char const * what() const
T getParameter(std::string const &) const
void fillMEsForDet(ModMEs selModME_, uint32_t selDetId_)
void fillMEsForLayer(std::map< uint32_t, ModMEs > selModMEsMap_, uint32_t selDetId_)
bool gainRenormalisation_
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
std::vector< uint32_t > GetSameLayerDetId(std::vector< uint32_t > activeDetIds, uint32_t selDetId)
std::vector< int > tkMapScaler
void fillTkMap(const uint32_t &detid, const float &value)
U second(std::pair< T, U > const &p)
virtual ~SiStripNoisesDQM()
SiStripDetInfoFileReader * reader
void fill(uint32_t &detid, float value)
std::pair< ContainerIterator, ContainerIterator > Range
std::string CondObj_fillId_
MonitorElement * ProfileDistr
SiStripNoisesDQM(const edm::EventSetup &eSetup, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
MonitorElement * SummaryOfProfileDistr
MonitorElement * CumulDistr
edm::ESHandle< SiStripNoises > noiseHandle_
void getActiveDetIds(const edm::EventSetup &eSetup)
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_)
void getConditionObject(const edm::EventSetup &eSetup)
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_)
MonitorElement * SummaryDistr
std::vector< uint32_t > activeDetIds
edm::ESHandle< SiStripApvGain > gainHandle_
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
std::pair< ContainerIterator, ContainerIterator > Range
MonitorElement * SummaryOfCumulDistr
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
SiStripHistoId hidmanager