StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHistMaker.cxx
1 //
3 // Code that will collect all histograms that were added together in
4 // StHistUtil::AddHists - has to be in a maker in order to write it out
5 //
7 
8 #include "StHistMaker.h"
9 #include "StHistUtil.h"
10 #include "StMessMgr.h"
11 #include "TH1.h"
12 #include "TList.h"
13 #include "TString.h"
14 
15 ClassImp(StHistMaker)
16 
17 //_____________________________________________________________________________
18 StHistMaker::StHistMaker(const char *name, const char *title) :
19  StMaker(name), mHArray(0) {
20  mHArraySize = 0;
21 }
22 
23 //_____________________________________________________________________________
25  return StMaker::Finish();
26 }
27 
28 //_____________________________________________________________________________
29 Int_t StHistMaker::Init() {
30  return StMaker::Init();
31 }
32 
33 //_____________________________________________________________________________
35  //gMessMgr->Info() << "StHistMaker::Make(): "
36  // << "This is the array: " << mHArray << endm;
37  if (mHArraySize && !mHArray) {
38  gMessMgr->Error("StHistMaker::Make(): Array size non-zero, but no array.");
39  return kStErr;
40  }
41  for (int i=0; i<mHArraySize; i++) {
42  AddHist(mHArray[i]);
43  }
44 
45  return kStOK;
46 }
47 
48 //_____________________________________________________________________________
49 // $Id: StHistMaker.cxx,v 2.4 2003/09/19 22:58:11 genevb Exp $
50 // $Log: StHistMaker.cxx,v $
51 // Revision 2.4 2003/09/19 22:58:11 genevb
52 // Initialize pointers to zero, some doxygenization
53 //
54 // Revision 2.3 2003/09/02 17:59:21 perev
55 // gcc 3.2 updates + WarnOff
56 //
57 // Revision 2.2 2002/09/06 02:51:34 genevb
58 // Remove limit on maximum number of histograms that can be copied
59 //
60 // Revision 2.1 2001/05/16 20:57:03 lansdell
61 // new histograms added for qa_shift printlist; some histogram ranges changed; StMcEvent now used in StEventQA
62 //
63 // Revision 2.0 2000/08/25 16:02:40 genevb
64 // New revision: new structure, multiplicity classes
65 //
66 // Revision 1.2 2000/07/26 19:57:50 lansdell
67 // new histograms and functionality added (e.g., overlay several histograms, new printlist option qa_shift)
68 //
69 // Revision 1.1 2000/06/23 21:16:18 kathy
70 // code that will collect all histograms that were added together in StHistUtil::AddHists - has to be in a maker in order to write it out
71 //
72 //
73 
virtual Int_t Make()
Definition: StHistMaker.cxx:34
virtual Int_t Finish()
Definition: StHistMaker.cxx:24
Definition: Stypes.h:40
virtual Int_t Finish()
Definition: StMaker.cxx:776
Definition: Stypes.h:44