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){
78 for(std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin();
79 detIter_!= selectedDetIds.end();detIter_++){
94 c1.Print(name.c_str());
102 c1.Print(name.c_str());
111 int subdetectorId_ = ((selDetId_>>25)&0x7);
113 if( subdetectorId_<3 ||subdetectorId_>6 ){
115 <<
"[SiStripApvGainsDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
116 << subdetectorId_ <<
" no folder set!"
125 selME_ =selMEsMapIter_->second;
138 std::string hSummaryOfProfile_description;
139 hSummaryOfProfile_description =
hPSet_.
getParameter<std::string>(
"SummaryOfProfile_description");
141 std::string hSummaryOfProfile_name;
142 hSummaryOfProfile_name = hidmanager.
createHistoLayer(hSummaryOfProfile_description,
146 for(
int iapv=0;iapv<nApv;++iapv){
148 meanApvGain = meanApvGain +
gainHandle_ ->getApvGain(iapv,gainRange);
158 meanApvGain = meanApvGain/nApv;
169 std::string hSummary_description;
172 std::string hSummary_name;
181 std::vector<uint32_t> sameLayerDetIds_;
183 sameLayerDetIds_.clear();
188 for(
unsigned int i=0;
i<sameLayerDetIds_.size();
i++){
189 if(sameLayerDetIds_[
i]==selDetId_){iBin=
i+1;}
192 for(
int iapv=0;iapv<nApv;++iapv){
193 meanApvGain = meanApvGain +
gainHandle_ ->getApvGain(iapv,gainRange);
196 meanApvGain = meanApvGain/nApv;
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
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 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)
void fillMEsForLayer(uint32_t selDetId_)
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