45 for(std::vector<uint32_t>::const_iterator detIter_ =selectedDetIds.begin();
46 detIter_!=selectedDetIds.end();++detIter_){
54 ModMEs selModME_ = _selModME_;
55 std::vector<uint32_t> DetIds;
64 for(
int iapv=0;iapv<nApv;++iapv){
88 for(std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin();
89 detIter_!= selectedDetIds.end();detIter_++){
104 c1.Print(name.c_str());
112 c1.Print(name.c_str());
121 int subdetectorId_ = ((selDetId_>>25)&0x7);
123 if( subdetectorId_<3 ||subdetectorId_>6 ){
125 <<
"[SiStripApvGainsDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
126 << subdetectorId_ <<
" no folder set!"
135 selME_ =selMEsMapIter_->second;
152 hSummaryOfProfile_name = hidmanager.
createHistoLayer(hSummaryOfProfile_description,
156 for(
int iapv=0;iapv<nApv;++iapv){
158 meanApvGain = meanApvGain +
gainHandle_ ->getApvGain(iapv,gainRange);
168 meanApvGain = meanApvGain/nApv;
191 std::vector<uint32_t> sameLayerDetIds_;
193 sameLayerDetIds_.clear();
198 for(
unsigned int i=0;
i<sameLayerDetIds_.size();
i++){
199 if(sameLayerDetIds_[
i]==selDetId_){iBin=
i+1;}
202 for(
int iapv=0;iapv<nApv;++iapv){
203 meanApvGain = meanApvGain +
gainHandle_ ->getApvGain(iapv,gainRange);
206 meanApvGain = meanApvGain/nApv;
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
void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo)
void getActiveDetIds(const edm::EventSetup &eSetup)
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es)
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
void fillModMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es)
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
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
void getConditionObject(const edm::EventSetup &eSetup)
edm::ESHandle< SiStripApvGain > gainHandle_
MonitorElement * SummaryOfProfileDistr
MonitorElement * CumulDistr
void setBinContent(uint32_t &detid, float value)
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
T const * product() const
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
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 fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo)
SiStripHistoId hidmanager