720 std::map<std::string, TObjArray> allHistograms;
722 allHistograms[clustering] =
clusterAnalysis.at(clustering)->GetHistograms();
725 TFile*
file = TFile::Open(
"validationHistograms.root",
"RECREATE");
726 for (
auto clustering : fClusterModuleLabels) {
728 file->mkdir(clustering.c_str());
729 file->cd(clustering.c_str());
730 for (
int histIt = 0; histIt < allHistograms.begin()->second.GetEntriesFast(); ++histIt)
731 allHistograms.at(clustering).At(histIt)->Write();
735 for (
int histIt = 0; histIt < allHistograms.begin()->second.GetEntriesFast(); ++histIt) {
738 const char*
name = allHistograms.begin()->second.At(histIt)->GetName();
739 TLegend* l =
new TLegend(0.6, 0.8, 0.8, 0.9, name,
"brNDC");
741 for (std::map<std::string, TObjArray>::iterator clusteringIt = allHistograms.begin();
742 clusteringIt != allHistograms.end();
743 ++clusteringIt, ++clusterings) {
744 TH1*
h = (TH1*)allHistograms.at(clusteringIt->first).At(histIt);
745 h->SetLineColor(clusterings);
746 h->SetMarkerColor(clusterings);
747 if (clusterings == 1)
751 l->AddEntry(h, clusteringIt->first.c_str(),
"lp");
std::vector< std::string > fClusterModuleLabels
std::map< std::string, std::unique_ptr< ClusterAnalyser > > clusterAnalysis