104 unsigned int nmodules = 0;
105 uint32_t nchannels = 0;
112 <<
"[SiPixelCondObjForHLTReader::beginJob] End Reading CondObjForHLTects" << std::endl;
116 edm::LogInfo(
"SiPixelCondObjForHLTReader") <<
" There are " << tkgeom->
dets().size() <<
" detectors" << std::endl;
123 "Summary_dead",
"Dead pixel fraction (0=dead, 1=alive)", vdetId_.size() + 1, 0, vdetId_.size() + 1);
125 "Dead pixel fraction (0=dead, 1=alive)",
130 "Summary_noisy",
"Noisy pixel fraction (0=noisy, 1=alive)", vdetId_.size() + 1, 0, vdetId_.size() + 1);
132 "Noisy pixel fraction (0=noisy, 1=alive)",
136 _TH1F_Gains_sum =
fs->make<TH1F>(
"Summary_Gain",
"Gain Summary", vdetId_.size() + 1, 0, vdetId_.size() + 1);
138 fs->make<TH1F>(
"Summary_Pedestal",
"Pedestal Summary", vdetId_.size() + 1, 0, vdetId_.size() + 1);
146 TTree *
tree =
new TTree(
"tree",
"tree");
148 double gainmeanfortree, gainrmsfortree, pedmeanfortree, pedrmsfortree;
149 tree->Branch(
"detid", &detid,
"detid/I");
150 tree->Branch(
"ped_mean", &pedmeanfortree,
"ped_mean/D");
151 tree->Branch(
"ped_rms", &pedrmsfortree,
"ped_rms/D");
152 tree->Branch(
"gain_mean", &gainmeanfortree,
"gain_mean/D");
153 tree->Branch(
"gain_rms", &gainrmsfortree,
"gain_rms/D");
157 for (std::vector<uint32_t>::const_iterator detid_iter = vdetId_.begin(); detid_iter != vdetId_.end();
161 sprintf(
name,
"Pedestals_%d", detid);
163 sprintf(
name,
"Gains_%d", detid);
166 DetId detIdObject(detid);
169 if (_PixelGeomDetUnit ==
nullptr) {
170 edm::LogError(
"SiPixelCondObjHLTDisplay") <<
"[SiPixelCondObjHLTReader::beginJob] the detID " << detid
171 <<
" doesn't seem to belong to Tracker" << std::endl;
185 int nrows = topol.
nrows();
187 float nchannelspermod = 0;
189 for (
int col_iter = 0; col_iter <
ncols; col_iter++) {
190 for (
int row_iter = 0; row_iter < nrows; row_iter++) {
251 <<
"[SiPixelCondObjForHLTReader::analyze] ---> PIXEL Modules " << nmodules << std::endl;
253 <<
"[SiPixelCondObjForHLTReader::analyze] ---> PIXEL Channels (i.e. Number of Columns)" << nchannels
256 edm::LogPrint(
"SiPixelCondObjForHLTReader") <<
" ---> SUMMARY :" << std::endl;
257 edm::LogPrint(
"SiPixelCondObjForHLTReader") <<
"Encounted " << ndead <<
" dead pixels" << std::endl;
258 edm::LogPrint(
"SiPixelCondObjForHLTReader") <<
"Encounted " << nnoisy <<
" noisy pixels" << std::endl;
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
virtual int ncolumns() const =0
std::map< uint32_t, double > _deadfrac_m
virtual int nrows() const =0
TH1F * _TH1F_Pedestals_fpix
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
Log< level::Error, false > LogError
TH1F * _TH1F_Pedestals_bpix
TH1F * _TH1F_Pedestals_sum
T getUntrackedParameter(std::string const &, T const &) const
T * make(const Args &...args) const
make new ROOT object
std::map< uint32_t, TH1F * > _TH1F_Gains_m
bool getData(T &iHolder) const
Log< level::Warning, true > LogPrint
Log< level::Info, false > LogInfo
std::unique_ptr< SiPixelGainCalibrationServiceBase > SiPixelGainCalibrationService_
TH1F * _TH1F_Pedestals_all
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
std::map< uint32_t, TH1F * > _TH1F_Pedestals_m
std::map< uint32_t, double > _noisyfrac_m