class TTreeDrawArgsParser: public TObject


TTreeDrawArgsParser

A class that parses all parameters for TTree::Draw().
See TTree::Draw() for the format description.


Function Members (Methods)

public:
TTreeDrawArgsParser()
TTreeDrawArgsParser(const TTreeDrawArgsParser&)
virtual~TTreeDrawArgsParser()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Bool_tGetAdd() const
Int_tGetDimension() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
TStringGetExp() const
virtual const char*TObject::GetIconName() const
Double_tGetIfSpecified(Int_t num, Double_t def) const
static Int_tGetMaxDimension()
virtual const char*TObject::GetName() const
Int_tGetNoParameters() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
TStringGetObjectName() const
static Bool_tTObject::GetObjectStat()
TStringGetObjectTitle() const
virtual Option_t*TObject::GetOption() const
Bool_tGetOptionSame() const
TObject*GetOriginal() const
Double_tGetParameter(int num) const
TStringGetProofSelectorName() const
TStringGetSelection() const
Bool_tGetShouldDraw() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
TStringGetVarExp() const
TStringGetVarExp(Int_t num) const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tIsSpecified(int num) const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TTreeDrawArgsParser&operator=(const TTreeDrawArgsParser&)
virtual voidTObject::Paint(Option_t* option = "")
Bool_tParse(const char* varexp, const char* selection, Option_t* option)
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetObjectName(const char* s)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetOriginal(TObject* o)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
voidClearPrevious()
TTreeDrawArgsParser::EOutputTypeDefineType()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
Bool_tParseName(TString name)
Bool_tParseOption()
Bool_tParseVarExp()
Bool_tSplitVariables(TString variables)

Data Members

public:
enum EOutputType { kUNKNOWN
kEVENTLIST
kENTRYLIST
kPROFILE
kPROFILE2D
kGRAPH
kPOLYMARKER3D
kHISTOGRAM1D
kHISTOGRAM2D
kLISTOFGRAPHS
kLISTOFPOLYMARKERS3D
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
public:
static Int_tfgMaxDimension= 4
static Int_tfgMaxParameters= 9
protected:
Bool_tfAddvalues should be added to an existing object
Int_tfDimensiondimension of the histogram/plot
Bool_tfDrawProfiletrue if the options contain :"prof"
Bool_tfEntryListif fill a TEntryList
TStringfExpcomplete variable expression
TStringfNamehistogram's/plot's name
Int_tfNoParametersif dimensions of the plot was specified
TStringfOptiondraw options
Bool_tfOptionSameif option contained "same"
TObject*fOriginaloriginal plot (if it is to be reused)
TTreeDrawArgsParser::EOutputTypefOutputTypetype of the output
Bool_tfParameterGiven[9]true if the parameter was given, otherwise false
Double_tfParameters[9]parameters in brackets
TStringfSelectionselection expression
Bool_tfShouldDrawif to draw the plot
TStringfVarExp[4]variable expression 0 - X, 1 - Y, 2 - Z, 3 - W

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TTreeDrawArgsParser(const TTreeDrawArgsParser& )
 Constructor - cleans all the class variables.
~TTreeDrawArgsParser()
 Destructor.
Int_t GetMaxDimension()
 return fgMaxDimension (cannot be inline)
void ClearPrevious()
 Resets all the variables of the class.
Bool_t SplitVariables(TString variables)
 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>
 ..
 Returns kFALSE in case of an error.
Bool_t ParseName(TString name)
 Syntax:
 [' '*][[\+][' '*]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 ParseVarExp()
 Split variables and parse name and parameters in brackets.
Bool_t ParseOption()
 Check if options contain some data important for choosing the type of the
 drawn object.
Bool_t Parse(const char* varexp, const char* selection, Option_t* option)
 Parses parameters from TTree::Draw().
 varexp - Variable expression; see TTree::Draw()
 selection - selection expression; see TTree::Draw()
 option - Drawnig option; see TTree::Draw
TString GetProofSelectorName()
 Returns apropriate TSelector class name for proof for the object that is to be drawn
 assumes that Parse() method has been called before.
Double_t GetParameter(int num) const
 returns *num*-th parameter from brackets in the expression
 in case of an error (wrong number) returns 0.0
 num - number of parameter (counted from 0)
Double_t GetIfSpecified(Int_t num, Double_t def) const
 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*.
Bool_t IsSpecified(int num) const
 returns kTRUE if the *num*-th parameter was specified
 otherwise returns fFALSE
 in case of an error (wrong num) prints an error message and
 returns kFALSE.
TString GetVarExp(Int_t num) const
 Returns the *num*-th variable string
 in case of an error prints an error message and returns an empty string.
TString GetVarExp(Int_t num) const
 Returns the variable string, i.e. [var1[:var2[:var2[:var4]]]].
TString GetObjectTitle()
 Returns the desired plot title.
TTreeDrawArgsParser::EOutputType DefineType()
TTreeDrawArgsParser(const TTreeDrawArgsParser& )
Bool_t GetAdd()
{ return fAdd; }
Int_t GetDimension()
{ return fDimension; }
Bool_t GetShouldDraw()
{ return fShouldDraw; }
TString GetExp()
{ return fExp; }
Int_t GetNoParameters()
{ return fNoParameters; }
TString GetObjectName()
{ return fName; }
Bool_t GetOptionSame()
{ return fOptionSame; }
TObject * GetOriginal()
{ return fOriginal; }
TString GetSelection()
{ return fSelection; }
void SetObjectName(const char* s)
{ fName = s; }
void SetOriginal(TObject* o)
{ fOriginal = o; }

Author: Marek Biskup 24/01/2005
Last change: root/treeplayer:$Id: TTreeDrawArgsParser.h 20882 2007-11-19 11:31:26Z rdm $
Last generated: 2008-06-25 08:54
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.