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();
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;
275 edm::LogPrint(
"SiPixelCondObjForHLTReader") <<
" ---> End job " << std::endl;
280 desc.setComment(
"EDAnalyzer to read per-module SiPixelGainCalibrationForHLT payloads in the EventSetup");
281 desc.add<
bool>(
"useSimRcd",
false);
282 desc.addUntracked<
double>(
"maxRangeDeadPixHist", 0.001);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
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::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
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
SiPixelCondObjForHLTReader(const edm::ParameterSet &iConfig)
std::map< uint32_t, TH1F * > _TH1F_Gains_m
#define DEFINE_FWK_MODULE(type)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Log< level::Warning, true > LogPrint
void analyze(const edm::Event &, const edm::EventSetup &) override
Namespace of DDCMS conversion namespace.
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.
~SiPixelCondObjForHLTReader() override=default
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::map< uint32_t, TH1F * > _TH1F_Pedestals_m
std::map< uint32_t, double > _noisyfrac_m