42 std::ifstream database;
44 if (!database.is_open()) {
49 while (std::getline(database, line)) {
50 float ptMin,
ptMax,
etaMin,
etaMax, rhoMin,
rhoMax, a_q, b_q, a_g, b_g, lmin, lmax;
51 char tag[1023], leadchar;
52 sscanf(line.c_str(),
"%c", &leadchar);
53 if ((leadchar ==
'#') || (leadchar ==
'!'))
56 "%s %f %f %f %f %f %f %f %f %f %f %f %f",
72 category.RhoMin = rhoMin;
74 category.PtMin =
ptMin;
75 category.PtMax =
ptMax;
79 category.VarIndex = -1;
86 quarkEntry.
lmin = lmin;
87 quarkEntry.
lmax = lmax;
95 payload.
data.push_back(quarkEntry);
96 payload.
data.push_back(gluonEntry);
101 edm::LogInfo(
"UserOutput") <<
"Opening PoolDBOutputService" << std::endl;
108 edm::LogInfo(
"UserOutput") <<
"Wrote in CondDB QGLikelihoodSystematic payload label: " <<
payloadTag << std::endl;
static const char category[]
~QGLikelihoodSystematicsDBWriter() override
#define DEFINE_FWK_MODULE(type)
Log< level::Error, false > LogError
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< Entry > data
QGLikelihoodSystematicsDBWriter(const edm::ParameterSet &)
cond::Time_t beginOfTime() const
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
Category structure: ranges associated with QGLikelihood histograms.
Log< level::Info, false > LogInfo
QGLikelihoodCategory systCategory
T getParameter(std::string const &) const
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.