40 for(std::vector<uint32_t>::const_iterator detIter_ =selectedDetIds.begin();
41 detIter_!=selectedDetIds.end();++detIter_){
50 std::vector<uint32_t> DetIds;
59 for(
int iapv=0;iapv<nApv;++iapv){
76 <<
"[SiStripApvGainsDQM::fillMEsForDet] cms::Exception accessing gainHandle_->getApvGain(iapv,gainRange) for apv "
89 for(std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin();
90 detIter_!= selectedDetIds.end();detIter_++){
105 c1.Print(name.c_str());
113 c1.Print(name.c_str());
122 int subdetectorId_ = ((selDetId_>>25)&0x7);
124 if( subdetectorId_<3 ||subdetectorId_>6 ){
126 <<
"[SiStripApvGainsDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
127 << subdetectorId_ <<
" no folder set!"
135 selME_ =selMEsMapIter_->second;
148 std::string hSummaryOfProfile_description;
149 hSummaryOfProfile_description =
hPSet_.
getParameter<std::string>(
"SummaryOfProfile_description");
151 std::string hSummaryOfProfile_name;
152 hSummaryOfProfile_name = hidmanager.
createHistoLayer(hSummaryOfProfile_description,
156 for(
int iapv=0;iapv<nApv;++iapv){
159 meanApvGain = meanApvGain +
gainHandle_ ->getApvGain(iapv,gainRange);
164 <<
"[SiStripApvGainsDQM::fillMEsForLayer] cms::Exception accessing gainHandle_->getApvGain(istrip,gainRange) for strip "
179 meanApvGain = meanApvGain/nApv;
190 std::string hSummary_description;
193 std::string hSummary_name;
202 std::vector<uint32_t> sameLayerDetIds_;
204 sameLayerDetIds_.clear();
209 for(
unsigned int i=0;
i<sameLayerDetIds_.size();
i++){
210 if(sameLayerDetIds_[
i]==selDetId_){iBin=
i+1;}
213 for(
int iapv=0;iapv<nApv;++iapv){
215 meanApvGain = meanApvGain +
gainHandle_ ->getApvGain(iapv,gainRange);
220 <<
"[SiStripApvGainsDQM::fillMEsForLayer] cms::Exception accessing noiseHandle_->gainHandle_->getApvGain(iapv,gainRange) for apv "
228 meanApvGain = meanApvGain/nApv;
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
virtual char const * what() const
T getParameter(std::string const &) const
SiStripApvGainsDQM(const edm::EventSetup &eSetup, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
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 fillModMEs(const std::vector< uint32_t > &selectedDetIds)
void getActiveDetIds(const edm::EventSetup &eSetup)
void fillMEsForLayer(std::map< uint32_t, ModMEs > selModMEsMap_, uint32_t selDetId_)
void fillTkMap(const uint32_t &detid, const float &value)
U second(std::pair< T, U > const &p)
std::map< uint32_t, ModMEs > SummaryMEsMap_
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds)
SiStripDetInfoFileReader * reader
void fillMEsForDet(ModMEs selModME_, uint32_t selDetId_)
std::pair< ContainerIterator, ContainerIterator > Range
std::string CondObj_fillId_
MonitorElement * ProfileDistr
void getConditionObject(const edm::EventSetup &eSetup)
edm::ESHandle< SiStripApvGain > gainHandle_
MonitorElement * SummaryOfProfileDistr
MonitorElement * CumulDistr
void setBinContent(uint32_t &detid, float value)
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_)
TProfile * getTProfile(void) const
MonitorElement * SummaryDistr
std::vector< uint32_t > activeDetIds
virtual ~SiStripApvGainsDQM()
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_)
SiStripHistoId hidmanager