00001 00002 // 00003 // Code that will collect all histograms that were added together in 00004 // StHistUtil::AddHists - has to be in a maker in order to write it out 00005 // 00007 00008 #include "StHistMaker.h" 00009 #include "StHistUtil.h" 00010 #include "StMessMgr.h" 00011 #include "TH1.h" 00012 #include "TList.h" 00013 #include "TString.h" 00014 00015 ClassImp(StHistMaker) 00016 00017 //_____________________________________________________________________________ 00018 StHistMaker::StHistMaker(const char *name, const char *title) : 00019 StMaker(name), mHArray(0) { 00020 mHArraySize = 0; 00021 } 00022 00023 //_____________________________________________________________________________ 00024 Int_t StHistMaker::Finish() { 00025 return StMaker::Finish(); 00026 } 00027 00028 //_____________________________________________________________________________ 00029 Int_t StHistMaker::Init() { 00030 return StMaker::Init(); 00031 } 00032 00033 //_____________________________________________________________________________ 00034 Int_t StHistMaker::Make() { 00035 //gMessMgr->Info() << "StHistMaker::Make(): " 00036 // << "This is the array: " << mHArray << endm; 00037 if (mHArraySize && !mHArray) { 00038 gMessMgr->Error("StHistMaker::Make(): Array size non-zero, but no array."); 00039 return kStErr; 00040 } 00041 for (int i=0; i<mHArraySize; i++) { 00042 AddHist(mHArray[i]); 00043 } 00044 00045 return kStOK; 00046 } 00047 00048 //_____________________________________________________________________________ 00049 // $Id: StHistMaker.cxx,v 2.4 2003/09/19 22:58:11 genevb Exp $ 00050 // $Log: StHistMaker.cxx,v $ 00051 // Revision 2.4 2003/09/19 22:58:11 genevb 00052 // Initialize pointers to zero, some doxygenization 00053 // 00054 // Revision 2.3 2003/09/02 17:59:21 perev 00055 // gcc 3.2 updates + WarnOff 00056 // 00057 // Revision 2.2 2002/09/06 02:51:34 genevb 00058 // Remove limit on maximum number of histograms that can be copied 00059 // 00060 // Revision 2.1 2001/05/16 20:57:03 lansdell 00061 // new histograms added for qa_shift printlist; some histogram ranges changed; StMcEvent now used in StEventQA 00062 // 00063 // Revision 2.0 2000/08/25 16:02:40 genevb 00064 // New revision: new structure, multiplicity classes 00065 // 00066 // Revision 1.2 2000/07/26 19:57:50 lansdell 00067 // new histograms and functionality added (e.g., overlay several histograms, new printlist option qa_shift) 00068 // 00069 // Revision 1.1 2000/06/23 21:16:18 kathy 00070 // 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 00071 // 00072 // 00073
1.5.9