76 desc.setComment(
"EDAnalyzer to read per-module SiPixelGainCalibration payloads in the EventSetup, for any type");
87 }
else if (strcmp(
payloadType.c_str(),
"Offline") == 0) {
89 std::make_unique<SiPixelGainCalibrationOfflineService>(conf,
consumesCollector());
90 }
else if (strcmp(
payloadType.c_str(),
"Full") == 0) {
102 unsigned int nmodules = 0;
103 uint32_t nchannels = 0;
108 <<
"[SiPixelCondObjAllPayloadsReader::beginJob] End Reading CondObjects" << std::endl;
113 <<
" There are " << tkgeom->
dets().size() <<
" detectors" << std::endl;
119 _TH1F_Gains_sum =
fs->make<TH1F>(
"Summary_Gain",
"Gain Summary", vdetId_.size() + 1, 0, vdetId_.size() + 1);
121 fs->make<TH1F>(
"Summary_Pedestal",
"Pedestal Summary", vdetId_.size() + 1, 0, vdetId_.size() + 1);
127 for (std::vector<uint32_t>::const_iterator detid_iter = vdetId_.begin(); detid_iter != vdetId_.end();
129 uint32_t detid = *detid_iter;
131 sprintf(
name,
"Pedestals_%d", detid);
133 sprintf(
name,
"Gains_%d", detid);
136 DetId detIdObject(detid);
139 if (_PixelGeomDetUnit ==
nullptr) {
140 edm::LogError(
"SiPixelCondObjDisplay") <<
"[SiPixelCondObjAllPayloadsReader::beginJob] the detID " << detid
141 <<
" doesn't seem to belong to Tracker" << std::endl;
152 int nrows = topol.
nrows();
155 for (
int col_iter = 0; col_iter <
ncols; col_iter++) {
156 for (
int row_iter = 0; row_iter < nrows; row_iter++) {
180 <<
"[SiPixelCondObjAllPayloadsReader::analyze] ---> PIXEL Modules " << nmodules << std::endl;
182 <<
"[SiPixelCondObjAllPayloadsReader::analyze] ---> PIXEL Channels " << nchannels << std::endl;
187 edm::LogPrint(
"SiPixelCondObjAllPayloadsReader") <<
" ---> End job " << std::endl;
static const std::string kSharedResource
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
TH1F * _TH1F_Pedestals_all
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, TH1F * > _TH1F_Gains_m
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
SiPixelCondObjAllPayloadsReader(const edm::ParameterSet &iConfig)
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 * make(const Args &...args) const
make new ROOT object
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void analyze(const edm::Event &, const edm::EventSetup &) override
TH1F * _TH1F_Pedestals_sum
std::unique_ptr< SiPixelGainCalibrationServiceBase > SiPixelGainCalibrationService_
#define DEFINE_FWK_MODULE(type)
Log< level::Warning, true > LogPrint
Namespace of DDCMS conversion namespace.
Log< level::Info, false > LogInfo
std::map< uint32_t, TH1F * > _TH1F_Pedestals_m
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_