44 virtual bool doFits(uint32_t
detid, std::vector<SiPixelCalibDigi>::const_iterator ipix);
51 virtual void newDetID(uint32_t detid);
73 mineff_(iConfig.getUntrackedParameter<double>(
"minEfficiencyForAliveDef",0.8))
126 edm::LogInfo(
"SiPixelIsAliveCalibration") <<
"now looking at DetID " << detid <<
", pixel " << ipix->row() <<
"," << ipix->col() << std::endl;
130 for(uint32_t
i=0;
i<ipix->getnpoints();
i++){
131 nom+=ipix->getnentries(
i);
132 denom+=
calib_->getNTriggers();
134 edm::LogWarning(
"SiPixelIsAliveCalibration::doFits") <<
" ERROR!!" <<
" number of vcal points is now " <<
i <<
" for detid " << detid << std::endl;
136 edm::LogInfo(
"SiPixelIsAliveCalibration") <<
"DetID/col/row " << detid <<
"/"<< ipix->col() <<
"/" << ipix->row() <<
", now calculating efficiency: " << nom <<
"/" << denom <<
"=" << nom/denom << std::endl;
140 if(
bookkeeper_[detid]->getBinContent(ipix->col()+1,ipix->row()+1)==0){
154 for(std::map<uint32_t, MonitorElement *>::const_iterator idet=
bookkeeper_.begin(); idet!=
bookkeeper_.end();++idet){
157 float imultiplefill=0;
159 uint32_t
detid=idet->first;
175 edm::LogInfo(
"SiPixelIsAliveCalibration") <<
"summary for " <<
translateDetIdToString(detid) <<
"\tfrac dead:" << idead/itot <<
" frac below " <<
mineff_ <<
":" << iunderthres/itot <<
" bad " << imultiplefill/itot << std::endl;
SiPixelIsAliveCalibration(const edm::ParameterSet &)
~SiPixelIsAliveCalibration()
edm::ESHandle< SiPixelCalibConfiguration > calib_
#define DEFINE_FWK_MODULE(type)
virtual void newDetID(uint32_t detid)
std::string translateDetIdToString(uint32_t detid)
virtual void calibrationEnd()
MonitorElement * bookDQMHistoPlaquetteSummary2D(uint32_t detid, std::string name, std::string title)
virtual bool checkCorrectCalibrationType()
std::map< uint32_t, MonitorElement * > bookkeeper_
virtual bool doFits(uint32_t detid, std::vector< SiPixelCalibDigi >::const_iterator ipix)
MonitorElement * bookDQMHistogram1D(uint32_t detid, std::string name, std::string title, int nchX, double lowX, double highX)
std::map< uint32_t, MonitorElement * > summaries_
virtual void calibrationSetup(const edm::EventSetup &)
void doSetup(const edm::ParameterSet &)
std::string calibrationMode_
bool setDQMDirectory(std::string dirName)