62 : calibConfigToken(
esConsumes()), verbose_(iConfig.getParameter<
bool>(
"verbosity")) {
76 LogInfo(
"") <<
" examining SiPixelCalibConfiguration database object..." << std::endl;
79 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") <<
"calibration type: " <<
calib->getCalibrationMode() << std::endl;
80 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") <<
"number of triggers: " <<
calib->getNTriggers() << std::endl;
81 std::vector<short> vcalvalues =
calib->getVCalValues();
82 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") <<
"number of VCAL: " << vcalvalues.size() << std::endl;
85 for (uint32_t
i = 0;
i < vcalvalues.size(); ++
i) {
88 <<
"Vcal values " <<
i <<
"," <<
i + 1 <<
" : " << vcalvalues[
i] <<
",";
92 if (
i < vcalvalues.size())
94 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") << std::endl;
98 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") <<
"column patterns:" << std::endl;
99 for (uint32_t
i = 0;
i <
calib->getColumnPattern().size(); ++
i) {
100 if (
calib->getColumnPattern()[
i] != -1) {
108 if (
calib->getColumnPattern()[
i] == -1)
113 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") << std::endl;
114 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") <<
"row patterns:" << std::endl;
116 for (uint32_t
i = 0;
i <
calib->getRowPattern().size(); ++
i) {
117 if (
calib->getRowPattern()[
i] != -1) {
125 if (
calib->getRowPattern()[
i] == -1)
130 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") << std::endl;
131 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") <<
"number of row patterns: " << ngoodrows << std::endl;
132 edm::LogPrint(
"SiPixelCalibConfigurationReadDb") <<
"number of column patterns: " << ngoodcols << std::endl;
135 <<
"this payload is designed to run on " << vcalvalues.size() * ngoodcols * ngoodrows *
calib->getNTriggers()
136 <<
" events." << std::endl;
#define DEFINE_FWK_MODULE(type)
const edm::ESGetToken< SiPixelCalibConfiguration, SiPixelCalibConfigurationRcd > calibConfigToken
bool getData(T &iHolder) const
Log< level::Warning, true > LogPrint
Log< level::Info, false > LogInfo
void analyze(const edm::Event &, const edm::EventSetup &) override
~SiPixelCalibConfigurationReadDb() override
SiPixelCalibConfigurationReadDb(const edm::ParameterSet &)