76 if (strcmp(payloadType.c_str(),
"HLT") == 0) {
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++) {
152 _TH1F_Gains_all->Fill(gain);
156 _TH1F_Pedestals_all->Fill(ped);
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
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
T * make(const Args &...args) const
make new ROOT object
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
Log< level::Error, false > LogError
bool getData(T &iHolder) const
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_
T * make(const Args &...args) const
make new ROOT object
Log< level::Warning, true > LogPrint
Log< level::Info, false > LogInfo
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
std::map< uint32_t, TH1F * > _TH1F_Pedestals_m
T getParameter(std::string const &) const
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_