38 for(std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin();
39 detIter_!= selectedDetIds.end();detIter_++){
58 for(
int istrip=0;istrip<nStrip;++istrip){
72 for(std::vector<uint32_t>::const_iterator detIter_ = selectedDetIds.begin();
73 detIter_!= selectedDetIds.end();detIter_++){
90 c1.Print(name.c_str());
99 c1.Print(name.c_str());
114 int subdetectorId_ = ((selDetId_>>25)&0x7);
116 if( subdetectorId_<3 || subdetectorId_>6 ){
118 <<
"[SiStripPedestalsDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
119 << subdetectorId_ <<
" no folder set!"
130 selME_ =selMEsMapIter_->second;
143 std::string hSummaryOfProfile_description;
144 hSummaryOfProfile_description =
hPSet_.
getParameter<std::string>(
"SummaryOfProfile_description");
146 std::string hSummaryOfProfile_name;
149 hSummaryOfProfile_name = hidmanager.
createHistoLayer(hSummaryOfProfile_description,
154 for(
int istrip=0;istrip<nStrip;++istrip){
172 std::string hSummary_description;
175 std::string hSummary_name;
180 float meanPedestal=0;
182 for(
int istrip=0;istrip<nStrip;++istrip){
184 meanPedestal = meanPedestal +
pedestalHandle_->getPed(istrip,pedRange);
188 meanPedestal = meanPedestal/nStrip;
194 std::vector<uint32_t> sameLayerDetIds_;
196 sameLayerDetIds_.clear();
202 for(
unsigned int i=0;
i<sameLayerDetIds_.size();
i++){
203 if(sameLayerDetIds_[
i]==selDetId_){iBin=
i+1;}
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
T getParameter(std::string const &) const
edm::ESHandle< SiStripPedestals > pedestalHandle_
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(uint32_t selDetId_)
std::pair< ContainerIterator, ContainerIterator > Range
void fillTkMap(const uint32_t &detid, const float &value)
SiStripPedestalsDQM(const edm::EventSetup &eSetup, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
U second(std::pair< T, U > const &p)
std::map< uint32_t, ModMEs > SummaryMEsMap_
SiStripDetInfoFileReader * reader
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds)
void fill(uint32_t &detid, float value)
void fillMEsForDet(ModMEs selModME_, uint32_t selDetId_)
void fillModMEs(const std::vector< uint32_t > &selectedDetIds)
std::string CondObj_fillId_
MonitorElement * ProfileDistr
virtual ~SiStripPedestalsDQM()
MonitorElement * SummaryOfProfileDistr
void getConditionObject(const edm::EventSetup &eSetup)
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_)
void getActiveDetIds(const edm::EventSetup &eSetup)
TProfile * getTProfile(void) const
MonitorElement * SummaryDistr
std::vector< uint32_t > activeDetIds
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