ROOT
6.06/09
Reference Guide
|
Implement TTree for a SQL backend.
Definition at line 43 of file TTreeSQL.h.
Public Member Functions | |
TTreeSQL (TSQLServer *server, TString DB, const TString &table) | |
virtual Int_t | Branch (TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="") |
Not implemented yet. More... | |
virtual Int_t | Branch (TList *list, Int_t bufsize=32000, Int_t splitlevel=99) |
Not implemented yet. More... | |
virtual Int_t | Branch (const char *folder, Int_t bufsize=32000, Int_t splitlevel=99) |
Not implemented yet. More... | |
virtual TBranch * | Bronch (const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=99) |
Not implemented yet. More... | |
virtual TBranch * | BranchOld (const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=1) |
Not implemented yet. More... | |
virtual TBranch * | Branch (const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=99) |
Not implemented yet. More... | |
virtual TBranch * | Branch (const char *name, void *address, const char *leaflist, Int_t bufsize) |
Create a branch. More... | |
virtual Int_t | Fill () |
Copy the information from the user object to the TTree. More... | |
virtual Int_t | GetEntry (Long64_t entry=0, Int_t getall=0) |
Load the data for the entry from the database. More... | |
virtual Long64_t | GetEntries () const |
Get the number of rows in the database. More... | |
virtual Long64_t | GetEntries (const char *sel) |
Return the number of entries matching the selection. More... | |
virtual Long64_t | GetEntriesFast () const |
Return the number of entries as of the last check. More... | |
TString | GetTableName () |
virtual Long64_t | LoadTree (Long64_t entry) |
Setup the tree to the load the specified entry. More... | |
virtual Long64_t | PrepEntry (Long64_t entry) |
Make sure the server and result set are setup for the requested entry. More... | |
void | Refresh () |
Refresh contents of this Tree and its branches from the current Tree status in the database One can call this function in case the Tree on its file is being updated by another process. More... | |
ClassDef (TTreeSQL, 1) | |
Public Member Functions inherited from TTree | |
TTree () | |
Default constructor and I/O constructor. More... | |
TTree (const char *name, const char *title, Int_t splitlevel=99) | |
Normal tree constructor. More... | |
virtual | ~TTree () |
Destructor. More... | |
virtual Int_t | AddBranchToCache (const char *bname, Bool_t subbranches=kFALSE) |
Add branch with name bname to the Tree cache. More... | |
virtual Int_t | AddBranchToCache (TBranch *branch, Bool_t subbranches=kFALSE) |
Add branch b to the Tree cache. More... | |
virtual Int_t | DropBranchFromCache (const char *bname, Bool_t subbranches=kFALSE) |
Remove the branch with name 'bname' from the Tree cache. More... | |
virtual Int_t | DropBranchFromCache (TBranch *branch, Bool_t subbranches=kFALSE) |
Remove the branch b from the Tree cache. More... | |
virtual TFriendElement * | AddFriend (const char *treename, const char *filename="") |
Add a TFriendElement to the list of friends. More... | |
virtual TFriendElement * | AddFriend (const char *treename, TFile *file) |
Add a TFriendElement to the list of friends. More... | |
virtual TFriendElement * | AddFriend (TTree *tree, const char *alias="", Bool_t warn=kFALSE) |
Add a TFriendElement to the list of friends. More... | |
virtual void | AddTotBytes (Int_t tot) |
virtual void | AddZipBytes (Int_t zip) |
virtual Long64_t | AutoSave (Option_t *option="") |
AutoSave tree header every fAutoSave bytes. More... | |
TBranch * | Branch (const char *name, char *address, const char *leaflist, Int_t bufsize=32000) |
TBranch * | Branch (const char *name, Long_t address, const char *leaflist, Int_t bufsize=32000) |
TBranch * | Branch (const char *name, int address, const char *leaflist, Int_t bufsize=32000) |
template<class T > | |
TBranch * | Branch (const char *name, const char *classname, T *obj, Int_t bufsize=32000, Int_t splitlevel=99) |
template<class T > | |
TBranch * | Branch (const char *name, const char *classname, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99) |
template<class T > | |
TBranch * | Branch (const char *name, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99) |
template<class T > | |
TBranch * | Branch (const char *name, T *obj, Int_t bufsize=32000, Int_t splitlevel=99) |
virtual TBranch * | BranchRef () |
Build the optional branch supporting the TRefTable. More... | |
virtual void | Browse (TBrowser *) |
Browse content of the TTree. More... | |
virtual Int_t | BuildIndex (const char *majorname, const char *minorname="0") |
Build a Tree Index (default is TTreeIndex). More... | |
TStreamerInfo * | BuildStreamerInfo (TClass *cl, void *pointer=0, Bool_t canOptimize=kTRUE) |
Build StreamerInfo for class cl. More... | |
virtual TFile * | ChangeFile (TFile *file) |
Called by TTree::Fill() when file has reached its maximum fgMaxTreeSize. More... | |
virtual TTree * | CloneTree (Long64_t nentries=-1, Option_t *option="") |
Create a clone of this tree and copy nentries. More... | |
virtual void | CopyAddresses (TTree *, Bool_t undo=kFALSE) |
Set branch addresses of passed tree equal to ours. More... | |
virtual Long64_t | CopyEntries (TTree *tree, Long64_t nentries=-1, Option_t *option="") |
Copy nentries from given tree to this tree. More... | |
virtual TTree * | CopyTree (const char *selection, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Copy a tree with selection. More... | |
virtual void | DirectoryAutoAdd (TDirectory *) |
Called by TKey and TObject::Clone to automatically add us to a directory when we are read from a file. More... | |
Int_t | Debug () const |
virtual void | Delete (Option_t *option="") |
Delete this tree from memory or/and disk. More... | |
virtual void | Draw (Option_t *opt) |
Default Draw method for all objects. More... | |
virtual Long64_t | Draw (const char *varexp, const TCut &selection, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Draw expression varexp for specified entries. More... | |
virtual Long64_t | Draw (const char *varexp, const char *selection, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Draw expression varexp for specified entries. More... | |
virtual void | DropBaskets () |
Remove some baskets from memory. More... | |
virtual void | DropBuffers (Int_t nbytes) |
Drop branch buffers to accommodate nbytes below MaxVirtualsize. More... | |
virtual TBranch * | FindBranch (const char *name) |
Return the branch that correspond to the path 'branchname', which can include the name of the tree or the omitted name of the parent branches. More... | |
virtual TLeaf * | FindLeaf (const char *name) |
Find leaf.. More... | |
virtual Int_t | Fit (const char *funcname, const char *varexp, const char *selection="", Option_t *option="", Option_t *goption="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Fit a projected item(s) from a tree. More... | |
virtual Int_t | FlushBaskets () const |
Write to disk all the basket that have not yet been individually written. More... | |
virtual const char * | GetAlias (const char *aliasName) const |
Returns the expanded value of the alias. Search in the friends if any. More... | |
virtual Long64_t | GetAutoFlush () const |
virtual Long64_t | GetAutoSave () const |
virtual TBranch * | GetBranch (const char *name) |
Return pointer to the branch with the given name in this tree or its friends. More... | |
virtual TBranchRef * | GetBranchRef () const |
virtual Bool_t | GetBranchStatus (const char *branchname) const |
Return status of branch with name branchname. More... | |
virtual Long64_t | GetCacheSize () const |
virtual TClusterIterator | GetClusterIterator (Long64_t firstentry) |
Return an iterator over the cluster of baskets starting at firstentry. More... | |
virtual Long64_t | GetChainEntryNumber (Long64_t entry) const |
virtual Long64_t | GetChainOffset () const |
TFile * | GetCurrentFile () const |
Return pointer to the current file. More... | |
Int_t | GetDefaultEntryOffsetLen () const |
Long64_t | GetDebugMax () const |
Long64_t | GetDebugMin () const |
TDirectory * | GetDirectory () const |
virtual Long64_t | GetEntriesFriend () const |
Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of friend trees. More... | |
virtual Long64_t | GetEstimate () const |
Int_t | GetEvent (Long64_t entry=0, Int_t getall=0) |
virtual Int_t | GetEntryWithIndex (Int_t major, Int_t minor=0) |
Read entry corresponding to major and minor number. More... | |
virtual Long64_t | GetEntryNumberWithBestIndex (Long64_t major, Long64_t minor=0) const |
Return entry number corresponding to major and minor number. More... | |
virtual Long64_t | GetEntryNumberWithIndex (Long64_t major, Long64_t minor=0) const |
Return entry number corresponding to major and minor number. More... | |
TEventList * | GetEventList () const |
virtual TEntryList * | GetEntryList () |
Returns the entry list, set to this tree. More... | |
virtual Long64_t | GetEntryNumber (Long64_t entry) const |
Return entry number corresponding to entry. More... | |
virtual Int_t | GetFileNumber () const |
virtual TTree * | GetFriend (const char *) const |
Return a pointer to the TTree friend whose name or alias is 'friendname. More... | |
virtual const char * | GetFriendAlias (TTree *) const |
If the 'tree' is a friend, this method returns its alias name. More... | |
TH1 * | GetHistogram () |
virtual Int_t * | GetIndex () |
virtual Double_t * | GetIndexValues () |
virtual TIterator * | GetIteratorOnAllLeaves (Bool_t dir=kIterForward) |
Creates a new iterator that will go through all the leaves on the tree itself and its friend. More... | |
virtual TLeaf * | GetLeaf (const char *branchname, const char *leafname) |
Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of friend trees. More... | |
virtual TLeaf * | GetLeaf (const char *name) |
Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of friend trees. More... | |
virtual TList * | GetListOfClones () |
virtual TObjArray * | GetListOfBranches () |
virtual TObjArray * | GetListOfLeaves () |
virtual TList * | GetListOfFriends () const |
virtual TList * | GetListOfAliases () const |
Int_t | GetMakeClass () const |
virtual Long64_t | GetMaxEntryLoop () const |
virtual Double_t | GetMaximum (const char *columname) |
Return maximum of column with name columname. More... | |
virtual Long64_t | GetMaxVirtualSize () const |
virtual Double_t | GetMinimum (const char *columname) |
Return minimum of column with name columname. More... | |
virtual Int_t | GetNbranches () |
TObject * | GetNotify () const |
TVirtualTreePlayer * | GetPlayer () |
Load the TTreePlayer (if not already done). More... | |
virtual Int_t | GetPacketSize () const |
virtual TVirtualPerfStats * | GetPerfStats () const |
virtual Long64_t | GetReadEntry () const |
virtual Long64_t | GetReadEvent () const |
virtual Int_t | GetScanField () const |
TTreeFormula * | GetSelect () |
virtual Long64_t | GetSelectedRows () |
virtual Int_t | GetTimerInterval () const |
TBuffer * | GetTransientBuffer (Int_t size) |
Returns the transient buffer currently used by this TTree for reading/writing baskets. More... | |
virtual Long64_t | GetTotBytes () const |
virtual TTree * | GetTree () const |
virtual TVirtualIndex * | GetTreeIndex () const |
virtual Int_t | GetTreeNumber () const |
virtual Int_t | GetUpdate () const |
virtual TList * | GetUserInfo () |
Return a pointer to the list containing user objects associated to this tree. More... | |
TTreeFormula * | GetVar (Int_t i) |
TTreeFormula * | GetVar1 () |
TTreeFormula * | GetVar2 () |
TTreeFormula * | GetVar3 () |
TTreeFormula * | GetVar4 () |
virtual Double_t * | GetVal (Int_t i) |
virtual Double_t * | GetV1 () |
virtual Double_t * | GetV2 () |
virtual Double_t * | GetV3 () |
virtual Double_t * | GetV4 () |
virtual Double_t * | GetW () |
virtual Double_t | GetWeight () const |
virtual Long64_t | GetZipBytes () const |
virtual void | IncrementTotalBuffers (Int_t nbytes) |
Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
virtual Int_t | LoadBaskets (Long64_t maxmemory=2000000000) |
Read in memory all baskets from all branches up to the limit of maxmemory bytes. More... | |
virtual Long64_t | LoadTreeFriend (Long64_t entry, TTree *T) |
Load entry on behalf of our master tree, we may use an index. More... | |
virtual Int_t | MakeClass (const char *classname=0, Option_t *option="") |
Generate a skeleton analysis class for this tree. More... | |
virtual Int_t | MakeCode (const char *filename=0) |
Generate a skeleton function for this tree. More... | |
virtual Int_t | MakeProxy (const char *classname, const char *macrofilename=0, const char *cutfilename=0, const char *option=0, Int_t maxUnrolling=3) |
Generate a skeleton analysis class for this Tree using TBranchProxy. More... | |
virtual Int_t | MakeSelector (const char *selector=0, Option_t *option="") |
Generate skeleton selector class for this tree. More... | |
Bool_t | MemoryFull (Int_t nbytes) |
Check if adding nbytes to memory we are still below MaxVirtualsize. More... | |
virtual Long64_t | Merge (TCollection *list, Option_t *option="") |
Merge the trees in the TList into this tree. More... | |
virtual Long64_t | Merge (TCollection *list, TFileMergeInfo *info) |
Merge the trees in the TList into this tree. More... | |
virtual Bool_t | Notify () |
Function called when loading a new class library. More... | |
virtual void | OptimizeBaskets (ULong64_t maxMemory=10000000, Float_t minComp=1.1, Option_t *option="") |
This function may be called after having filled some entries in a Tree Using the information in the existing branch buffers, it will reassign new branch buffer sizes to optimize time and memory. More... | |
TPrincipal * | Principal (const char *varexp="", const char *selection="", Option_t *option="np", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Interface to the Principal Components Analysis class. More... | |
virtual void | Print (Option_t *option="") const |
Print a summary of the tree contents. More... | |
virtual void | PrintCacheStats (Option_t *option="") const |
print statistics about the TreeCache for this tree, like ******TreeCache statistics for file: cms2.root ******
Reading 73921562 bytes in 716 transactions
Average transaction = 103.242405 Kbytes
Number of blocks in current cache: 202, total size : 6001193
if option = "a" the list of blocks in the cache is printed More... | |
virtual Long64_t | Process (const char *filename, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Process this tree executing the TSelector code in the specified filename. More... | |
virtual Long64_t | Process (TSelector *selector, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Process this tree executing the code in the specified selector. More... | |
virtual Long64_t | Project (const char *hname, const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Make a projection of a tree using selections. More... | |
virtual TSQLResult * | Query (const char *varexp="", const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Loop over entries and return a TSQLResult object containing entries following selection. More... | |
virtual Long64_t | ReadFile (const char *filename, const char *branchDescriptor="", char delimiter= ' ') |
Create or simply read branches from filename. More... | |
virtual Long64_t | ReadStream (std::istream &inputStream, const char *branchDescriptor="", char delimiter= ' ') |
Create or simply read branches from an input stream. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Make sure that obj (which is being deleted or will soon be) is no longer referenced by this TTree. More... | |
virtual void | RemoveFriend (TTree *) |
Remove a friend from the list of friends. More... | |
virtual void | Reset (Option_t *option="") |
Reset baskets, buffers and entries count in all branches and leaves. More... | |
virtual void | ResetAfterMerge (TFileMergeInfo *) |
Resets the state of this TTree after a merge (keep the customization but forget the data). More... | |
virtual void | ResetBranchAddress (TBranch *) |
Tell all of our branches to set their addresses to zero. More... | |
virtual void | ResetBranchAddresses () |
Tell all of our branches to drop their current objects and allocate new ones. More... | |
virtual Long64_t | Scan (const char *varexp="", const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Loop over tree entries and print entries passing selection. More... | |
virtual Bool_t | SetAlias (const char *aliasName, const char *aliasFormula) |
Set a tree variable alias. More... | |
virtual void | SetAutoSave (Long64_t autos=-300000000) |
This function may be called at the start of a program to change the default value for fAutoSave (and for SetAutoSave) is -300000000, ie 300 MBytes When filling the Tree the branch buffers as well as the Tree header will be flushed to disk when the watermark is reached. More... | |
virtual void | SetAutoFlush (Long64_t autof=-30000000) |
This function may be called at the start of a program to change the default value for fAutoFlush. More... | |
virtual void | SetBasketSize (const char *bname, Int_t buffsize=16000) |
Set a branch's basket size. More... | |
virtual Int_t | SetBranchAddress (const char *bname, void *add, TBranch **ptr=0) |
Change branch address, dealing with clone trees properly. More... | |
virtual Int_t | SetBranchAddress (const char *bname, void *add, TClass *realClass, EDataType datatype, Bool_t isptr) |
Verify the validity of the type of addr before calling SetBranchAddress. More... | |
virtual Int_t | SetBranchAddress (const char *bname, void *add, TBranch **ptr, TClass *realClass, EDataType datatype, Bool_t isptr) |
Verify the validity of the type of addr before calling SetBranchAddress. More... | |
template<class T > | |
Int_t | SetBranchAddress (const char *bname, T **add, TBranch **ptr=0) |
template<class T > | |
Int_t | SetBranchAddress (const char *bname, T *add, TBranch **ptr=0) |
virtual void | SetBranchStatus (const char *bname, Bool_t status=1, UInt_t *found=0) |
Set branch status to Process or DoNotProcess. More... | |
virtual Int_t | SetCacheSize (Long64_t cachesize=-1) |
Set maximum size of the file cache . More... | |
virtual Int_t | SetCacheEntryRange (Long64_t first, Long64_t last) |
interface to TTreeCache to set the cache entry range More... | |
virtual void | SetCacheLearnEntries (Int_t n=10) |
Interface to TTreeCache to set the number of entries for the learning phase. More... | |
virtual void | SetChainOffset (Long64_t offset=0) |
virtual void | SetCircular (Long64_t maxEntries) |
Enable/Disable circularity for this tree. More... | |
virtual void | SetDebug (Int_t level=1, Long64_t min=0, Long64_t max=9999999) |
Set the debug level and the debug range. More... | |
virtual void | SetDefaultEntryOffsetLen (Int_t newdefault, Bool_t updateExisting=kFALSE) |
Update the default value for the branch's fEntryOffsetLen. More... | |
virtual void | SetDirectory (TDirectory *dir) |
Change the tree's directory. More... | |
virtual Long64_t | SetEntries (Long64_t n=-1) |
Change number of entries in the tree. More... | |
virtual void | SetEstimate (Long64_t nentries=1000000) |
Set number of entries to estimate variable limits. More... | |
virtual void | SetFileNumber (Int_t number=0) |
Set fFileNumber to number. More... | |
virtual void | SetEventList (TEventList *list) |
This function transfroms the given TEventList into a TEntryList The new TEntryList is owned by the TTree and gets deleted when the tree is deleted. More... | |
virtual void | SetEntryList (TEntryList *list, Option_t *opt="") |
Set an EntryList. More... | |
virtual void | SetMakeClass (Int_t make) |
Set all the branches in this TTree to be in decomposed object mode (also known as MakeClass mode). More... | |
virtual void | SetMaxEntryLoop (Long64_t maxev=kMaxEntries) |
virtual void | SetMaxVirtualSize (Long64_t size=0) |
virtual void | SetName (const char *name) |
Change the name of this tree. More... | |
virtual void | SetNotify (TObject *obj) |
virtual void | SetObject (const char *name, const char *title) |
Change the name and title of this tree. More... | |
virtual void | SetParallelUnzip (Bool_t opt=kTRUE, Float_t RelSize=-1) |
Enable or disable parallel unzipping of Tree buffers. More... | |
virtual void | SetPerfStats (TVirtualPerfStats *perf) |
Set perf stats. More... | |
virtual void | SetScanField (Int_t n=50) |
virtual void | SetTimerInterval (Int_t msec=333) |
virtual void | SetTreeIndex (TVirtualIndex *index) |
The current TreeIndex is replaced by the new index. More... | |
virtual void | SetWeight (Double_t w=1, Option_t *option="") |
Set tree weight. More... | |
virtual void | SetUpdate (Int_t freq=0) |
virtual void | Show (Long64_t entry=-1, Int_t lenmax=20) |
Print values of all active leaves for entry. More... | |
virtual void | StartViewer () |
Start the TTreeViewer on this tree. More... | |
virtual Int_t | StopCacheLearningPhase () |
Stop the cache learning phase. More... | |
virtual Int_t | UnbinnedFit (const char *funcname, const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) |
Unbinned fit of one or more variable(s) from a tree. More... | |
void | UseCurrentStyle () |
Replace current attributes by current style. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TString &name, const TString &title) | |
TNamed (const TNamed &named) | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. More... | |
virtual | ~TNamed () |
virtual void | Clear (Option_t *option="") |
Set name and title to empty strings (""). More... | |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare two TNamed objects. More... | |
virtual void | Copy (TObject &named) const |
Copy this to obj. More... | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
virtual Bool_t | IsSortable () const |
virtual void | SetNameTitle (const char *name, const char *title) |
Change (i.e. set) all the TNamed parameters (name and title). More... | |
virtual void | SetTitle (const char *title="") |
Change (i.e. set) the title of the TNamed. More... | |
virtual void | ls (Option_t *option="") const |
List TNamed name and title. More... | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. More... | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current pad. More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual Option_t * | GetOption () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
Bool_t | IsOnHeap () const |
Bool_t | IsZombie () const |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
void * | operator new (size_t sz) |
void * | operator new[] (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz, void *vp) |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
void | SetBit (UInt_t f) |
void | ResetBit (UInt_t f) |
Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
void | InvertBit (UInt_t f) |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
Public Member Functions inherited from TAttLine | |
TAttLine () | |
AttLine default constructor. More... | |
TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth) | |
AttLine normal constructor. More... | |
virtual | ~TAttLine () |
AttLine destructor. More... | |
void | Copy (TAttLine &attline) const |
Copy this line attributes to a new TAttLine. More... | |
Int_t | DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2) |
Compute distance from point px,py to a line. More... | |
virtual Color_t | GetLineColor () const |
virtual Style_t | GetLineStyle () const |
virtual Width_t | GetLineWidth () const |
virtual void | Modify () |
Change current line attributes if necessary. More... | |
virtual void | ResetAttLine (Option_t *option="") |
Reset this line attributes to default values. More... | |
virtual void | SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1) |
Save line attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetLineAttributes () |
Invoke the DialogCanvas Line attributes. More... | |
virtual void | SetLineColor (Color_t lcolor) |
virtual void | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
Set a transparent line color. More... | |
virtual void | SetLineStyle (Style_t lstyle) |
virtual void | SetLineWidth (Width_t lwidth) |
ClassDef (TAttLine, 2) | |
Public Member Functions inherited from TAttFill | |
TAttFill () | |
TAttFill (Color_t fcolor, Style_t fstyle) | |
AttFill normal constructor. More... | |
virtual | ~TAttFill () |
AttFill destructor. More... | |
void | Copy (TAttFill &attfill) const |
Copy this fill attributes to a new TAttFill. More... | |
virtual Color_t | GetFillColor () const |
virtual Style_t | GetFillStyle () const |
virtual Bool_t | IsTransparent () const |
virtual void | Modify () |
Change current fill area attributes if necessary. More... | |
virtual void | ResetAttFill (Option_t *option="") |
Reset this fill attributes to default values. More... | |
virtual void | SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001) |
Save fill attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetFillAttributes () |
Invoke the DialogCanvas Fill attributes. More... | |
virtual void | SetFillColor (Color_t fcolor) |
virtual void | SetFillColorAlpha (Color_t fcolor, Float_t falpha) |
Set a transparent fill color. More... | |
virtual void | SetFillStyle (Style_t fstyle) |
Public Member Functions inherited from TAttMarker | |
TAttMarker () | |
TAttMarker (Color_t color, Style_t style, Size_t msize) | |
TAttMarker normal constructor. More... | |
virtual | ~TAttMarker () |
TAttMarker destructor. More... | |
void | Copy (TAttMarker &attmarker) const |
Copy this marker attributes to a new TAttMarker. More... | |
virtual Color_t | GetMarkerColor () const |
virtual Style_t | GetMarkerStyle () const |
virtual Size_t | GetMarkerSize () const |
virtual void | Modify () |
Change current marker attributes if necessary. More... | |
virtual void | ResetAttMarker (Option_t *toption="") |
Reset this marker attributes to the default values. More... | |
virtual void | SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1) |
Save line attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetMarkerAttributes () |
Invoke the DialogCanvas Marker attributes. More... | |
virtual void | SetMarkerColor (Color_t mcolor=1) |
virtual void | SetMarkerColorAlpha (Color_t mcolor, Float_t malpha) |
Set a transparent marker color. More... | |
virtual void | SetMarkerStyle (Style_t mstyle=1) |
virtual void | SetMarkerSize (Size_t msize=1) |
ClassDef (TAttMarker, 2) | |
Protected Member Functions | |
void | CheckBasket (TBranch *tb) |
Check if the basket is properly setup. More... | |
Bool_t | CheckBranch (TBranch *tb) |
Check if the table has a column corresponding the branch and that the resultset are properly setup. More... | |
Bool_t | CheckTable (const TString &table) const |
Check the table exist in the database. More... | |
TString | CreateBranches (TSQLResult *rs) |
determine leaf description string More... | |
std::vector< Int_t > * | GetColumnIndice (TBranch *branch) |
Return a vector of columns index corresponding to the current SQL table and the branch given as argument Returns 0 if no columns indices is found Otherwise returns a pointer to a vector to be deleted by the caller. More... | |
void | Init () |
Initializeation routine. More... | |
void | ResetQuery () |
Reset the internal query. More... | |
TString | ConvertTypeName (const TString &typeName) |
Convert from ROOT typename to SQL typename. More... | |
virtual void | CreateBranch (const TString &branchName, const TString &typeName) |
Create the column(s) in the database that correspond to the branch/. More... | |
Bool_t | CreateTable (const TString &table) |
Create the database table corresponding to this TTree. More... | |
virtual TBasket * | CreateBasket (TBranch *br) |
Create a TBasketSQL. More... | |
virtual TBranch * | BranchImp (const char *branchname, const char *classname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel) |
Not implemented yet. More... | |
virtual TBranch * | BranchImp (const char *branchname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel) |
Not implemented yet. More... | |
Protected Member Functions inherited from TTree | |
void | AddClone (TTree *) |
Add a cloned tree to our list of trees to be notified whenever we change our branch addresses or when we are deleted. More... | |
virtual void | KeepCircular () |
Keep a maximum of fMaxEntries in memory. More... | |
virtual TBranch * | BranchImpRef (const char *branchname, const char *classname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel) |
Same as TTree::Branch but automatic detection of the class name. More... | |
virtual TBranch * | BranchImpRef (const char *branchname, TClass *ptrClass, EDataType datatype, void *addobj, Int_t bufsize, Int_t splitlevel) |
Same as TTree::Branch but automatic detection of the class name. More... | |
virtual Int_t | CheckBranchAddressType (TBranch *branch, TClass *ptrClass, EDataType datatype, Bool_t ptr) |
Check whether or not the address described by the last 3 parameters matches the content of the branch. More... | |
virtual TBranch * | BronchExec (const char *name, const char *classname, void *addobj, Bool_t isptrptr, Int_t bufsize, Int_t splitlevel) |
Helper function implementing TTree::Bronch and TTree::Branch(const char *name, T &obj);. More... | |
Int_t | SetBranchAddressImp (TBranch *branch, void *addr, TBranch **ptr) |
Change branch address, dealing with clone trees properly. More... | |
virtual TLeaf * | GetLeafImpl (const char *branchname, const char *leafname) |
Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of friend trees. More... | |
Long64_t | GetCacheAutoSize (Bool_t withDefault=kFALSE) const |
Used for automatic sizing of the cache. More... | |
char | GetNewlineValue (std::istream &inputStream) |
Determine which newline this file is using. More... | |
TTreeCache * | GetReadCache (TFile *file, Bool_t create=kFALSE) |
Find and return the TTreeCache registered with the file and which may contain branches for us. More... | |
void | ImportClusterRanges (TTree *fromtree) |
Appends the cluster range information stored in 'fromtree' to this tree, including the value of fAutoFlush. More... | |
void | MoveReadCache (TFile *src, TDirectory *dir) |
Move a cache from a file to the current file in dir. More... | |
Int_t | SetCacheSizeAux (Bool_t autocache=kTRUE, Long64_t cacheSize=0) |
Set the size of the file cache and create it if possible. More... | |
Protected Member Functions inherited from TObject | |
void | MakeZombie () |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
Additional Inherited Members | |
Public Types inherited from TTree | |
enum | ESetBranchAddressStatus { kMissingBranch = -5, kInternalError = -4, kMissingCompiledCollectionProxy = -3, kMismatch = -2, kClassMismatch = -1, kMatch = 0, kMatchConversion = 1, kMatchConversionCollection = 2, kMakeClass = 3, kVoidPtr = 4, kNoCheck = 5 } |
enum | { kForceRead = BIT(11), kCircular = BIT(12) } |
enum | { kSplitCollectionOfPointers = 100 } |
Public Types inherited from TObject | |
enum | EStatusBits { kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13) } |
enum | { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) } |
Static Public Member Functions inherited from TTree | |
static Int_t | GetBranchStyle () |
Static function returning the current branch style. More... | |
static Long64_t | GetMaxTreeSize () |
Static function which returns the tree file size limit in bytes. More... | |
static TTree * | MergeTrees (TList *list, Option_t *option="") |
Static function merging the trees in the TList into a new tree. More... | |
static void | SetBranchStyle (Int_t style=1) |
Set the current branch style. More... | |
static void | SetMaxTreeSize (Long64_t maxsize=1900000000) |
Set the maximum size in bytes of a Tree file (static function). More... | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Static Public Attributes inherited from TTree | |
static constexpr Long64_t | kMaxEntries = TVirtualTreePlayer::kMaxEntries |
Protected Types inherited from TTree | |
enum | ELockStatusBits { kFindBranch = BIT(0), kFindLeaf = BIT(1), kGetAlias = BIT(2), kGetBranch = BIT(3), kGetEntry = BIT(4), kGetEntryWithIndex = BIT(5), kGetFriend = BIT(6), kGetFriendAlias = BIT(7), kGetLeaf = BIT(8), kLoadTree = BIT(9), kPrint = BIT(10), kRemoveFriend = BIT(11), kSetBranchStatus = BIT(12) } |
Static Protected Attributes inherited from TTree | |
static Int_t | fgBranchStyle = 1 |
true if the cache setting was explicitly given by user More... | |
static Long64_t | fgMaxTreeSize = 100000000000LL |
#include <TTreeSQL.h>
TTreeSQL::TTreeSQL | ( | TSQLServer * | server, |
TString | DB, | ||
const TString & | table | ||
) |
|
virtual |
Check if the basket is properly setup.
Definition at line 176 of file TTreeSQL.cxx.
Referenced by Fill().
Check if the table has a column corresponding the branch and that the resultset are properly setup.
Definition at line 204 of file TTreeSQL.cxx.
Referenced by Fill().
Check the table exist in the database.
Definition at line 252 of file TTreeSQL.cxx.
Referenced by Fill(), GetColumnIndice(), and GetEntries().
TTreeSQL::ClassDef | ( | TTreeSQL | , |
1 | |||
) |
Convert from ROOT typename to SQL typename.
Definition at line 279 of file TTreeSQL.cxx.
Referenced by CheckBranch(), and CreateTable().
Create a TBasketSQL.
Reimplemented from TTree.
Definition at line 336 of file TTreeSQL.cxx.
Referenced by CheckBasket(), and CreateBranches().
|
protectedvirtual |
Create the column(s) in the database that correspond to the branch/.
Definition at line 354 of file TTreeSQL.cxx.
Referenced by CheckBranch(), and CreateTable().
|
protected |
determine leaf description string
Definition at line 376 of file TTreeSQL.cxx.
Referenced by Init().
Create the database table corresponding to this TTree.
Definition at line 483 of file TTreeSQL.cxx.
Referenced by Fill().
|
virtual |
Copy the information from the user object to the TTree.
Reimplemented from TTree.
Definition at line 561 of file TTreeSQL.cxx.
Return a vector of columns index corresponding to the current SQL table and the branch given as argument Returns 0 if no columns indices is found Otherwise returns a pointer to a vector to be deleted by the caller.
Definition at line 613 of file TTreeSQL.cxx.
Referenced by CheckBasket(), and CreateBasket().
|
virtual |
Get the number of rows in the database.
Reimplemented from TTree.
Definition at line 675 of file TTreeSQL.cxx.
|
inlinevirtual |
Return the number of entries matching the selection.
Return -1 in case of errors.
If the selection uses any arrays or containers, we return the number of entries where at least one element match the selection. GetEntries is implemented using the selector class TSelectorEntries, which can be used directly (see code in TTreePlayer::GetEntries) for additional option. If SetEventList was used on the TTree or TChain, only that subset of entries will be considered.
Reimplemented from TTree.
Definition at line 88 of file TTreeSQL.h.
|
virtual |
Return the number of entries as of the last check.
Use GetEntries for a more accurate count.
Reimplemented from TTree.
Definition at line 708 of file TTreeSQL.cxx.
Referenced by GetEntries().
Load the data for the entry from the database.
Reimplemented from TTree.
Definition at line 716 of file TTreeSQL.cxx.
|
inline |
Definition at line 90 of file TTreeSQL.h.
Initializeation routine.
Definition at line 545 of file TTreeSQL.cxx.
Setup the tree to the load the specified entry.
Reimplemented from TTree.
Definition at line 725 of file TTreeSQL.cxx.
Make sure the server and result set are setup for the requested entry.
Definition at line 734 of file TTreeSQL.cxx.
Referenced by Fill(), GetEntry(), and LoadTree().
|
virtual |
Refresh contents of this Tree and its branches from the current Tree status in the database One can call this function in case the Tree on its file is being updated by another process.
Reimplemented from TTree.
Definition at line 783 of file TTreeSQL.cxx.
|
protected |
|
protected |
Definition at line 54 of file TTreeSQL.h.
Referenced by Fill().
|
protected |
Definition at line 46 of file TTreeSQL.h.
Referenced by Init(), PrepEntry(), and Refresh().
|
protected |
Definition at line 47 of file TTreeSQL.h.
Referenced by CheckTable(), GetColumnIndice(), and Init().
|
protected |
Definition at line 48 of file TTreeSQL.h.
Referenced by CreateBasket(), Fill(), and ResetQuery().
|
protected |
Definition at line 49 of file TTreeSQL.h.
Referenced by CreateTable(), Init(), and PrepEntry().
|
protected |
Definition at line 51 of file TTreeSQL.h.
Referenced by CheckBasket(), CreateBasket(), CreateTable(), Init(), PrepEntry(), and Refresh().
|
protected |
Definition at line 52 of file TTreeSQL.h.
Referenced by CreateBasket(), PrepEntry(), and Refresh().
|
protected |
Definition at line 53 of file TTreeSQL.h.
Referenced by CheckBranch(), CheckTable(), CreateBasket(), CreateBranch(), CreateTable(), Fill(), GetColumnIndice(), GetEntries(), Init(), and PrepEntry().
|
protected |
Definition at line 50 of file TTreeSQL.h.
Referenced by CreateBranch(), Fill(), GetColumnIndice(), GetEntries(), GetTableName(), Init(), and ResetQuery().