I read every tread on the forum about plotting the histograms with unix time converted to human-readable time, but can’t get it to work. In root 6.06/02 there is a crash, and in root 6.12/06 the plot is displayed, but all the x-axis values are listed as ‘invalid’. I attached the file and the commands I use in the interpreter.
Appreciate your help!
TFile f("outputCalibratedCrystals.root"); TH1D* ht = (TH1D*)f.Get("timeE"); ht->GetXaxis()->SetTimeDisplay(1); ht->GetXaxis()->SetLabelSize(0.03); ht->GetXaxis()->SetTimeFormat("%H:%M"); ht->GetXaxis()->SetTimeOffset(0, "gmt"); ht->Draw();
outputCalibratedCrystals.root (341.2 KB)