class TSelectorDraw: public TSelector


TSelectorDraw

A specialized TSelector for TTree::Draw.


Function Members (Methods)

public:
TSelectorDraw()
virtual~TSelectorDraw()
virtual voidTSelector::Abort(const char* why, TSelector::EAbort what = kAbortProcess)
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidBegin(TTree* tree)
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 = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
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
virtual TSelector::EAbortTSelector::GetAbort() const
virtual Int_tGetAction() const
virtual Bool_tGetCleanElist() const
virtual Int_tGetDimension() const
virtual Long64_tGetDrawFlag() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Int_tTSelector::GetEntry(Long64_t, Int_t = 0)
virtual const char*TObject::GetIconName() const
Int_tGetMultiplicity() const
virtual const char*TObject::GetName() const
const char*GetNameByIndex(TString& varexp, Int_t* index, Int_t colindex)
virtual Int_tGetNfill() const
TObject*GetObject() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
TH1*GetOldHistogram() const
virtual const char*TSelector::GetOption() const
virtual TList*TSelector::GetOutputList() const
TTreeFormula*GetSelect() const
virtual Long64_tGetSelectedRows() const
static TSelector*TSelector::GetSelector(const char* filename)
virtual Long64_tTSelector::GetStatus() const
virtual const char*TObject::GetTitle() const
TTree*GetTree() const
virtual UInt_tTObject::GetUniqueID() const
virtual Double_t*GetV1() const
virtual Double_t*GetV2() const
virtual Double_t*GetV3() const
virtual Double_t*GetV4() const
virtual Double_t*GetVal(Int_t i) const
TTreeFormula*GetVar(Int_t i) const
TTreeFormula*GetVar1() const
TTreeFormula*GetVar2() const
TTreeFormula*GetVar3() const
TTreeFormula*GetVar4() const
virtual Double_t*GetW() 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 voidTSelector::Init(TTree*)
virtual voidTObject::Inspect() const
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
static Bool_tTSelector::IsStandardDraw(const char* selec)
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
virtual voidMakeIndex(TString& varexp, Int_t* index)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tNotify()
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)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Bool_tProcess(Long64_t)
virtual Bool_tTSelector::ProcessCut(Long64_t)
virtual voidProcessFill(Long64_t entry)
virtual voidProcessFillMultiple(Long64_t entry)
virtual voidProcessFillObject(Long64_t entry)
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 = "") const
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 = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetEstimate(Long64_t n)
virtual voidTSelector::SetInputList(TList* input)
virtual voidTSelector::SetObject(TObject* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTSelector::SetOption(const char* option)
virtual voidTSelector::SetStatus(Long64_t status)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTSelector::SlaveBegin(TTree*)
virtual voidTSelector::SlaveTerminate()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual voidTakeAction()
virtual voidTakeEstimate()
virtual voidTerminate()
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual intTSelector::Version() const
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:
virtual voidClearFormula()
virtual Bool_tCompileVariables(const char* varexp = "", const char* selection = "")
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidInitArrays(Int_t newsize)
voidTObject::MakeZombie()
private:
TSelectorDraw(const TSelectorDraw&)
TSelectorDraw&operator=(const TSelectorDraw&)

Data Members

public:
enum { kWarn
};
enum TSelector::EAbort { kContinue
kAbortProcess
kAbortFile
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TSelector::EAbortTSelector::fAbortabort status
Int_tfAction! Action type
Bool_tfCleanElisttrue if original Tree elist must be saved
Int_tfDimensionDimension of the current expression
Long64_tfDraw! Last entry loop number when object was drawn
Int_tfForceReadForce Read flag
TList*TSelector::fInputlist of objects available during processing
TTreeFormulaManager*fManagerPointer to the formula manager
Int_tfMultiplicityIndicator of the variability of the size of entries
Int_t*fNbins![fDimension] Number of bins per dimension
Int_tfNfill! Total number of histogram fills
Bool_tfObjEvaltrue if fVar1 returns an object (or pointer to).
TObject*TSelector::fObjectcurrent object if processing object (vs. TTree)
Long64_tfOldEstimatevalue of Tree fEstimate when selector is called
TH1*fOldHistogram! Pointer to previously used histogram
TStringTSelector::fOptionoption given to TTree::Process
TSelectorList*TSelector::fOutputlist of objects created during processing
TTreeFormula*fSelectPointer to selection formula
Bool_tfSelectMultipletrue if selection has a variable index
Long64_tfSelectedRowsNumber of selected entries
Long64_tTSelector::fStatusselector status
TTree*fTreePointer to current Tree
TObject*fTreeElistpointer to Tree Event list
Double_t**fVal![fSelectedRows][fDimension] Local buffer for the variables
Int_tfValSize
TTreeFormula**fVar![fDimension] Array of pointers to variables formula
Bool_t*fVarMultiple![fDimension] true if fVar[i] has a variable index
Double_t*fVmax![fDimension] Maxima of varexp columns
Double_t*fVmin![fDimension] Minima of varexp columns
Double_t*fW![fSelectedRows]Local buffer for weights
Double_tfWeightTree weight (see TTree::SetWeight)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TSelectorDraw(const TSelectorDraw& )
 Default selector constructor.
~TSelectorDraw()
 Selector destructor.
void Begin(TTree* tree)
 Called everytime a loop on the tree(s) starts.
void ClearFormula()
 Delete internal buffers.
Bool_t CompileVariables(const char* varexp = "", const char* selection = "")
 Compile input variables and selection expression.

  varexp is an expression of the general form e1:e2:e3
    where e1,etc is a formula referencing a combination of the columns
  Example:
     varexp = x  simplest case: draw a 1-Dim distribution of column named x
            = sqrt(x)         : draw distribution of sqrt(x)
            = x*y/z
            = y:sqrt(x) 2-Dim dsitribution of y versus sqrt(x)

  selection is an expression with a combination of the columns
  Example:
      selection = "x<y && sqrt(z)>3.2"
       in a selection all the C++ operators are authorized

  Return kFALSE if any of the variable is not compilable.
const char * GetNameByIndex(TString& varexp, Int_t* index, Int_t colindex)
 Return name corresponding to colindex in varexp.

 varexp is a string of names separated by :
 index is an array with pointers to the start of name[i] in varexp
Double_t* GetVal(Int_t i) const
Get variable buffer.
TTreeFormula* GetVar(Int_t i) const
Get variable formula.
void InitArrays(Int_t newsize)
 Initialization of the primitive type arrays if the new size is bigger than the available space.
void MakeIndex(TString& varexp, Int_t* index)
 Build Index array for names in varexp.
Bool_t Notify()
 This function is called at the first entry of a new tree in a chain.
void ProcessFill(Long64_t entry)
 Called in the entry loop for all entries accepted by Select.
void ProcessFillMultiple(Long64_t entry)
 Called in the entry loop for all entries accepted by Select.
 Complex case with multiplicity.
void ProcessFillObject(Long64_t entry)
 Called in the entry loop for all entries accepted by Select.
 Case where the only variable returns an object (or pointer to).
void SetEstimate(Long64_t n)
 Set number of entries to estimate variable limits.
void TakeAction()
 Execute action for object obj fNfill times.
void TakeEstimate()
 Estimate limits for 1-D, 2-D or 3-D objects.
void Terminate()
 Called at the end of a loop on a TTree.
TSelectorDraw(const TSelectorDraw& )
TSelectorDraw& operator=(const TSelectorDraw& )
Int_t GetAction()
{return fAction;}
Bool_t GetCleanElist()
{return fCleanElist;}
Int_t GetDimension()
{return fDimension;}
Long64_t GetDrawFlag()
{return fDraw;}
TObject * GetObject()
{return fObject;}
Int_t GetMultiplicity()
{return fMultiplicity;}
Int_t GetNfill()
{return fNfill;}
TH1 * GetOldHistogram()
{return fOldHistogram;}
TTreeFormula * GetSelect()
{return fSelect;}
Long64_t GetSelectedRows()
{return fSelectedRows;}
TTree * GetTree()
{return fTree;}
TTreeFormula * GetVar1()
{return GetVar(0);}
TTreeFormula * GetVar2()
{return GetVar(1);}
TTreeFormula * GetVar3()
{return GetVar(2);}
TTreeFormula * GetVar4()
{return GetVar(3);}
Double_t * GetV1()
{return GetVal(0);}
Double_t * GetV2()
{return GetVal(1);}
Double_t * GetV3()
{return GetVal(2);}
Double_t * GetV4()
{return GetVal(3);}
Double_t * GetW()
{return fW;}
Bool_t Process(Long64_t )
{ return kFALSE; }

Author: Rene Brun 08/01/2003
Last update: root/treeplayer:$Id: TSelectorDraw.h 20882 2007-11-19 11:31:26Z rdm $
Copyright (C) 1995-2000, 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.