11void hist062_TH1_timeonaxis2()
13 auto ct2 =
new TCanvas(
"ct2",
"ct2", 10, 10, 700, 500);
15 TDatime T0(2003, 1, 1, 0, 0, 0);
16 int X0 = T0.Convert();
21 int X1 =
T1.Convert() - X0;
25 int X2 =
T2.Convert(1) - X0;
27 auto h1 =
new TH1F(
"h1",
"test", 100, X1, X2);
30 for (
Int_t i = 0; i < 30000; i++) {
31 Double_t noise =
r.Gaus(0.5 * (X1 + X2), 0.1 * (X2 - X1));
35 h1->GetXaxis()->SetTimeDisplay(1);
36 h1->GetXaxis()->SetLabelSize(0.03);
37 h1->GetXaxis()->SetTimeFormat(
"%Y/%m/%d");
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
1-D histogram with a float per channel (see TH1 documentation)
This is the base class for the ROOT Random number generators.