66 edm::LogPrint(
"CTPPSPixGainCalibsReader")<<
"###CTPPSPixGainCalibsESAnalyzer::analyze";
72 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"Record \"CTPPSPixelGainCalibrationsRcd"<<
"\" does not exist ";
80 edm::LogPrint(
"CTPPSPixGainCalibsReader")<<
"got CTPPSPixelGainCalibrations* ";
81 edm::LogPrint(
"CTPPSPixGainCalibsReader")<<
"print pointer address : " ;
82 edm::LogPrint(
"CTPPSPixGainCalibsReader") << pPixelGainCalibrations ;
91 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"Size " << pPixelGainCalibrations->
size();
94 for (CTPPSPixelGainCalibrations::CalibMap::const_iterator it = mymap.begin(); it !=mymap.end() ; ++it) {
95 uint32_t detId = it->first;
97 edm::LogPrint(
"CTPPSPixGainCalibsReader")<<
"Address of detId = "<< (&detId) <<
" and of it = "<< (&it) <<
" and of it->first = "<< (&(it->first)) ;
99 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"Content of pPixelGainCalibrations for key: detId= " << detId ;
103 edm::LogPrint(
"CTPPSPixGainCalibsReader")<<
"Address of mycalibs0 = "<< (&mycalibs0) <<
" and of mycalibs = "<< (&mycalibs) <<
" and of it->second "<<(&(it->second));
110 TH2D mypeds(namep.c_str(),tlp.c_str(),156,0.,156.,160,0.,160.);
111 TH2D mygains(nameg.c_str(),tlg.c_str(),156,0.,156.,160,0.,160.);
116 edm::LogPrint(
"CTPPSPixGainCalibsReader")<<
"Here ncols = "<<ncols<<
" nrows ="<<nrows <<
" npix="<<npix ;
117 for (
int jrow=0; jrow < nrows ; ++jrow)
118 for(
int icol=0; icol <
ncols ; ++icol){
119 if(mycalibs.
isDead(icol+jrow*ncols))
120 {
edm::LogPrint(
"CTPPSPixGainCalibsReader")<<
"Dead Pixel icol ="<< icol <<
" jrow ="<< jrow ;
continue;}
121 if(mycalibs.
isNoisy(icol+jrow*ncols))
122 {
edm::LogPrint(
"CTPPSPixGainCalibsReader")<<
"Noisy Pixel icol ="<< icol <<
" jrow ="<< jrow ;
continue;}
123 mygains.Fill(icol,jrow,mycalibs.
getGain(icol,jrow));
124 mypeds.Fill(icol,jrow,mycalibs.
getPed(icol,jrow));
EventNumber_t event() const
const CalibMap & getCalibMap() const
CTPPSPixGainCalibsESAnalyzer(edm::ParameterSet const &p)
bool isDead(const uint32_t ipix) const
CTPPSPixGainCalibsESAnalyzer(int i)
const CTPPSPixelGainCalibration & getGainCalibration(const uint32_t &detid) const
std::map< uint32_t, CTPPSPixelGainCalibration > CalibMap
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
void analyze(const edm::Event &e, const edm::EventSetup &c) override
~CTPPSPixGainCalibsESAnalyzer() override
std::string m_outfilename
#define DEFINE_FWK_MODULE(type)
std::map< uint32_t, std::string > detId_readable
uint32_t getNCols() const
uint32_t getNRows() const
heterocontainer::HCTypeTag TypeTag
const TypeTag & type() const
float getPed(const int &col, const int &row) const
bool isNoisy(const uint32_t ipix) const
T const * product() const
void setReadablePlaneNames()
float getGain(const int &col, const int &row) const