An error occurred while fetching merge requests data.
From Philippe:
The following patch implements TTree variable alias. To use them: mytree->SetAlias("mult","fPx*fPy"); mytree->Draw("mult"); Note that the aliases have been added to the TTree object so that they can be persistent (with the tree) if you choose. Also note that the alias are not checked for validity until they are used in a Draw or Scan command. Existing alias are silently replaced. The new functions are: TTree::SetAlias TTree::GetAlias TChain::GetAlias TTree::GetListOfAliases This patch also adds operator= for TFormula, TF1, TF2, TF3 (it calls the respective Copy member functions). It makes TTreeFormula::operator= private (Copy has not been implemented yet). Also some of the TFormula and TTreeFormula codes (those stored in fOper) has been aliased to enums (this renders the code is little bit more readable and searchable). TFormula and TTreeFormula have been updated to handle strings in a more flexible (and for TTreeFormula to be able to return them). git-svn-id: http://root.cern.ch/svn/root/trunk@6805 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- hist/inc/TF1.h 2 additions, 1 deletionhist/inc/TF1.h
- hist/inc/TF2.h 2 additions, 1 deletionhist/inc/TF2.h
- hist/inc/TF3.h 2 additions, 1 deletionhist/inc/TF3.h
- hist/inc/TFormula.h 6 additions, 4 deletionshist/inc/TFormula.h
- hist/src/TF1.cxx 10 additions, 1 deletionhist/src/TF1.cxx
- hist/src/TF2.cxx 10 additions, 1 deletionhist/src/TF2.cxx
- hist/src/TF3.cxx 10 additions, 1 deletionhist/src/TF3.cxx
- hist/src/TFormula.cxx 61 additions, 45 deletionshist/src/TFormula.cxx
- test/dt_DrawTest.C 4 additions, 0 deletionstest/dt_DrawTest.C
- test/dt_MakeRef.C 7 additions, 1 deletiontest/dt_MakeRef.C
- tree/inc/TChain.h 2 additions, 1 deletiontree/inc/TChain.h
- tree/inc/TTree.h 6 additions, 2 deletionstree/inc/TTree.h
- tree/src/TChain.cxx 14 additions, 1 deletiontree/src/TChain.cxx
- tree/src/TTree.cxx 89 additions, 1 deletiontree/src/TTree.cxx
- treeplayer/inc/TTreeFormula.h 34 additions, 20 deletionstreeplayer/inc/TTreeFormula.h
- treeplayer/src/TTreeFormula.cxx 249 additions, 92 deletionstreeplayer/src/TTreeFormula.cxx
- treeplayer/src/TTreeFormulaManager.cxx 1 addition, 2 deletionstreeplayer/src/TTreeFormulaManager.cxx
Loading
Please register or sign in to comment