1
0
mirror of synced 2024-11-09 22:48:53 +01:00
modern-cmake/examples/root-dict/CheckLoad.C
Henry Fredrick Schreiner cf824ab47c Examples all build and test
2018-03-29 12:27:23 +02:00

12 lines
264 B
C

{
gSystem->Load("libDictExample");
Simple s;
cout << s.GetX() << endl;
TFile *_file = TFile::Open("tmp.root", "RECREATE");
gDirectory->WriteObject(&s, "MyS");
Simple *MyS = nullptr;
gDirectory->GetObject("MyS", MyS);
cout << MyS->GetX() << endl;
_file->Close();
}