14const char* dbname = 
"mysql://host.domain/test";
 
   15const char* username = 
"user";
 
   16const char* userpass = 
"pass";
 
   35   if (
f->IsZombie()) { 
delete f; 
return; }
 
   40   f->SetArrayLimit(1000);
 
   46   TH1I* 
h1 = 
new TH1I(
"histo1",
"histo title", 1000, -4., 4.);
 
   63       new (clones[
n]) 
TBox(
n*10,
n*100,
n*20,
n*200);
 
   75   if (
f->IsZombie()) { 
delete f; 
return; }
 
   89   cout << 
"Printout of TList object" << endl;
 
   90   if (obj!=0) obj->
Print(
"*");
 
   94   obj = 
f->Get(
"clones");
 
   95   cout << 
"Printout of TClonesArray object" << endl;
 
   96   if (obj!=0) obj->
Print(
"*");
 
  100   cout << 
"================ TBox QUERY ================ " << endl;
 
  102   cout << 
"================ END of TBox QUERY ================ " << endl;
 
  104   cout << 
"================== TH1I QUERY ================ " << endl;
 
  106   cout << 
"================ END of TH1I QUERY ================ " << endl;
 
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
 
An array of clone (identical) objects.
 
Int_t Write(const char *name=nullptr, Int_t option=0, Int_t bufsize=0) override
Write all objects in this collection.
 
1-D histogram with an int per channel (see TH1 documentation)}
 
TH1 is the base class of all histogram classes in ROOT.
 
virtual void SetDirectory(TDirectory *dir)
By default, when a histogram is created, it is added to the list of histogram objects in the current ...
 
virtual void FillRandom(const char *fname, Int_t ntimes=5000, TRandom *rng=nullptr)
Fill histogram following distribution in function fname.
 
void Draw(Option_t *option="") override
Draw this histogram with options.
 
void Add(TObject *obj) override
 
Mother of all ROOT objects.
 
@ kSingleKey
write collection with single key
 
virtual Int_t Write(const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
 
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
 
Access an SQL db via the TFile interface.