#include "HistoMaker.h"

int test(){
  
  HistoMaker hmaker;
  vector<TH1F*> histos;

  for(int iter = 0; iter < 10; iter++){
    cout << "Iteration: " << iter << endl;
    histos = hmaker.GetHistos(4,0.,1.,1000,iter); // 4 gaussians, 1000 entries
    for(int h = 0; h < 4; h++){
      string name = histos[h]->GetName();
      histos[h]->SetFillColor(11);
      delete histos[h]; histos[h] = 0;
      cout << "deleted " << name << endl;
    }
  }


  return EXIT_SUCCESS;
}
 

