27 #include "StHbtMaker/Infrastructure/StHbtHistoCollector.h"
28 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
42 StHbtHistoCollector::StHbtHistoCollector() {
43 cout <<
" StHbtHistoCollector::StHbtHistoCollector() " << endl;
47 void StHbtHistoCollector::Add(
CTH1D* h) { m1DList.push_back(h); }
48 void StHbtHistoCollector::Add(
CTH2D* h) { m2DList.push_back(h); }
49 void StHbtHistoCollector::Add(
CTH3D* h) { m3DList.push_back(h); }
52 void StHbtHistoCollector::Clear() {
58 void StHbtHistoCollector::Write() {
59 {
for (CTH1DIterator iter=m1DList.begin(); iter!=m1DList.end(); iter++) {
60 TH1D temp( (TH1D&)(**iter) );
64 {
for (CTH2DIterator iter=m2DList.begin(); iter!=m2DList.end(); iter++) {
65 TH2D temp( (TH2D&)(**iter) );
69 {
for (CTH3DIterator iter=m3DList.begin(); iter!=m3DList.end(); iter++) {
70 TH3D temp( (TH3D&)(**iter) );