//*CMZ : 2.23/03 22/09/99 08.20.01 by Rene Brun
//*CMZ : 2.23/02 02/09/99 19.38.51 by Rene Brun
//*CMZ : 2.23/01 31/08/99 15.24.04 by Rene Brun
//*-- Author : Rene Brun 30/08/99
//*KEEP,CopyRight,T=C.
/*************************************************************************
* Copyright(c) 1995-1999, The ROOT System, All rights reserved. *
* Authors: Rene Brun and Fons Rademakers. *
* *
* For the licensing terms see $ROOTSYS/AA_LICENSE. *
* For the list of contributors see $ROOTSYS/AA_CREDITS. *
*************************************************************************/
//*KEND.
//*KEEP,TROOT.
#include "TROOT.h"
//*KEEP,TVirtualTreePlayer,T=C++.
#include "TVirtualTreePlayer.h"
//*KEND.
TClass *TVirtualTreePlayer::fgPlayer = 0;
ClassImp(TVirtualTreePlayer)
//______________________________________________________________________________
TVirtualTreePlayer *TVirtualTreePlayer::TreePlayer(TTree *obj)
{
// Static function returning a pointer to a Tree player.
// The player will process the specified obj. If the Tree player
// does not exist a default player is created.
// if no player set yet, set TTreePlayer by default
if (!fgPlayer) {
if (gROOT->LoadClass("TProof","Proof")) return 0;
if (gROOT->LoadClass("TTreePlayer","TreePlayer")) return 0;
TVirtualTreePlayer::SetPlayer("TTreePlayer");
if (!fgPlayer) return 0;
}
//create an instance of the Tree player
TVirtualTreePlayer *p = (TVirtualTreePlayer*)fgPlayer->New();
if (p) p->SetTree(obj);
return p;
}
//______________________________________________________________________________
void TVirtualTreePlayer::SetPlayer(const char *player)
{
// Static function to set an alternative Tree player.
fgPlayer = gROOT->GetClass(player);
}
ROOT page - Class index - 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.