Fill run catalog with nfiles entries. 
 
{
   const char *
ins = 
"INSERT INTO runcatalog VALUES ('%s', %d," 
      " %d, %d, %d, %10.2f, '%s', '%s', '1997-01-15 20:16:28',"
      " '1999-01-15 20:16:28', '%s', '%s')";
 
   char dataset[32];
 
   
 
   
   res = 
db->Query(
"DELETE FROM runcatalog");
 
   delete res;
 
   
 
   
   for (
int i = 0; i < 
nfiles; i++) {
 
      sprintf(
sql, 
ins, dataset, i, 
evt, 
evt+10000, tag, 25.5, 
"test", 
"lead",
 
      delete res;
      
   }
 
 
   
 
}
double Double_t
Double 8 bytes.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
R__EXTERN TRandom * gRandom
 
Double_t Rndm() override
Machine independent random number generator.
 
static TSQLServer * Connect(const char *db, const char *uid, const char *pw)
The db should be of the form: <dbms>://<host>[:<port>][/<database>], e.g.: mysql://pcroot....
 
- Author
 - Sergey Linev 
 
Definition in file sqlfilldb.C.