46 tup = getTuple(dataset, 0);
56 tup = getTuple(dataset, 1);
58 if ( 0 == strcmp(buf,
"-") )
69 tup = getTuple(dataset, 2);
70 size_t ncols = getNfields(tup);
73 for (
size_t col=0; col<
ncols; ++col) {
82 tup = getTuple(dataset, 3);
84 for (
size_t col=0; col <
ncols; ++col) {
93 fData.reserve(nrows * ncols);
100 for(
size_t col = 0; col <
ncols; ++col) {
106 long value = strtol(buf, 0, 10);
116 double value = strtod(buf, 0);
121 mf::LogError(
"DBDataset") <<
"First column has wrong type real." <<
"\n";
122 throw cet::exception(
"DBDataset") <<
"First column has wrong type real.";
126 fData.emplace_back(std::make_unique<std::string>(buf));
130 mf::LogError(
"DBDataset") <<
"First column has wrong type text." <<
"\n";
131 throw cet::exception(
"DBDataset") <<
"First column has wrong type text.";
136 std::string
s = std::string(buf);
137 if(s ==
"true" || s ==
"True" || s ==
"TRUE" || s ==
"1")
139 else if(s ==
"false" || s ==
"False" || s ==
"FALSE" || s ==
"0")
142 mf::LogError(
"DBDataset") <<
"Unknown string representation of boolean " << s <<
"\n";
143 throw cet::exception(
"DBDataset") <<
"Unknown string representation of boolean " << s
150 mf::LogError(
"DBDataset") <<
"First column has wrong type boolean." <<
"\n";
151 throw cet::exception(
"DBDataset") <<
"First column has wrong type boolean.";
155 mf::LogError(
"DBDataset") <<
"Unknown datatype = " <<
fColTypes[col] <<
"\n";
156 throw cet::exception(
"DBDataset") <<
"Unknown datatype = " <<
fColTypes[col]
157 <<
": " << buf <<
"\n";
166 releaseDataset(dataset);
const unsigned int kNUMBER_HEADER_ROWS
std::variant< long, double, std::unique_ptr< std::string > > value_type
EResult err(const char *call)
std::vector< std::string > fColNames
std::vector< std::string > fColTypes
std::vector< value_type > fData
const unsigned int kBUFFER_SIZE
std::vector< DBChannelID_t > fChannels
then echo File list $list not found else cat $list while read file do echo $file sed s
static IOVTimeStamp GetFromString(const std::string &ts)
static IOVTimeStamp MaxTimeStamp()