Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
984f934b
Commit
984f934b
authored
9 years ago
by
Olivier Couet
Browse files
Options
Downloads
Patches
Plain Diff
Doxygen
parent
53a59b78
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tree/treeplayer/src/TTreeDrawArgsParser.cxx
+16
-15
16 additions, 15 deletions
tree/treeplayer/src/TTreeDrawArgsParser.cxx
with
16 additions
and
15 deletions
tree/treeplayer/src/TTreeDrawArgsParser.cxx
+
16
−
15
View file @
984f934b
...
...
@@ -9,14 +9,10 @@
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
//////////////////////////////////////////////////////////////////////////
// //
// TTreeDrawArgsParser //
// //
// A class that parses all parameters for TTree::Draw(). //
// See TTree::Draw() for the format description. //
// //
//////////////////////////////////////////////////////////////////////////
/** \class TTreeDrawArgsParser
A class that parses all parameters for TTree::Draw().
See TTree::Draw() for the format description.
*/
#include
"TTreeDrawArgsParser.h"
#include
"TDirectory.h"
...
...
@@ -36,7 +32,6 @@ TTreeDrawArgsParser::TTreeDrawArgsParser()
ClearPrevious
();
}
////////////////////////////////////////////////////////////////////////////////
/// Destructor.
...
...
@@ -83,14 +78,17 @@ void TTreeDrawArgsParser::ClearPrevious()
////////////////////////////////////////////////////////////////////////////////
/// Parse expression [var1 [:var2 [:var3] ...]],
/// number of variables cannot be greater than fgMaxDimension.
///
/// A colon which is followed by (or that follows) another semicolon
/// is not regarded as a separator.
///
/// If there are more separating : than fgMaxDimension - 1 then
/// all characters after (fgMaxDimension - 1)th colon is put into
/// the last variable.
/// fDimension := <number of variables>
/// fVarExp[0] := <first variable string>
/// fVarExp[1] := <second variable string>
///
/// - fDimension := <number of variables>
/// - fVarExp[0] := <first variable string>
/// - fVarExp[1] := <second variable string>
/// ..
/// Returns kFALSE in case of an error.
...
...
@@ -121,10 +119,13 @@ Bool_t TTreeDrawArgsParser::SplitVariables(TString variables)
////////////////////////////////////////////////////////////////////////////////
/// Syntax:
/// [' '*][[\+][' '*]name[(num1 [, [num2] ] [, [num3] ] ...)]]
///
/// [' '*][[\+][' '*]name[(num1 [, [num2] ] [, [num3] ] ...)]]
///
/// num's are floating point numbers
/// sets the fileds fNoParameters, fParameterGiven, fParameters, fAdd, fName
/// to apropriate values.
///
/// Returns kFALSE in case of an error.
Bool_t
TTreeDrawArgsParser
::
ParseName
(
TString
name
)
...
...
@@ -357,8 +358,8 @@ Double_t TTreeDrawArgsParser::GetParameter(Int_t num) const
}
////////////////////////////////////////////////////////////////////////////////
/// num - parameter number
/// def - default value of the parameter
///
-
num - parameter number
///
-
def - default value of the parameter
/// returns the value of *num*-th parameter from the brackets in the variable expression
/// if the parameter of that number wasn't specified returns *def*.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment