TTreePlayer Class Reference

#include <TTreePlayer.h>

Inheritance diagram for TTreePlayer:

TVirtualTreePlayer TVirtualTreePlayer TObject TObject TObject TObject List of all members.

Public Member Functions

 TTreePlayer ()
virtual ~TTreePlayer ()
virtual TVirtualIndexBuildIndex (const TTree *T, const char *majorname, const char *minorname)
virtual TTreeCopyTree (const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Long64_t DrawScript (const char *wrapperPrefix, const char *macrofilename, const char *cutfilename, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Long64_t DrawSelect (const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Int_t Fit (const char *formula, const char *varexp, const char *selection, Option_t *option, Option_t *goption, Long64_t nentries, Long64_t firstentry)
virtual Int_t GetDimension () const
TH1GetHistogram () const
virtual Long64_t GetEntries (const char *selection)
virtual Long64_t GetEntriesToProcess (Long64_t firstentry, Long64_t nentries) const
virtual Int_t GetNfill () const
const char * GetScanFileName () const
TTreeFormulaGetSelect () const
virtual Long64_t GetSelectedRows () const
TSelectorGetSelector () const
TSelectorGetSelectorFromFile () const
TTreeFormulaGetVar (Int_t i) const
TTreeFormulaGetVar1 () const
TTreeFormulaGetVar2 () const
TTreeFormulaGetVar3 () const
TTreeFormulaGetVar4 () const
virtual Double_tGetVal (Int_t i) const
virtual Double_tGetV1 () const
virtual Double_tGetV2 () const
virtual Double_tGetV3 () const
virtual Double_tGetV4 () const
virtual Double_tGetW () const
virtual Int_t MakeClass (const char *classname, Option_t *option)
virtual Int_t MakeCode (const char *filename)
virtual Int_t MakeProxy (const char *classname, const char *macrofilename=0, const char *cutfilename=0, const char *option=0, Int_t maxUnrolling=3)
TPrincipalPrincipal (const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Long64_t Process (const char *filename, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Long64_t Process (TSelector *selector, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual void RecursiveRemove (TObject *obj)
virtual Long64_t Scan (const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
Bool_t ScanRedirected ()
virtual TSQLResultQuery (const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual void SetEstimate (Long64_t n)
void SetScanRedirect (Bool_t on=kFALSE)
void SetScanFileName (const char *name)
virtual void SetTree (TTree *t)
virtual void StartViewer (Int_t ww, Int_t wh)
virtual Int_t UnbinnedFit (const char *formula, const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual void UpdateFormulaLeaves ()
 ClassDef (TTreePlayer, 3)
 TTreePlayer ()
virtual ~TTreePlayer ()
virtual TVirtualIndexBuildIndex (const TTree *T, const char *majorname, const char *minorname)
virtual TTreeCopyTree (const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Long64_t DrawScript (const char *wrapperPrefix, const char *macrofilename, const char *cutfilename, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Long64_t DrawSelect (const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Int_t Fit (const char *formula, const char *varexp, const char *selection, Option_t *option, Option_t *goption, Long64_t nentries, Long64_t firstentry)
virtual Int_t GetDimension () const
TH1GetHistogram () const
virtual Long64_t GetEntries (const char *selection)
virtual Long64_t GetEntriesToProcess (Long64_t firstentry, Long64_t nentries) const
virtual Int_t GetNfill () const
const char * GetScanFileName () const
TTreeFormulaGetSelect () const
virtual Long64_t GetSelectedRows () const
TSelectorGetSelector () const
TSelectorGetSelectorFromFile () const
TTreeFormulaGetVar (Int_t i) const
TTreeFormulaGetVar1 () const
TTreeFormulaGetVar2 () const
TTreeFormulaGetVar3 () const
TTreeFormulaGetVar4 () const
virtual Double_tGetVal (Int_t i) const
virtual Double_tGetV1 () const
virtual Double_tGetV2 () const
virtual Double_tGetV3 () const
virtual Double_tGetV4 () const
virtual Double_tGetW () const
virtual Int_t MakeClass (const char *classname, Option_t *option)
virtual Int_t MakeCode (const char *filename)
virtual Int_t MakeProxy (const char *classname, const char *macrofilename=0, const char *cutfilename=0, const char *option=0, Int_t maxUnrolling=3)
TPrincipalPrincipal (const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Long64_t Process (const char *filename, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual Long64_t Process (TSelector *selector, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual void RecursiveRemove (TObject *obj)
virtual Long64_t Scan (const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
Bool_t ScanRedirected ()
virtual TSQLResultQuery (const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual void SetEstimate (Long64_t n)
void SetScanRedirect (Bool_t on=kFALSE)
void SetScanFileName (const char *name)
virtual void SetTree (TTree *t)
virtual void StartViewer (Int_t ww, Int_t wh)
virtual Int_t UnbinnedFit (const char *formula, const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
virtual void UpdateFormulaLeaves ()
 ClassDef (TTreePlayer, 3)

Protected Member Functions

const char * GetNameByIndex (TString &varexp, Int_t *index, Int_t colindex)
 Set to the selector address when it's entry list needs to be updated by the UpdateFormulaLeaves function.
void TakeAction (Int_t nfill, Int_t &npoints, Int_t &action, TObject *obj, Option_t *option)
void TakeEstimate (Int_t nfill, Int_t &npoints, Int_t action, TObject *obj, Option_t *option)
void DeleteSelectorFromFile ()
const char * GetNameByIndex (TString &varexp, Int_t *index, Int_t colindex)
 Set to the selector address when it's entry list needs to be updated by the UpdateFormulaLeaves function.
void TakeAction (Int_t nfill, Int_t &npoints, Int_t &action, TObject *obj, Option_t *option)
void TakeEstimate (Int_t nfill, Int_t &npoints, Int_t action, TObject *obj, Option_t *option)
void DeleteSelectorFromFile ()

Protected Attributes

TTreefTree
Bool_t fScanRedirect
 Pointer to current Tree.
const char * fScanFileName
Int_t fDimension
Long64_t fSelectedRows
TH1fHistogram
TSelectorDrawfSelector
 Pointer to histogram used for the projection.
TSelectorfSelectorFromFile
 Pointer to current selector.
TClassfSelectorClass
 Pointer to a user defined selector created by this TTreePlayer object.
TListfInput
 Pointer to the actual class of the TSelectorFromFile.
TListfFormulaList
 input list to the selector
TSelectorfSelectorUpdate
 Pointer to a list of coordinated list TTreeFormula (used by Scan and Query).
TTreefTree
const char * fScanFileName
TH1fHistogram
TSelectorDrawfSelector
 Pointer to histogram used for the projection.
TSelectorfSelectorFromFile
 Pointer to current selector.
TClassfSelectorClass
 Pointer to a user defined selector created by this TTreePlayer object.
TListfInput
 Pointer to the actual class of the TSelectorFromFile.
TListfFormulaList
 input list to the selector
TSelectorfSelectorUpdate
 Pointer to a list of coordinated list TTreeFormula (used by Scan and Query).

Private Member Functions

 TTreePlayer (const TTreePlayer &)
TTreePlayeroperator= (const TTreePlayer &)
 TTreePlayer (const TTreePlayer &)
TTreePlayeroperator= (const TTreePlayer &)

Detailed Description

Definition at line 43 of file TTreePlayer.h.


Constructor & Destructor Documentation

TTreePlayer::TTreePlayer ( const TTreePlayer  )  [private]

TTreePlayer::TTreePlayer (  ) 

TTreePlayer::~TTreePlayer (  )  [virtual]

Definition at line 310 of file TTreePlayer.cxx.

References TList::Delete(), DeleteSelectorFromFile(), fFormulaList, fInput, fSelector, TROOT::GetListOfCleanups(), gROOT, and TCollection::Remove().

TTreePlayer::TTreePlayer ( const TTreePlayer  )  [private]

TTreePlayer::TTreePlayer (  ) 

virtual TTreePlayer::~TTreePlayer (  )  [virtual]


Member Function Documentation

TTreePlayer& TTreePlayer::operator= ( const TTreePlayer  )  [private]

const char * TTreePlayer::GetNameByIndex ( TString varexp,
Int_t index,
Int_t  colindex 
) [protected]

Set to the selector address when it's entry list needs to be updated by the UpdateFormulaLeaves function.

Definition at line 1264 of file TTreePlayer.cxx.

References n.

void TTreePlayer::TakeAction ( Int_t  nfill,
Int_t npoints,
Int_t action,
TObject obj,
Option_t option 
) [protected]

void TTreePlayer::TakeEstimate ( Int_t  nfill,
Int_t npoints,
Int_t  action,
TObject obj,
Option_t option 
) [protected]

void TTreePlayer::DeleteSelectorFromFile (  )  [protected]

Definition at line 433 of file TTreePlayer.cxx.

References fSelectorClass, fSelectorFromFile, and TClass::IsLoaded().

Referenced by Process(), and ~TTreePlayer().

TVirtualIndex * TTreePlayer::BuildIndex ( const TTree T,
const char *  majorname,
const char *  minorname 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 324 of file TTreePlayer.cxx.

References TObject::Error(), and T.

TTree * TTreePlayer::CopyTree ( const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 342 of file TTreePlayer.cxx.

References TList::Add(), xmlio::Class, TList::Clear(), TTree::CloneTree(), entry, fFormulaList, TTree::Fill(), fTree, TObjArray::GetEntriesFast(), GetEntriesToProcess(), TTree::GetEntry(), TTree::GetEntryNumber(), TTree::GetListOfBranches(), TTree::GetTreeNumber(), i, keep, kFALSE, TTree::LoadTree(), Long64_t, ndata, select(), and TObjArray::UncheckedAt().

Long64_t TTreePlayer::DrawScript ( const char *  wrapperPrefix,
const char *  macrofilename,
const char *  cutfilename,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 448 of file TTreePlayer.cxx.

References TString::Append(), TString::Data(), Form(), fTree, gSystem, TObject::Info(), TString::Length(), Long64_t, TTree::Process(), result(), TTree::SetNotify(), TSystem::SplitAclicMode(), and TObject::Warning().

Referenced by DrawSelect().

Long64_t TTreePlayer::DrawSelect ( const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 515 of file TTreePlayer.cxx.

References TString::Contains(), TString::Data(), TPolyMarker3D::Draw(), TH1::Draw(), TTree::Draw(), DrawScript(), elist, TObject::Error(), fDimension, fHistogram, TList::FindObject(), TDirectory::FindObject(), fInput, Form(), fSelectedRows, fSelector, fTree, gDirectory, TSelectorDraw::GetAction(), TStyle::GetCanvasPreferGL(), TSelectorDraw::GetCleanElist(), TSelectorDraw::GetDimension(), TSelectorDraw::GetDrawFlag(), TTree::GetEntries(), TTree::GetEntriesFriend(), TTree::GetEntryList(), TTree::GetEstimate(), TTree::GetEventList(), TH1::GetListOfFunctions(), TTree::GetMaxEntryLoop(), TStyle::GetNumberOfColors(), TSelectorDraw::GetObject(), TSelectorDraw::GetOldHistogram(), TH1::GetSumOfWeights(), TSelectorDraw::GetVar1(), TSelectorDraw::GetVar2(), TSelectorDraw::GetVar3(), gPad, graph(), gROOT, gStyle, gSystem, TString::Index(), TSystem::IsFileInIncludePath(), TTreeFormula::IsInteger(), TObject::kCanDelete, TH1::kCanRebin, kFALSE, kNPOS, kTRUE, l, TH1::LabelsDeflate(), TString::Last(), TString::Length(), Long64_t, nrows, para(), Process(), TROOT::ProcessLineFast(), TString::ReplaceAll(), TObject::ResetBit(), TH1::Scale(), TObject::SetBit(), TStyle::SetCanvasPreferGL(), TTree::SetEntryList(), TTree::SetEstimate(), TNamed::SetTitle(), TString::ToLower(), and TObjArray::UncheckedAt().

Referenced by Fit(), and UnbinnedFit().

Int_t TTreePlayer::Fit ( const char *  formula,
const char *  varexp,
const char *  selection,
Option_t option,
Option_t goption,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 1185 of file TTreePlayer.cxx.

References DrawSelect(), fHistogram, TH1::Fit(), Long64_t, and strlcpy().

virtual Int_t TTreePlayer::GetDimension (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 82 of file TTreePlayer.h.

References fDimension.

Referenced by TFitEditor::DoFit(), and UnbinnedFit().

TH1* TTreePlayer::GetHistogram (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 83 of file TTreePlayer.h.

References fHistogram.

Referenced by TH1Editor::DoBinLabel1(), TH2Editor::DoBinLabel1(), TH2Editor::DoBinOffset(), TH1Editor::DoBinOffset(), TH1Editor::DoBinReleased1(), TH2Editor::DoBinReleased1(), TH2Editor::DoOffsetMoved(), TH1Editor::DoOffsetMoved(), TH1Editor::DoOffsetReleased(), TH2Editor::DoOffsetReleased(), TH1Editor::DoSliderMoved(), TH1Editor::DoSliderReleased(), TH2Editor::DoSliderXReleased(), TH2Editor::DoSliderYReleased(), TH1Editor::SetModel(), and TH2Editor::SetModel().

Long64_t TTreePlayer::GetEntries ( const char *  selection  )  [virtual]

Implements TVirtualTreePlayer.

Definition at line 1225 of file TTreePlayer.cxx.

References fTree, TTree::Process(), s, and TTree::SetNotify().

Long64_t TTreePlayer::GetEntriesToProcess ( Long64_t  firstentry,
Long64_t  nentries 
) const [virtual]

Definition at line 1245 of file TTreePlayer.cxx.

References elist, fTree, TTree::GetEntriesFriend(), TTree::GetEntryList(), TEntryList::GetN(), and Long64_t.

Referenced by CopyTree(), Principal(), Process(), Query(), and Scan().

virtual Int_t TTreePlayer::GetNfill (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 86 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetNfill().

const char* TTreePlayer::GetScanFileName (  )  const [inline]

Definition at line 87 of file TTreePlayer.h.

References fScanFileName.

TTreeFormula* TTreePlayer::GetSelect (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 88 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetSelect().

virtual Long64_t TTreePlayer::GetSelectedRows (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 89 of file TTreePlayer.h.

References fSelectedRows.

Referenced by TFitEditor::DoFit(), and UnbinnedFit().

TSelector* TTreePlayer::GetSelector (  )  const [inline]

Definition at line 90 of file TTreePlayer.h.

References fSelector.

Referenced by TH1Editor::DoBinLabel1(), TH2Editor::DoBinLabel1(), TH2Editor::DoBinOffset(), TH1Editor::DoBinOffset(), TH1Editor::DoBinReleased1(), TH2Editor::DoBinReleased1(), TFitEditor::DoFit(), TH2Editor::DoOffsetMoved(), TH1Editor::DoOffsetMoved(), TH1Editor::DoOffsetReleased(), and TH2Editor::DoOffsetReleased().

TSelector* TTreePlayer::GetSelectorFromFile (  )  const [inline]

Definition at line 91 of file TTreePlayer.h.

References fSelectorFromFile.

TTreeFormula* TTreePlayer::GetVar ( Int_t  i  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 92 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar().

TTreeFormula* TTreePlayer::GetVar1 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 93 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar1().

TTreeFormula* TTreePlayer::GetVar2 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 94 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar2().

TTreeFormula* TTreePlayer::GetVar3 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 95 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar3().

TTreeFormula* TTreePlayer::GetVar4 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 96 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar4().

virtual Double_t* TTreePlayer::GetVal ( Int_t  i  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 97 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVal().

virtual Double_t* TTreePlayer::GetV1 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 98 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetV1().

virtual Double_t* TTreePlayer::GetV2 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 99 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetV2().

virtual Double_t* TTreePlayer::GetV3 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 100 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetV3().

virtual Double_t* TTreePlayer::GetV4 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 101 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetV4().

virtual Double_t* TTreePlayer::GetW (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 102 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetW().

Int_t TTreePlayer::MakeClass ( const char *  classname,
Option_t option 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 1328 of file TTreePlayer.cxx.

References TObjArray::Add(), TObjArray::AddAt(), TDatime::AsString(), TObjArray::At(), chain, xmlio::Class, TString::Contains(), TString::Data(), TObjArray::Delete(), TObject::Error(), fclose(), TObjArray::FindObject(), fopen, TString::Form(), Form(), fp, fprintf(), fTree, gDirectory, TLeaf::GetBranch(), TBranchElement::GetBranchCount2(), TClass::GetClass(), TLeafObject::GetClass(), TBranchElement::GetClassName(), TTree::GetDirectory(), TObjArray::GetEntriesFast(), TDirectory::GetFile(), TChain::GetLeaf(), TLeaf::GetLeafCount(), TLeaf::GetLen(), TBranch::GetListOfBranches(), TTree::GetListOfLeaves(), TBranch::GetListOfLeaves(), TLeaf::GetMaximum(), TNamed::GetName(), TObject::GetName(), TBranch::GetNleaves(), TChain::GetNtrees(), TDirectory::GetPath(), TBranchElement::GetStreamerType(), TNamed::GetTitle(), TChain::GetTreeOffset(), TBranchElement::GetType(), Reflex::GetType(), TStreamerElement::GetTypeName(), TLeaf::GetTypeName(), TLeafObject::GetTypeName(), TROOT::GetVersion(), gFile, gROOT, info, TObject::Info(), TObject::InheritsFrom(), TBranchElement::IsBranchFolder(), kFALSE, l, TObjArray::Last(), len, TString::Length(), TChain::LoadTree(), Long64_t, TMath::Max(), n, R__GetBranchPointerName(), TCollection::SetOwner(), snprintf, strlcat(), strlcpy(), TString::ToLower(), and TObjArray::UncheckedAt().

Int_t TTreePlayer::MakeCode ( const char *  filename  )  [virtual]

Implements TVirtualTreePlayer.

Definition at line 2126 of file TTreePlayer.cxx.

References TDatime::AsString(), xmlio::Class, TString::Data(), TObject::Error(), fclose(), fopen, TString::Form(), fp, fprintf(), fTree, gDirectory, TLeaf::GetBranch(), TLeafObject::GetClass(), TTree::GetDirectory(), TObjArray::GetEntriesFast(), TDirectory::GetFile(), TLeaf::GetLeafCount(), TBranch::GetListOfBranches(), TTree::GetListOfLeaves(), TLeaf::GetMaximum(), TNamed::GetName(), TObject::GetName(), TBranch::GetNleaves(), TDirectory::GetPath(), TNamed::GetTitle(), TLeafObject::GetTypeName(), TROOT::GetVersion(), gFile, gROOT, TObject::InheritsFrom(), l, len, TString::Length(), strlcat(), strlcpy(), and TObjArray::UncheckedAt().

Int_t TTreePlayer::MakeProxy ( const char *  classname,
const char *  macrofilename = 0,
const char *  cutfilename = 0,
const char *  option = 0,
Int_t  maxUnrolling = 3 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 2356 of file TTreePlayer.cxx.

References TObject::Error(), and fTree.

TPrincipal * TTreePlayer::Principal ( const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 2497 of file TTreePlayer.cxx.

References TList::Add(), TTreeFormulaManager::Add(), TObjArray::At(), TList::At(), TList::Clear(), TString::Contains(), entry, fFormulaList, fSelectedRows, fSelector, fTree, TObjArray::GetEntriesFast(), GetEntriesToProcess(), TTree::GetEntryNumber(), TTree::GetListOfLeaves(), TTreeFormulaManager::GetMultiplicity(), TObject::GetName(), TTreeFormulaManager::GetNdata(), TTree::GetTreeNumber(), i, kFALSE, kTRUE, TSeqCollection::LastIndex(), TTree::LoadTree(), Long64_t, ndata, principal(), select(), TSelectorDraw::SplitNames(), TTreeFormulaManager::Sync(), TString::ToLower(), and TTreeFormulaManager::UpdateFormulaLeaves().

Long64_t TTreePlayer::Process ( const char *  filename,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 2631 of file TTreePlayer.cxx.

References DeleteSelectorFromFile(), fSelectorClass, fSelectorFromFile, TSelector::GetSelector(), and Long64_t.

Referenced by DrawSelect().

Long64_t TTreePlayer::Process ( TSelector selector,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 2710 of file TTreePlayer.cxx.

References TSelector::Begin(), entry, fSelectorUpdate, fTree, TSelector::GetAbort(), TFile::GetCacheRead(), TTree::GetCacheSize(), TTree::GetCurrentFile(), GetEntriesToProcess(), TTree::GetEntryNumber(), TFile::GetFileBytesRead(), TSelector::GetStatus(), TTree::GetTimerInterval(), gMonitoringWriter, gROOT, TSelector::Init(), TROOT::IsBatch(), TROOT::IsInterrupted(), TSelector::kAbortProcess, kTRUE, TTree::LoadTree(), Long64_t, TSelector::Notify(), TSelector::Process(), TSelector::ProcessCut(), TSelector::ProcessFill(), TVirtualMonitoringWriter::SendProcessingProgress(), TVirtualMonitoringWriter::SendProcessingStatus(), TTree::SetCacheSize(), TTreeCache::SetEntryRange(), TTree::SetNotify(), TSelector::SetOption(), TSelector::SlaveBegin(), TSelector::SlaveTerminate(), TSelector::Terminate(), timer, UpdateFormulaLeaves(), and TSelector::Version().

void TTreePlayer::RecursiveRemove ( TObject obj  )  [virtual]

Reimplemented from TObject.

Definition at line 2831 of file TTreePlayer.cxx.

References fHistogram.

Long64_t TTreePlayer::Scan ( const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 2839 of file TTreePlayer.cxx.

References TList::Add(), TTreeFormulaManager::Add(), TObjArray::At(), TList::At(), xmlio::Class, TList::Clear(), TString::Contains(), TString::Data(), entry, EOF, TObject::Error(), fFormulaList, Form(), fprintf(), fScanFileName, fScanRedirect, fSelectedRows, fSelector, fTree, TObjArray::GetEntriesFast(), GetEntriesToProcess(), TTree::GetEntryNumber(), TTree::GetListOfLeaves(), TNamed::GetName(), TObject::GetName(), TTree::GetScanField(), TTree::GetTreeNumber(), i, TString::Index(), kFALSE, kNPOS, kTRUE, TSeqCollection::LastIndex(), len, TString::Length(), TTree::LoadTree(), Long64_t, ndata, num, out, Printf(), TTreeFormula::PrintValue(), TString::Remove(), select(), TTree::SetScanField(), TSelectorDraw::SplitNames(), start, strlcat(), strlcpy(), TTreeFormulaManager::Sync(), TString::ToLower(), TTreeFormulaManager::UpdateFormulaLeaves(), and UpdateFormulaLeaves().

Bool_t TTreePlayer::ScanRedirected (  )  [inline]

Definition at line 115 of file TTreePlayer.h.

References fScanRedirect.

TSQLResult * TTreePlayer::Query ( const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 3273 of file TTreePlayer.cxx.

References TList::Add(), TTreeFormulaManager::Add(), TObjArray::At(), TList::At(), TList::Clear(), fFormulaList, fSelectedRows, fSelector, fTree, TObjArray::GetEntriesFast(), GetEntriesToProcess(), TTree::GetEntryNumber(), TTree::GetListOfLeaves(), TTreeFormulaManager::GetMultiplicity(), TObject::GetName(), TTreeFormulaManager::GetNdata(), TTree::GetTreeNumber(), kFALSE, kTRUE, TSeqCollection::LastIndex(), len, TTree::LoadTree(), Long64_t, ndata, TTreeFormula::PrintValue(), select(), TSelectorDraw::SplitNames(), TTreeFormulaManager::Sync(), and UpdateFormulaLeaves().

void TTreePlayer::SetEstimate ( Long64_t  n  )  [virtual]

Implements TVirtualTreePlayer.

Definition at line 3410 of file TTreePlayer.cxx.

References fSelector, and TSelectorDraw::SetEstimate().

void TTreePlayer::SetScanRedirect ( Bool_t  on = kFALSE  )  [inline]

Definition at line 119 of file TTreePlayer.h.

References fScanRedirect.

void TTreePlayer::SetScanFileName ( const char *  name  )  [inline]

Definition at line 120 of file TTreePlayer.h.

References fScanFileName.

virtual void TTreePlayer::SetTree ( TTree t  )  [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 121 of file TTreePlayer.h.

References fTree, and t.

Referenced by UpdateFormulaLeaves().

void TTreePlayer::StartViewer ( Int_t  ww,
Int_t  wh 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 3419 of file TTreePlayer.cxx.

References TPluginManager::FindHandler(), fTree, TROOT::GetPluginManager(), gROOT, h, TROOT::IsBatch(), and TObject::Warning().

Int_t TTreePlayer::UnbinnedFit ( const char *  formula,
const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Definition at line 3476 of file TTreePlayer.cxx.

References TList::Add(), TNamed::Clone(), TString::Contains(), TH1::Draw(), DrawSelect(), TObject::Error(), Foption_t::Errors, TF1::Eval(), fHistogram, fSelector, fTree, func(), TAxis::GetBinWidth(), GetDimension(), TH1::GetDimension(), TTree::GetEntriesFriend(), TTree::GetEstimate(), TROOT::GetFunction(), TH1::GetListOfFunctions(), TAxis::GetNbins(), TFormula::GetNpar(), GetSelectedRows(), TSelectorDraw::GetVal(), TH1::GetXaxis(), gROOT, gTree, if(), TObject::Info(), int, Long64_t, TMath::Min(), Foption_t::More, nbins, Foption_t::Nograph, norm(), nrows, Foption_t::Quiet, TTree::SetEstimate(), TString::ToUpper(), ROOT::Fit::UnBinFit(), and Foption_t::Verbose.

void TTreePlayer::UpdateFormulaLeaves (  )  [virtual]

Implements TVirtualTreePlayer.

Definition at line 3631 of file TTreePlayer.cxx.

References xmlio::Class, elist, fFormulaList, TList::FirstLink(), fSelector, fSelectorFromFile, fSelectorUpdate, fTree, TSelectorDraw::GetObject(), TObjLink::GetObject(), TSelector::GetOutputList(), TCollection::GetSize(), TTree::GetTree(), TObject::InheritsFrom(), TObject::Notify(), TSelectorDraw::Notify(), TEntryList::SetTree(), and SetTree().

Referenced by Process(), Query(), and Scan().

TTreePlayer::ClassDef ( TTreePlayer  ,
 
)

TTreePlayer& TTreePlayer::operator= ( const TTreePlayer  )  [private]

const char* TTreePlayer::GetNameByIndex ( TString varexp,
Int_t index,
Int_t  colindex 
) [protected]

Set to the selector address when it's entry list needs to be updated by the UpdateFormulaLeaves function.

void TTreePlayer::TakeAction ( Int_t  nfill,
Int_t npoints,
Int_t action,
TObject obj,
Option_t option 
) [protected]

void TTreePlayer::TakeEstimate ( Int_t  nfill,
Int_t npoints,
Int_t  action,
TObject obj,
Option_t option 
) [protected]

void TTreePlayer::DeleteSelectorFromFile (  )  [protected]

virtual TVirtualIndex* TTreePlayer::BuildIndex ( const TTree T,
const char *  majorname,
const char *  minorname 
) [virtual]

Implements TVirtualTreePlayer.

virtual TTree* TTreePlayer::CopyTree ( const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

virtual Long64_t TTreePlayer::DrawScript ( const char *  wrapperPrefix,
const char *  macrofilename,
const char *  cutfilename,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

virtual Long64_t TTreePlayer::DrawSelect ( const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

virtual Int_t TTreePlayer::Fit ( const char *  formula,
const char *  varexp,
const char *  selection,
Option_t option,
Option_t goption,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

virtual Int_t TTreePlayer::GetDimension (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 82 of file TTreePlayer.h.

References fDimension.

TH1* TTreePlayer::GetHistogram (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 83 of file TTreePlayer.h.

References fHistogram.

virtual Long64_t TTreePlayer::GetEntries ( const char *  selection  )  [virtual]

Implements TVirtualTreePlayer.

virtual Long64_t TTreePlayer::GetEntriesToProcess ( Long64_t  firstentry,
Long64_t  nentries 
) const [virtual]

virtual Int_t TTreePlayer::GetNfill (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 86 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetNfill().

const char* TTreePlayer::GetScanFileName (  )  const [inline]

Definition at line 87 of file TTreePlayer.h.

References fScanFileName.

TTreeFormula* TTreePlayer::GetSelect (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 88 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetSelect().

virtual Long64_t TTreePlayer::GetSelectedRows (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 89 of file TTreePlayer.h.

References fSelectedRows.

TSelector* TTreePlayer::GetSelector (  )  const [inline]

Definition at line 90 of file TTreePlayer.h.

References fSelector.

TSelector* TTreePlayer::GetSelectorFromFile (  )  const [inline]

Definition at line 91 of file TTreePlayer.h.

References fSelectorFromFile.

TTreeFormula* TTreePlayer::GetVar ( Int_t  i  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 92 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar().

TTreeFormula* TTreePlayer::GetVar1 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 93 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar1().

TTreeFormula* TTreePlayer::GetVar2 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 94 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar2().

TTreeFormula* TTreePlayer::GetVar3 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 95 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar3().

TTreeFormula* TTreePlayer::GetVar4 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 96 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVar4().

virtual Double_t* TTreePlayer::GetVal ( Int_t  i  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 97 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetVal().

virtual Double_t* TTreePlayer::GetV1 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 98 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetV1().

virtual Double_t* TTreePlayer::GetV2 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 99 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetV2().

virtual Double_t* TTreePlayer::GetV3 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 100 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetV3().

virtual Double_t* TTreePlayer::GetV4 (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 101 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetV4().

virtual Double_t* TTreePlayer::GetW (  )  const [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 102 of file TTreePlayer.h.

References fSelector, and TSelectorDraw::GetW().

virtual Int_t TTreePlayer::MakeClass ( const char *  classname,
Option_t option 
) [virtual]

Implements TVirtualTreePlayer.

virtual Int_t TTreePlayer::MakeCode ( const char *  filename  )  [virtual]

Implements TVirtualTreePlayer.

virtual Int_t TTreePlayer::MakeProxy ( const char *  classname,
const char *  macrofilename = 0,
const char *  cutfilename = 0,
const char *  option = 0,
Int_t  maxUnrolling = 3 
) [virtual]

Implements TVirtualTreePlayer.

TPrincipal* TTreePlayer::Principal ( const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

virtual Long64_t TTreePlayer::Process ( const char *  filename,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

virtual Long64_t TTreePlayer::Process ( TSelector selector,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

virtual void TTreePlayer::RecursiveRemove ( TObject obj  )  [virtual]

Reimplemented from TObject.

virtual Long64_t TTreePlayer::Scan ( const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

Bool_t TTreePlayer::ScanRedirected (  )  [inline]

Definition at line 115 of file TTreePlayer.h.

References fScanRedirect.

virtual TSQLResult* TTreePlayer::Query ( const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

virtual void TTreePlayer::SetEstimate ( Long64_t  n  )  [virtual]

Implements TVirtualTreePlayer.

void TTreePlayer::SetScanRedirect ( Bool_t  on = kFALSE  )  [inline]

Definition at line 119 of file TTreePlayer.h.

References fScanRedirect.

void TTreePlayer::SetScanFileName ( const char *  name  )  [inline]

Definition at line 120 of file TTreePlayer.h.

References fScanFileName.

virtual void TTreePlayer::SetTree ( TTree t  )  [inline, virtual]

Implements TVirtualTreePlayer.

Definition at line 121 of file TTreePlayer.h.

References fTree, and t.

virtual void TTreePlayer::StartViewer ( Int_t  ww,
Int_t  wh 
) [virtual]

Implements TVirtualTreePlayer.

virtual Int_t TTreePlayer::UnbinnedFit ( const char *  formula,
const char *  varexp,
const char *  selection,
Option_t option,
Long64_t  nentries,
Long64_t  firstentry 
) [virtual]

Implements TVirtualTreePlayer.

virtual void TTreePlayer::UpdateFormulaLeaves (  )  [virtual]

Implements TVirtualTreePlayer.

TTreePlayer::ClassDef ( TTreePlayer  ,
 
)


Member Data Documentation

TTree* TTreePlayer::fTree [protected]

Definition at line 50 of file TTreePlayer.h.

Referenced by CopyTree(), DrawScript(), DrawSelect(), GetEntries(), GetEntriesToProcess(), MakeClass(), MakeCode(), MakeProxy(), Principal(), Process(), Query(), Scan(), SetTree(), StartViewer(), UnbinnedFit(), and UpdateFormulaLeaves().

Bool_t TTreePlayer::fScanRedirect [protected]

Pointer to current Tree.

Definition at line 51 of file TTreePlayer.h.

Referenced by Scan(), ScanRedirected(), and SetScanRedirect().

const char* TTreePlayer::fScanFileName [protected]

Definition at line 52 of file TTreePlayer.h.

Referenced by GetScanFileName(), Scan(), and SetScanFileName().

Int_t TTreePlayer::fDimension [protected]

Definition at line 53 of file TTreePlayer.h.

Referenced by DrawSelect(), and GetDimension().

Long64_t TTreePlayer::fSelectedRows [protected]

Definition at line 54 of file TTreePlayer.h.

Referenced by DrawSelect(), GetSelectedRows(), Principal(), Query(), and Scan().

TH1* TTreePlayer::fHistogram [protected]

Definition at line 55 of file TTreePlayer.h.

Referenced by DrawSelect(), Fit(), GetHistogram(), RecursiveRemove(), and UnbinnedFit().

TSelectorDraw* TTreePlayer::fSelector [protected]

Pointer to histogram used for the projection.

Definition at line 56 of file TTreePlayer.h.

Referenced by DrawSelect(), GetNfill(), GetSelect(), GetSelector(), GetV1(), GetV2(), GetV3(), GetV4(), GetVal(), GetVar(), GetVar1(), GetVar2(), GetVar3(), GetVar4(), GetW(), Principal(), Query(), Scan(), SetEstimate(), UnbinnedFit(), UpdateFormulaLeaves(), and ~TTreePlayer().

TSelector* TTreePlayer::fSelectorFromFile [protected]

Pointer to current selector.

Definition at line 57 of file TTreePlayer.h.

Referenced by DeleteSelectorFromFile(), GetSelectorFromFile(), Process(), and UpdateFormulaLeaves().

TClass* TTreePlayer::fSelectorClass [protected]

Pointer to a user defined selector created by this TTreePlayer object.

Definition at line 58 of file TTreePlayer.h.

Referenced by DeleteSelectorFromFile(), and Process().

TList* TTreePlayer::fInput [protected]

Pointer to the actual class of the TSelectorFromFile.

Definition at line 59 of file TTreePlayer.h.

Referenced by DrawSelect(), and ~TTreePlayer().

TList* TTreePlayer::fFormulaList [protected]

input list to the selector

Definition at line 60 of file TTreePlayer.h.

Referenced by CopyTree(), Principal(), Query(), Scan(), UpdateFormulaLeaves(), and ~TTreePlayer().

TSelector* TTreePlayer::fSelectorUpdate [protected]

Pointer to a list of coordinated list TTreeFormula (used by Scan and Query).

Definition at line 61 of file TTreePlayer.h.

Referenced by Process(), and UpdateFormulaLeaves().

TTree* TTreePlayer::fTree [protected]

Definition at line 50 of file TTreePlayer.h.

const char* TTreePlayer::fScanFileName [protected]

Definition at line 52 of file TTreePlayer.h.

TH1* TTreePlayer::fHistogram [protected]

Definition at line 55 of file TTreePlayer.h.

TSelectorDraw* TTreePlayer::fSelector [protected]

Pointer to histogram used for the projection.

Definition at line 56 of file TTreePlayer.h.

TSelector* TTreePlayer::fSelectorFromFile [protected]

Pointer to current selector.

Definition at line 57 of file TTreePlayer.h.

TClass* TTreePlayer::fSelectorClass [protected]

Pointer to a user defined selector created by this TTreePlayer object.

Definition at line 58 of file TTreePlayer.h.

TList* TTreePlayer::fInput [protected]

Pointer to the actual class of the TSelectorFromFile.

Definition at line 59 of file TTreePlayer.h.

TList* TTreePlayer::fFormulaList [protected]

input list to the selector

Definition at line 60 of file TTreePlayer.h.

TSelector* TTreePlayer::fSelectorUpdate [protected]

Pointer to a list of coordinated list TTreeFormula (used by Scan and Query).

Definition at line 61 of file TTreePlayer.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:48:10 2011 for ROOT_528-00b_version by  doxygen 1.5.1