Skip to content
Snippets Groups Projects
Commit 5a4bd2cd authored by Rene Brun's avatar Rene Brun
Browse files

Always draw the histogram in case of a custom histogram (>>myhisto used)

and the number of selected rows is null.


git-svn-id: http://root.cern.ch/svn/root/trunk@8181 27541ba8-7e3a-0410-8455-c3a389f83636
parent 7b09cb93
Branches
Tags
No related merge requests found
// @(#)root/treeplayer:$Name: $:$Id: TSelectorDraw.cxx,v 1.22 2003/12/13 09:25:56 brun Exp $ // @(#)root/treeplayer:$Name: $:$Id: TSelectorDraw.cxx,v 1.23 2003/12/24 09:45:15 brun Exp $
// Author: Rene Brun 08/01/2003 // Author: Rene Brun 08/01/2003
/************************************************************************* /*************************************************************************
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
ClassImp(TSelectorDraw) ClassImp(TSelectorDraw)
const Int_t kCustomHistogram = BIT(17);
//______________________________________________________________________________ //______________________________________________________________________________
TSelectorDraw::TSelectorDraw() TSelectorDraw::TSelectorDraw()
{ {
...@@ -96,6 +98,7 @@ void TSelectorDraw::Begin(TTree *tree) ...@@ -96,6 +98,7 @@ void TSelectorDraw::Begin(TTree *tree)
// Called everytime a loop on the tree(s) starts. // Called everytime a loop on the tree(s) starts.
SetStatus(0); SetStatus(0);
ResetBit(kCustomHistogram);
fSelectedRows = 0; fSelectedRows = 0;
fTree = tree; fTree = tree;
...@@ -176,7 +179,8 @@ void TSelectorDraw::Begin(TTree *tree) ...@@ -176,7 +179,8 @@ void TSelectorDraw::Begin(TTree *tree)
strncpy(varexp,varexp0,i); varexp[i]=0; strncpy(varexp,varexp0,i); varexp[i]=0;
Int_t mustdelete=0; Int_t mustdelete=0;
SetBit(kCustomHistogram);
// parse things that follow the name of the histo between '(' and ')'. // parse things that follow the name of the histo between '(' and ')'.
// At this point hname contains the name of the specified histogram. // At this point hname contains the name of the specified histogram.
// Now the syntax is exended to handle an hname of the following format // Now the syntax is exended to handle an hname of the following format
...@@ -1324,7 +1328,7 @@ void TSelectorDraw::Terminate() ...@@ -1324,7 +1328,7 @@ void TSelectorDraw::Terminate()
if (fNfill) TakeAction(); if (fNfill) TakeAction();
if (fSelectedRows == 0) fDraw = 1; // do not draw if ((fSelectedRows == 0) && (TestBit(kCustomHistogram) == 0)) fDraw = 1; // do not draw
SetStatus(fSelectedRows); SetStatus(fSelectedRows);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment