45 for(std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin();
46 detIter_!= selectedDetIds.end();detIter_++){
63 std::vector<uint32_t> DetIds;
75 for(
int istrip=0;istrip<nStrip;++istrip){
86 <<
"[SiStripThresholdDQM::fillMEsForDet] cms::Exception accessing thresholdHandle_->getData(istrip,ThresholdRange) for strip "
107 for(std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin();
108 detIter_!= selectedDetIds.end();detIter_++){
122 int subdetectorId_ = ((selDetId_>>25)&0x7);
124 if( subdetectorId_<3 || subdetectorId_>6 ){
126 <<
"[SiStripThresholdDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
127 << subdetectorId_ <<
" no folder set!"
135 selME_ =selMEsMapIter_->second;
149 std::string hSummaryOfProfile_description;
150 hSummaryOfProfile_description =
hPSet_.
getParameter<std::string>(
"SummaryOfProfile_description");
152 std::string hSummaryOfProfile_name;
158 for(
int istrip=0;istrip<nStrip;++istrip){
174 <<
"[SiStripThresholdDQM::fillMEsForLayer] cms::Exception accessing thresholdHandle_->getData(istrip,ThresholdRange) for strip "
193 std::string hSummary_description;
196 std::string hSummary_name;
203 float meanLowThreshold=0;
204 float meanHighThreshold=0;
206 for(
int istrip=0;istrip<nStrip;++istrip){
209 meanLowThreshold = meanLowThreshold +
thresholdHandle_->getData(istrip,ThresholdRange).getLth();
210 meanHighThreshold = meanHighThreshold +
thresholdHandle_->getData(istrip,ThresholdRange).getHth();
214 <<
"[SiStripNoisesDQM::fillMEsForLayer] cms::Exception accessing thresholdHandle_->getThreshold(istrip,ThresholdRange) for strip "
225 meanLowThreshold = meanLowThreshold/nStrip;
226 meanHighThreshold = meanHighThreshold/nStrip;
235 for(
unsigned int i=0;
i<sameLayerDetIds_.size();
i++){
236 if(sameLayerDetIds_[
i]==selDetId_){iBin=
i+1;}
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
virtual char const * what() const
T getParameter(std::string const &) const
SiStripThresholdDQM(const edm::EventSetup &eSetup, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
void fillModMEs(const std::vector< uint32_t > &selectedDetIds)
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
std::vector< uint32_t > GetSameLayerDetId(std::vector< uint32_t > activeDetIds, uint32_t selDetId)
void fillMEsForLayer(std::map< uint32_t, ModMEs > selModMEsMap_, uint32_t selDetId_)
edm::ESHandle< SiStripThreshold > thresholdHandle_
void fillTkMap(const uint32_t &detid, const float &value)
U second(std::pair< T, U > const &p)
std::map< uint32_t, ModMEs > SummaryMEsMap_
SiStripDetInfoFileReader * reader
void fill(uint32_t &detid, float value)
std::string CondObj_fillId_
MonitorElement * ProfileDistr
MonitorElement * SummaryOfProfileDistr
void getActiveDetIds(const edm::EventSetup &eSetup)
void fillMEsForDet(ModMEs selModME_, uint32_t selDetId_)
virtual ~SiStripThresholdDQM()
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds)
std::pair< ContainerIterator, ContainerIterator > Range
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_)
MonitorElement * SummaryDistr
std::vector< uint32_t > activeDetIds
std::string WhichThreshold
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
void getConditionObject(const edm::EventSetup &eSetup)
SiStripHistoId hidmanager