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){
96 for(std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin();
97 detIter_!= selectedDetIds.end();detIter_++){
111 int subdetectorId_ = ((selDetId_>>25)&0x7);
113 if( subdetectorId_<3 || subdetectorId_>6 ){
115 <<
"[SiStripThresholdDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
116 << subdetectorId_ <<
" no folder set!"
125 selME_ =selMEsMapIter_->second;
140 std::string hSummaryOfProfile_description;
141 hSummaryOfProfile_description =
hPSet_.
getParameter<std::string>(
"SummaryOfProfile_description");
143 std::string hSummaryOfProfile_name;
149 for(
int istrip=0;istrip<nStrip;++istrip){
173 std::string hSummary_description;
176 std::string hSummary_name;
183 float meanLowThreshold=0;
184 float meanHighThreshold=0;
186 for(
int istrip=0;istrip<nStrip;++istrip){
188 meanLowThreshold = meanLowThreshold +
thresholdHandle_->getData(istrip,ThresholdRange).getLth();
189 meanHighThreshold = meanHighThreshold +
thresholdHandle_->getData(istrip,ThresholdRange).getHth();
193 meanLowThreshold = meanLowThreshold/nStrip;
194 meanHighThreshold = meanHighThreshold/nStrip;
203 for(
unsigned int i=0;
i<sameLayerDetIds_.size();
i++){
204 if(sameLayerDetIds_[
i]==selDetId_){iBin=
i+1;}
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
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)
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 fillMEsForLayer(uint32_t selDetId_)
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