42 for (
auto p : fHistoryData) {
49 if (!fHistoryMap.count(Property))
51 fHistoryMap[Property]=fHistoryData.size();
53 fHistoryData.push_back(
data);
55 int iHistory=fHistoryMap.at(Property);
57 fHistoryData.at(iHistory)->push_back({stage,
value});
63 for (
const auto &element : fHistoryMap ) {
64 TString property = element.first;
65 Int_t iHistory = element.second;
66 Int_t nBins=fHistoryData.at(iHistory)->size();
67 Double_t xMin=fHistoryData.at(iHistory)->front().first;
68 Double_t xMax=fHistoryData.at(iHistory)->back().first;
70 TH1D*
h=
new TH1D(
"TrainingHistory_"+Name+
"_"+
property,
"TrainingHistory_"+Name+
"_"+
property,nBins,xMin-0.5*BinSize,xMax+0.5*BinSize);
71 for (
int i=0; i<nBins; i++) {
72 h->AddBinContent(i+1,fHistoryData.at(iHistory)->at(i).second);
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t property
1-D histogram with a double per channel (see TH1 documentation)}
void AddValue(TString Property, Int_t stage, Double_t value)
std::vector< std::pair< Int_t, Double_t > > IterationRecord
virtual ~TrainingHistory()
void SaveHistory(TString Name)
TrainingHistory()
constructor