// // main.cpp // TestCanvas // // Created by Shihong Fu on 2023/4/4. // #include #include #include #include int main(int argc, const char * argv[]) { // insert code here... TApplication* myApp = new TApplication("myApp", 0, 0); TCanvas* thresholds_distr = new TCanvas("c1","c1",950,10,600,400); TH1D* h_thrs__1 = new TH1D("h1", "h1", 50, 0, 50); h_thrs__1->Fill(100); thresholds_distr->cd(); h_thrs__1->Draw(); thresholds_distr->Modified(); thresholds_distr->Update(); myApp->Run(); std::cout << "Hello, world!" << std::endl; return 0; }