// $Header: /cvs/gled-1.2/GledCore/Stones/ZHistoManager.cxx,v 1.3 2005/03/11 17:50:16 matevz Exp $
// Copyright (C) 1999-2005, Matevz Tadel. All rights reserved.
// This file is part of GLED, released under GNU General Public License version 2.
// For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/.
#include "ZHistoManager.h"
#include <Gled/GledNS.h>
#include <Glasses/ZGlass.h>
ClassImp(ZHistoManager)
ZHistoManager::ZHistoManager(const char* fname, Option_t* option,
const char* ftitle, Int_t compress) :
TFile(fname, option, ftitle, compress)
{}
ZHistoManager::~ZHistoManager() {}
void ZHistoManager::RegisterGroup(ZHisto* n, const Text_t* group)
{
mHisto2ZHistoDir_i i = mHisto2HistoDir.find(n);
ZHistoDir* d = (i != mHisto2HistoDir.end()) ? i->second : 0;
const Text_t* name = n->GetGlass()->GetName();
GledNS::PushFD(); cd();
if(!d) {
ISmess(GForm("ZHistoManager::Register creating ZHistoDir for %s", name));
d = mHisto2HistoDir[n] = new ZHistoDir(n, name, GForm("ZHistoDir for %s", name));
}
d->AddGroup(group, GForm("ZHistoGroup for %s", name));
GledNS::PopFD();
}
/**************************************************************************/
ZHistoDir* ZHistoManager::GetDir(ZHisto* n)
{
return mHisto2HistoDir[n];
}
ZHistoGroup* ZHistoManager::GetGroup(ZHisto* n, const Text_t* group)
{
ZHistoDir *d = mHisto2HistoDir[n];
return (d ? d->GetGroup(group) : 0);
}
ROOT page - Home 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.