Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TestReadWriteSkymapObject.C
Go to the documentation of this file.
1 {
2  //
3  // Write & Read config object to/from root file
4  // Author : Gabriele Vedovato
5 
6  skymap sm(int(7));
7 
9 
10  TFile *froot = new TFile("test.root", "RECREATE");
11  sm1.Write("sm1");
12  froot->Close();
13 
14  TFile *f = new TFile("test.root");
15 
16  f->ls();
17 
18  skymap *ism = (skymap*)f->Get("sm1");
19 
20  f->Close();
21 
22  exit(0);
23 }
TFile * froot
TFile * f
Definition: skymap.hh:45
skymap sm1
exit(0)
skymap * ism