96 unsigned int nmodules = 0;
97 uint32_t nchannels = 0;
103 edm::LogInfo(
"SiPixelCondObjReader") <<
"[SiPixelCondObjReader::beginJob] End Reading CondObjects" << std::endl;
107 edm::LogInfo(
"SiPixelCondObjReader") <<
" There are " << tkgeom->
dets().size() <<
" detectors" << std::endl;
114 "Summary_dead",
"Dead pixel fraction (0=dead, 1=alive)", vdetId_.size() + 1, 0, vdetId_.size() + 1);
116 "Dead pixel fraction (0=dead, 1=alive)",
121 "Summary_noisy",
"Noisy pixel fraction (0=noisy, 1=alive)", vdetId_.size() + 1, 0, vdetId_.size() + 1);
123 "Noisy pixel fraction (0=noisy, 1=alive)",
127 _TH1F_Gains_sum =
fs->make<TH1F>(
"Summary_Gain",
"Gain Summary", vdetId_.size() + 1, 0, vdetId_.size() + 1);
129 fs->make<TH1F>(
"Summary_Pedestal",
"Pedestal Summary", vdetId_.size() + 1, 0, vdetId_.size() + 1);
137 TTree *
tree =
new TTree(
"tree",
"tree");
139 double gainmeanfortree, gainrmsfortree, pedmeanfortree, pedrmsfortree;
140 tree->Branch(
"detid", &
detid,
"detid/I");
141 tree->Branch(
"ped_mean", &pedmeanfortree,
"ped_mean/D");
142 tree->Branch(
"ped_rms", &pedrmsfortree,
"ped_rms/D");
143 tree->Branch(
"gain_mean", &gainmeanfortree,
"gain_mean/D");
144 tree->Branch(
"gain_rms", &gainrmsfortree,
"gain_rms/D");
148 for (std::vector<uint32_t>::const_iterator detid_iter = vdetId_.begin(); detid_iter != vdetId_.end();
160 if (_PixelGeomDetUnit ==
nullptr) {
161 edm::LogError(
"SiPixelCondObjDisplay") <<
"[SiPixelCondObjReader::beginJob] the detID " <<
detid 162 <<
" doesn't seem to belong to Tracker" << std::endl;
176 int nrows = topol.
nrows();
178 float nchannelspermod = 0;
180 for (
int col_iter = 0; col_iter <
ncols; col_iter++) {
181 for (
int row_iter = 0; row_iter < nrows; row_iter++) {
236 <<
"DetId " <<
detid <<
" GainMean " << gainmeanfortree <<
" RMS " << gainrmsfortree <<
" PedMean " 237 << pedmeanfortree <<
" RMS " << pedrmsfortree << std::endl;
243 edm::LogInfo(
"SiPixelCondObjReader") <<
"[SiPixelCondObjReader::analyze] ---> PIXEL Modules " << nmodules
245 edm::LogInfo(
"SiPixelCondObjReader") <<
"[SiPixelCondObjReader::analyze] ---> PIXEL Channels " << nchannels
248 edm::LogPrint(
"SiPixelCondObjReader") <<
" ---> SUMMARY :" << std::endl;
249 edm::LogPrint(
"SiPixelCondObjReader") <<
"Encounted " << ndead <<
" dead pixels" << std::endl;
250 edm::LogPrint(
"SiPixelCondObjReader") <<
"Encounted " << nnoisy <<
" noisy pixels" << std::endl;
TH1F * _TH1F_Pedestals_sum
TH1F * _TH1F_Pedestals_fpix
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
virtual int ncolumns() const =0
std::vector< uint32_t > getDetIds() override
std::map< uint32_t, double > _noisyfrac_m
virtual int nrows() const =0
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
Log< level::Error, false > LogError
T getUntrackedParameter(std::string const &, T const &) const
T * make(const Args &...args) const
make new ROOT object
float getGain(const uint32_t &detID, const int &col, const int &row) override
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
void setESObjects(const edm::EventSetup &es) override
Log< level::Warning, true > LogPrint
std::map< uint32_t, TH1F * > _TH1F_Gains_m
Log< level::Info, false > LogInfo
TH1F * _TH1F_Pedestals_bpix
TH1F * _TH1F_Pedestals_all
std::map< uint32_t, TH1F * > _TH1F_Pedestals_m
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
float getPedestal(const uint32_t &detID, const int &col, const int &row) override
std::map< uint32_t, double > _deadfrac_m
bool isDead(const uint32_t &detID, const int &col, const int &row) override
SiPixelGainCalibrationService SiPixelGainCalibrationService_
bool isNoisy(const uint32_t &detID, const int &col, const int &row) override