Skip to content
Snippets Groups Projects
Commit 3a0862e7 authored by Olivier Couet's avatar Olivier Couet
Browse files

No need to use the hack 'goff para'. `goff` is enough.

parent 82be51ac
Branches
Tags
No related merge requests found
...@@ -116,6 +116,8 @@ Add a new mode for `TClass::SetCanSplit` (2) which indicates that this class and ...@@ -116,6 +116,8 @@ Add a new mode for `TClass::SetCanSplit` (2) which indicates that this class and
* Do not automatically setup read cache during TTree::Fill(). This fixes [ROOT-8031]. * Do not automatically setup read cache during TTree::Fill(). This fixes [ROOT-8031].
* Make sure the option "PARA" in TTRe::Draw is used with at least tow variables [ROOT-8196]. * Make sure the option "PARA" in TTRe::Draw is used with at least tow variables [ROOT-8196].
* The with `goff` option one can use as many variables as needed. There no more
limitation, like with the options `para`and `candle`.
### Fast Cloning ### Fast Cloning
...@@ -291,6 +293,7 @@ We added a cache specifically for the fast option of the TTreeCloner to signific ...@@ -291,6 +293,7 @@ We added a cache specifically for the fast option of the TTreeCloner to signific
## Tutorials ## Tutorials
* New tutorial `treegetval.C` illustrating how to retrieve `TTree` variables in arrays.
## Class Reference Guide ## Class Reference Guide
......
...@@ -106,9 +106,8 @@ Long64_t TEvePointSelector::Select(const char* selection) ...@@ -106,9 +106,8 @@ Long64_t TEvePointSelector::Select(const char* selection)
if (fConsumer) if (fConsumer)
fConsumer->InitFill(fSubIdNum); fConsumer->InitFill(fSubIdNum);
// 'para' option -> hack allowing arbitrary dimensions. if (fTree)
if(fTree) fTree->Process(this, "goff");
fTree->Process(this, "goff para");
return fSelectedRows; return fSelectedRows;
} }
......
...@@ -274,7 +274,7 @@ void TParallelCoord::ApplySelectionToTree() ...@@ -274,7 +274,7 @@ void TParallelCoord::ApplySelectionToTree()
while ((var = (TParallelCoordVar*)next())) varexp.Append(Form(":%s",var->GetTitle())); while ((var = (TParallelCoordVar*)next())) varexp.Append(Form(":%s",var->GetTitle()));
varexp.Remove(TString::kLeading,':'); varexp.Remove(TString::kLeading,':');
TSelectorDraw* selector = (TSelectorDraw*)((TTreePlayer*)fTree->GetPlayer())->GetSelector(); TSelectorDraw* selector = (TSelectorDraw*)((TTreePlayer*)fTree->GetPlayer())->GetSelector();
fTree->Draw(varexp.Data(),"","goff para"); fTree->Draw(varexp.Data(),"","goff");
next.Reset(); next.Reset();
Int_t i = 0; Int_t i = 0;
while ((var = (TParallelCoordVar*)next())) { while ((var = (TParallelCoordVar*)next())) {
...@@ -553,7 +553,7 @@ TTree* TParallelCoord::GetTree() ...@@ -553,7 +553,7 @@ TTree* TParallelCoord::GetTree()
TParallelCoordVar* var; TParallelCoordVar* var;
while ((var = (TParallelCoordVar*)next())) varexp.Append(Form(":%s",var->GetTitle())); while ((var = (TParallelCoordVar*)next())) varexp.Append(Form(":%s",var->GetTitle()));
varexp.Remove(TString::kLeading,':'); varexp.Remove(TString::kLeading,':');
fTree->Draw(varexp.Data(),"","goff para"); fTree->Draw(varexp.Data(),"","goff");
TSelectorDraw* selector = (TSelectorDraw*)((TTreePlayer*)fTree->GetPlayer())->GetSelector(); TSelectorDraw* selector = (TSelectorDraw*)((TTreePlayer*)fTree->GetPlayer())->GetSelector();
next.Reset(); next.Reset();
Int_t i = 0; Int_t i = 0;
...@@ -769,7 +769,7 @@ void TParallelCoord::ResetTree() ...@@ -769,7 +769,7 @@ void TParallelCoord::ResetTree()
TParallelCoordVar* var; TParallelCoordVar* var;
while ((var = (TParallelCoordVar*)next())) varexp.Append(Form(":%s",var->GetTitle())); while ((var = (TParallelCoordVar*)next())) varexp.Append(Form(":%s",var->GetTitle()));
varexp.Remove(TString::kLeading,':'); varexp.Remove(TString::kLeading,':');
fTree->Draw(varexp.Data(),"","goff para"); fTree->Draw(varexp.Data(),"","goff");
next.Reset(); next.Reset();
TSelectorDraw* selector = (TSelectorDraw*)((TTreePlayer*)fTree->GetPlayer())->GetSelector(); TSelectorDraw* selector = (TSelectorDraw*)((TTreePlayer*)fTree->GetPlayer())->GetSelector();
Int_t i = 0; Int_t i = 0;
...@@ -845,7 +845,7 @@ void TParallelCoord::SavePrimitive(std::ostream & out, Option_t* options) ...@@ -845,7 +845,7 @@ void TParallelCoord::SavePrimitive(std::ostream & out, Option_t* options)
TString varexp = ""; TString varexp = "";
while ((var = (TParallelCoordVar*)nextbis())) varexp.Append(Form(":%s",var->GetTitle())); while ((var = (TParallelCoordVar*)nextbis())) varexp.Append(Form(":%s",var->GetTitle()));
varexp.Remove(TString::kLeading,':'); varexp.Remove(TString::kLeading,':');
out<<" tree->Draw(\""<<varexp.Data()<<"\",\"\",\"goff para\");"<<std::endl; out<<" tree->Draw(\""<<varexp.Data()<<"\",\"\",\"goff\");"<<std::endl;
out<<" TSelectorDraw* selector = (TSelectorDraw*)((TTreePlayer*)tree->GetPlayer())->GetSelector();"<<std::endl; out<<" TSelectorDraw* selector = (TSelectorDraw*)((TTreePlayer*)tree->GetPlayer())->GetSelector();"<<std::endl;
nextbis.Reset(); nextbis.Reset();
Int_t i=0; Int_t i=0;
......
...@@ -214,7 +214,7 @@ void rs101_limitexample() ...@@ -214,7 +214,7 @@ void rs101_limitexample()
// getting the tree and drawing it -crashes (very strange....); // getting the tree and drawing it -crashes (very strange....);
// TTree* parameterScan = RooStats::GetAsTTree("parScanTreeData","parScanTreeData",*parScanData); // TTree* parameterScan = RooStats::GetAsTTree("parScanTreeData","parScanTreeData",*parScanData);
// assert(parameterScan); // assert(parameterScan);
// parameterScan->Draw("s:ratioSigEff:ratioBkgEff","","candle goff"); // parameterScan->Draw("s:ratioSigEff:ratioBkgEff","","goff");
TGraph2D *gr = new TGraph2D(parScanData->numEntries()); TGraph2D *gr = new TGraph2D(parScanData->numEntries());
for (int ievt = 0; ievt < parScanData->numEntries(); ++ievt) { for (int ievt = 0; ievt < parScanData->numEntries(); ++ievt) {
const RooArgSet * evt = parScanData->get(ievt); const RooArgSet * evt = parScanData->get(ievt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment