78 }
else if (strcmp(
payloadType.c_str(),
"Offline") == 0) {
80 std::make_unique<SiPixelGainCalibrationOfflineService>(conf,
consumesCollector());
81 }
else if (strcmp(
payloadType.c_str(),
"Full") == 0) {
93 unsigned int nmodules = 0;
94 uint32_t nchannels = 0;
99 <<
"[SiPixelCondObjAllPayloadsReader::beginJob] End Reading CondObjects" << std::endl;
104 <<
" There are " << tkgeom->
dets().size() <<
" detectors" << std::endl;
110 _TH1F_Gains_sum =
fs->make<TH1F>(
"Summary_Gain",
"Gain Summary", vdetId_.size() + 1, 0, vdetId_.size() + 1);
112 fs->make<TH1F>(
"Summary_Pedestal",
"Pedestal Summary", vdetId_.size() + 1, 0, vdetId_.size() + 1);
118 for (std::vector<uint32_t>::const_iterator detid_iter = vdetId_.begin(); detid_iter != vdetId_.end();
120 uint32_t detid = *detid_iter;
122 sprintf(
name,
"Pedestals_%d", detid);
124 sprintf(
name,
"Gains_%d", detid);
127 DetId detIdObject(detid);
130 if (_PixelGeomDetUnit ==
nullptr) {
131 edm::LogError(
"SiPixelCondObjDisplay") <<
"[SiPixelCondObjAllPayloadsReader::beginJob] the detID " << detid
132 <<
" doesn't seem to belong to Tracker" << std::endl;
143 int nrows = topol.
nrows();
146 for (
int col_iter = 0; col_iter <
ncols; col_iter++) {
147 for (
int row_iter = 0; row_iter < nrows; row_iter++) {
171 <<
"[SiPixelCondObjAllPayloadsReader::analyze] ---> PIXEL Modules " << nmodules << std::endl;
173 <<
"[SiPixelCondObjAllPayloadsReader::analyze] ---> PIXEL Channels " << nchannels << std::endl;
178 edm::LogPrint(
"SiPixelCondObjAllPayloadsReader") <<
" ---> End job " << std::endl;
static const std::string kSharedResource
TH1F * _TH1F_Pedestals_all
T getParameter(std::string const &) const
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
#define DEFINE_FWK_MODULE(type)
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_
bool getData(T &iHolder) const
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_