library: libTreePlayer
#include "TSelectorDraw.h"


class description - header file - source file
viewCVS header - viewCVS source

class TSelectorDraw: public TSelector

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
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
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
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(ostream& 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
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
TSelectorDraw(const TSelectorDraw&)
TSelectorDraw&operator=(const TSelectorDraw&)

Data Members

enum { kWarn
enum TSelector::EAbort { kContinue
enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
TTree*fTreePointer to current Tree
TTreeFormula*fVar1Pointer to first variable formula
TTreeFormula*fVar2Pointer to second variable formula
TTreeFormula*fVar3Pointer to third variable formula
TTreeFormula*fVar4Pointer to fourth variable formula
TTreeFormula*fSelectPointer to selection formula
TTreeFormulaManager*fManagerPointer to the formula manager
TObject*fObject! Pointer to object being filled (histogram, event list)
TObject*fTreeElistpointer to Tree Event list
TH1*fOldHistogram! Pointer to previously used histogram
Int_tfAction! Action type
Long64_tfDraw! Last entry loop number when object was drawn
Int_tfNfill! Total number of histogram fills
Int_tfMultiplicityIndicator of the variability of the size of entries
Int_tfDimensionDimension of the current expression
Long64_tfSelectedRowsNumber of selected entries
Long64_tfOldEstimatevalue of Tree fEstimate when selector is called
Int_tfForceReadForce Read flag
Int_tfNbins[4]Number of bins per dimension
Double_tfVmin[4]Minima of varexp columns
Double_tfVmax[4]Maxima of varexp columns
Double_tfWeightTree weight (see TTree::SetWeight)
Double_t*fV1![fSelectedRows]Local buffer for variable 1
Double_t*fV2![fSelectedRows]Local buffer for variable 2
Double_t*fV3![fSelectedRows]Local buffer for variable 3
Double_t*fV4![fSelectedRows]Local buffer for variable 4
Double_t*fW![fSelectedRows]Local buffer for weights
Bool_tfVar1Multipletrue if var1 has a variable index
Bool_tfVar2Multipletrue if var2 has a variable index
Bool_tfVar3Multipletrue if var3 has a variable index
Bool_tfVar4Multipletrue if var4 has a variable index
Bool_tfSelectMultipletrue if selection has a variable index
Bool_tfCleanElisttrue if original Tree elist must be saved
Bool_tfObjEvaltrue if fVar1 returns an object (or pointer to).
Long64_tTSelector::fStatusselector status
TSelector::EAbortTSelector::fAbortabort status
TStringTSelector::fOptionoption given to TTree::Process
TObject*TSelector::fObjectcurrent object if processing object (vs. TTree)
TList*TSelector::fInputlist of objects available during processing (on PROOF)
TSelectorList*TSelector::fOutputlist of objects created during processing (on PROOF)

Class Description


 Default selector constructor.
 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
     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
      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
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)
 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;}
TTreeFormula * GetVar1()
{return fVar1;}
TTreeFormula * GetVar2()
{return fVar2;}
TTreeFormula * GetVar3()
{return fVar3;}
TTreeFormula * GetVar4()
{return fVar4;}
Double_t * GetV1()
{return fV1;}
Double_t * GetV2()
{return fV2;}
Double_t * GetV3()
{return fV3;}
Double_t * GetV4()
{return fV4;}
Double_t * GetW()
{return fW;}
Bool_t Process(Long64_t /*entry*/)
{ return kFALSE; }

Author: Rene Brun 08/01/2003
Last update: root/treeplayer:$Name: $:$Id: TSelectorDraw.cxx,v 1.64 2006/11/22 16:52:54 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

ROOT page - Class index - Class Hierarchy - Top of the page

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.