ROOT logo
// $Id: ZHistoGroup.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_ZHistoGroup_H
#define GLED_ZHistoGroup_H

#include <Gled/GledTypes.h>
#include <TDirectory.h>
class TH1;
#include <vector>

#ifndef __CINT__
typedef vector<TH1**>			vppHisto_t;
typedef vector<TH1**>::iterator		vppHisto_i;
#endif

class ZHistoGroup {

protected:
  TDirectory*		mDir;		// X{g}

#ifndef __CINT__
  vppHisto_t		mHistos;
#endif

public:
  ZHistoGroup(const Text_t* name, const Text_t* title);
  virtual ~ZHistoGroup() {}

  void AddHisto(TH1** p);
  void ResetHistos();

  void cd() { mDir->cd(); }

#include "ZHistoGroup.h7"
  ClassDef(ZHistoGroup, 0);
}; // endclass ZHistoGroup

// Here I declare callbacks for Draw, Reset ... should be somewhere else
// Perhaps namespace HistoFoo ?? ... better
void HistoDraw_cb(void* w, TObject* histo);
void HistoReset_cb(void* w, TObject* histo);

#endif
 ZHistoGroup.h:1
 ZHistoGroup.h:2
 ZHistoGroup.h:3
 ZHistoGroup.h:4
 ZHistoGroup.h:5
 ZHistoGroup.h:6
 ZHistoGroup.h:7
 ZHistoGroup.h:8
 ZHistoGroup.h:9
 ZHistoGroup.h:10
 ZHistoGroup.h:11
 ZHistoGroup.h:12
 ZHistoGroup.h:13
 ZHistoGroup.h:14
 ZHistoGroup.h:15
 ZHistoGroup.h:16
 ZHistoGroup.h:17
 ZHistoGroup.h:18
 ZHistoGroup.h:19
 ZHistoGroup.h:20
 ZHistoGroup.h:21
 ZHistoGroup.h:22
 ZHistoGroup.h:23
 ZHistoGroup.h:24
 ZHistoGroup.h:25
 ZHistoGroup.h:26
 ZHistoGroup.h:27
 ZHistoGroup.h:28
 ZHistoGroup.h:29
 ZHistoGroup.h:30
 ZHistoGroup.h:31
 ZHistoGroup.h:32
 ZHistoGroup.h:33
 ZHistoGroup.h:34
 ZHistoGroup.h:35
 ZHistoGroup.h:36
 ZHistoGroup.h:37
 ZHistoGroup.h:38
 ZHistoGroup.h:39
 ZHistoGroup.h:40
 ZHistoGroup.h:41
 ZHistoGroup.h:42
 ZHistoGroup.h:43
 ZHistoGroup.h:44
 ZHistoGroup.h:45
 ZHistoGroup.h:46
 ZHistoGroup.h:47