Why no drawing in File I/O and Data Analysis?


ROOT Version: 6.28
Platform: windows 10
Compiler: visual studio 2022 C++


Why no drawing in File I/O and Data Analysis?


my_rootfile.root (3.8 KB)
read_from_file.C (252 Bytes)
write_to_file.C (371 Bytes)

    // Get the Histogram out
    auto h = in_file.Get<TH1F>("my_histogram");
    h->SetDirectory(0);
    // Draw it
    auto myCanvas = new TCanvas();
    h->Draw();
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.