// $Id: ZHistoDir.h 2088 2008-11-23 20:26:46Z matevz $ // Copyright (C) 1999-2008, 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/. #ifndef GLED_ZHistoDir_H #define GLED_ZHistoDir_H #include #include #include #include #ifndef __CINT__ typedef map mName2HistoGroup_t; typedef map::iterator mName2HistoGroup_i; #endif class ZHistoDir { protected: TDirectory* mDir; // X{g} ZHisto* mHisto; // X{g} #ifndef __CINT__ mName2HistoGroup_t mName2Group; #endif public: ZHistoDir(ZHisto* n, const Text_t* name, const Text_t* title); virtual ~ZHistoDir(); void AddGroup(const Text_t* name, const Text_t* title); ZHistoGroup* GetGroup(const Text_t* name) { return mName2Group[name]; } void cd() { mDir->cd(); } #include "ZHistoDir.h7" ClassDef(ZHistoDir, 0); }; // endclass ZHistoDir #endif