67 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"###CTPPSPixGainCalibsESAnalyzer::analyze";
68 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
" I AM IN RUN NUMBER " <<
e.id().run();
69 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
" ---EVENT NUMBER " <<
e.id().event();
74 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"Record \"CTPPSPixelGainCalibrationsRcd" 75 <<
"\" does not exist ";
82 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"got CTPPSPixelGainCalibrations* ";
83 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"print pointer address : ";
84 edm::LogPrint(
"CTPPSPixGainCalibsReader") << pPixelGainCalibrations;
93 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"Size " << pPixelGainCalibrations->
size();
96 for (CTPPSPixelGainCalibrations::CalibMap::const_iterator it = mymap.begin(); it != mymap.end(); ++it) {
97 uint32_t detId = it->first;
100 <<
"Address of detId = " << (&detId) <<
" and of it = " << (&it) <<
" and of it->first = " << (&(it->first));
102 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"Content of pPixelGainCalibrations for key: detId= " << detId;
107 <<
"Address of mycalibs0 = " << (&mycalibs0) <<
" and of mycalibs = " << (&mycalibs) <<
" and of it->second " 114 TH2D mypeds(namep.c_str(), tlp.c_str(), 156, 0., 156., 160, 0., 160.);
115 TH2D mygains(nameg.c_str(), tlg.c_str(), 156, 0., 156., 160, 0., 160.);
120 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"Here ncols = " <<
ncols <<
" nrows =" << nrows <<
" npix=" << npix;
121 for (
int jrow = 0; jrow < nrows; ++jrow)
122 for (
int icol = 0; icol <
ncols; ++icol) {
124 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"Dead Pixel icol =" << icol <<
" jrow =" << jrow;
128 edm::LogPrint(
"CTPPSPixGainCalibsReader") <<
"Noisy Pixel icol =" << icol <<
" jrow =" << jrow;
131 mygains.Fill(icol, jrow, mycalibs.
getGain(icol, jrow));
132 mypeds.Fill(icol, jrow, mycalibs.
getPed(icol, jrow));
const TypeTag & type() const
float getPed(const int &col, const int &row) const
edm::ESGetToken< CTPPSPixelGainCalibrations, CTPPSPixelGainCalibrationsRcd > tokenCalibration_
CTPPSPixGainCalibsESAnalyzer(edm::ParameterSet const &p)
CTPPSPixGainCalibsESAnalyzer(int i)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
bool isNoisy(const uint32_t ipix) const
~CTPPSPixGainCalibsESAnalyzer() override
std::string m_outfilename
uint32_t getNCols() const
float getGain(const int &col, const int &row) const
T const * product() const
std::map< uint32_t, std::string > detId_readable
uint32_t getNRows() const
#define DEFINE_FWK_MODULE(type)
std::map< uint32_t, CTPPSPixelGainCalibration > CalibMap
Log< level::Warning, true > LogPrint
const CalibMap & getCalibMap() const
bool isDead(const uint32_t ipix) const
const CTPPSPixelGainCalibration & getGainCalibration(const uint32_t &detid) const
heterocontainer::HCTypeTag TypeTag
void setReadablePlaneNames()
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag