14 const char* dbname =
"mysql://host.domain/test";
15 const char* username =
"user";
16 const char* userpass =
"pass";
46 TH1I*
h1 =
new TH1I(
"histo1",
"histo title", 1000, -4., 4.);
56 arr->
Add(b,
Form(
"option_%d_option",
n));
63 new (clones[
n])
TBox(n*10,n*100,n*20,n*200);
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;
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
THist< 1, int, THistStatContent > TH1I
virtual void SetDirectory(TDirectory *dir)
By default when an histogram is created, it is added to the list of histogram objects in the current ...
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
R__ALWAYS_INLINE Bool_t IsZombie() const
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
Access an SQL db via the TFile interface.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
write collection with single key
1-D histogram with an int per channel (see TH1 documentation)}
char * Form(const char *fmt,...)
void SetUseIndexes(Int_t use_type=kIndexesBasic)
Specify usage of indexes for data tables Index Description kIndexesNone = 0 no indexes are used kInd...
TString MakeSelectQuery(TClass *cl)
Produce SELECT statement which can be used to get all data of class cl in one SELECT statement...
void SetArrayLimit(Int_t limit=20)
Defines maximum number of columns for array representation If array size bigger than limit...
Mother of all ROOT objects.
An array of clone (identical) objects.
virtual void Add(TObject *obj)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
void SetUseSuffixes(Bool_t on=kTRUE)
enable/disable uasge of suffixes in columns names can be changed before first object is saved into fi...
virtual void ls(Option_t *option="") const
List file contents.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write all objects in this collection.