1
0
mirror of synced 2024-12-22 20:50:00 +01:00
Henry Fredrick Schreiner 2d7cb87893 Adding ROOT, moving to term
2018-03-28 20:50:38 +02:00

12 lines
262 B
C

{
gSystem->Load("libMyExample");
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();
}