StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtHistoCollector.h
1 /***************************************************************************
2  *
3  * $Id: StHbtHistoCollector.h,v 1.2 2001/09/05 20:41:42 laue Exp $
4  *
5  * Author: Frank Laue, Ohio State, laue@bnl.gov
6  ***************************************************************************
7  *
8  * Description: part of STAR HBT Framework: StHbtMaker package
9  * Class to keep a list of all histograms
10  *
11  ***************************************************************************
12  *
13  * $Log: StHbtHistoCollector.h,v $
14  * Revision 1.2 2001/09/05 20:41:42 laue
15  * Updates of the hbtMuDstTree microDSTs
16  *
17  * Revision 1.1 2000/09/05 14:21:09 laue
18  * NEW !! A histogram class (CTH, inherited from TH?Ds) that puts itself into
19  * a list (StHbtHistoCollector) at instantiation time. This provides an easy
20  * way to write out all the histograms.
21  *
22  **************************************************************************/
23 
24 #ifndef StHbtHistoCollector_h
25 #define StHbtHistoCollector_h
26 
27 #include "StHbtMaker/Infrastructure/CTHCollection.hh"
28 #include "StChain.h"
29 
30 class CTH1D;
31 class CTH2D;
32 class CTH3D;
33 
34 
36 public:
37  static StHbtHistoCollector* Instance();
38  void Clear();
39  void Add(CTH1D*);
40  void Add(CTH2D*);
41  void Add(CTH3D*);
42  void Write();
43 
44  friend class nobody;
45 protected:
47  virtual ~StHbtHistoCollector() { /* no-op */ };
48 private:
49  static StHbtHistoCollector* _instance;
50 
51  CTH1DCollection m1DList;
52  CTH2DCollection m2DList;
53  CTH3DCollection m3DList;
54 
55  public:
56 #ifdef __ROOT__
57  ClassDef(StHbtHistoCollector,0)
58 #endif
59 
60 };
61 
62 #endif
63 
Definition: CTH.hh:45
Definition: CTH.hh:74
Definition: CTH.hh:59