37 ModMEs selModME_ = _selModME_;
38 std::vector<uint32_t> DetIds;
55 for(
int istrip=0;istrip<nStrip;++istrip){
57 gainFactor=
gainHandle_ ->getStripGain(istrip,gainRange) ?
gainHandle_ ->getStripGain(istrip,gainRange) : 1.;
61 stripnoise=
noiseHandle_->getNoise(istrip,noiseRange)/gainFactor;
81 int subdetectorId_ = ((selDetId_>>25)&0x7);
83 if( subdetectorId_<3 ||subdetectorId_>6 ){
85 <<
"[SiStripNoisesDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
86 << subdetectorId_ <<
" no folder set!"
95 selME_ =selMEsMapIter_->second;
101 float stripnoise=-1.;
119 hSummaryOfProfile_name = hidmanager.
createHistoLayer(hSummaryOfProfile_description,
144 for(
int istrip=0;istrip<nStrip;++istrip){
147 gainFactor=
gainHandle_ ->getStripGain(istrip,gainRange) ?
gainHandle_ ->getStripGain(istrip,gainRange) : 1.;
152 stripnoise=
noiseHandle_->getNoise(istrip,noiseRange)/gainFactor;
153 meanNoise+=stripnoise;
176 meanNoise = meanNoise/(nStrip-Nbadstrips);
179 std::vector<uint32_t> sameLayerDetIds_;
182 std::vector<uint32_t>::const_iterator ibound=lower_bound(sameLayerDetIds_.begin(),sameLayerDetIds_.end(),selDetId_);
183 if(ibound!=sameLayerDetIds_.end() && *ibound==selDetId_)
192 int intNoise = int(meanNoise);
T getParameter(std::string const &) const
bool gainRenormalisation_
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
std::vector< int > tkMapScaler
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
void fillTkMap(const uint32_t &detid, const float &value)
U second(std::pair< T, U > const &p)
void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo)
std::map< uint32_t, ModMEs > SummaryMEsMap_
virtual ~SiStripNoisesDQM()
SiStripDetInfoFileReader * reader
void fill(uint32_t &detid, float value)
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)
std::pair< ContainerIterator, ContainerIterator > Range
std::string CondObj_fillId_
MonitorElement * ProfileDistr
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
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)
void getConditionObject(const edm::EventSetup &eSetup)
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
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
SiStripHistoId hidmanager
void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo)