//*-- Author : Damir Buskulic 22/11/00//////////////////////////////////////////////////////////////////////////// //// VVirtualNtuplePlayer //// //// Abstract base class for VNtuple players //// ////////////////////////////////////////////////////////////////////////////
#include "TROOT.h"
#include "VVirtualNtuplePlayer.h"
TClass *VVirtualNtuplePlayer::fgPlayer = 0;
ClassImp(VVirtualNtuplePlayer)
//______________________________________________________________________________VVirtualNtuplePlayer *VVirtualNtuplePlayer::NtuplePlayer(VNtuple *obj)
{
// Static function returning a pointer to a Ntuple player. // The player will process the specified obj. If the Ntuple player // does not exist a default player is created.
if (!fgPlayer) {
// if no player set yet, set VDBPlayer by default
if (gROOT->LoadClass("VNtuplePlayer","libVNtuplePlayer")) return 0;
VVirtualNtuplePlayer::SetPlayer("VNtuplePlayer");
if (!fgPlayer) return 0;
}
//create an instance of the Ntuple playerVVirtualNtuplePlayer *p = (VVirtualNtuplePlayer*)fgPlayer->New();
if (p) p->SetNtuple(obj);
return p;
}
//______________________________________________________________________________voidVVirtualNtuplePlayer::SetPlayer(const char *player)
{
// Static function to set an alternative Tree player.fgPlayer = gROOT->GetClass(player);
}
- ROOT page - VEGA 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
, or
contact
with any questions or problems regarding ROOT or VEGA.