Root IO implementation for the persistency example.
More...
#include <Doxymodules_persistency.h>
Root IO implementation for the persistency example.
- Author
- Witold POKORSKI
- Date
- 2005-10-27
Definition at line 90 of file Doxymodules_persistency.h.
◆ ~RootIO()
◆ RootIO()
Definition at line 49 of file RootIO.cc.
50{
51
52 TSystem ts;
53 gSystem->Load("libExP01ClassesDict");
54
55
56
57 fFile =
new TFile(
"hits.root",
"RECREATE");
58}
◆ GetInstance()
RootIO * RootIO::GetInstance |
( |
| ) |
|
|
static |
◆ Write()
Definition at line 78 of file RootIO.cc.
79{
81
82 std::ostringstream os;
84 std::string stevt = "Event_" + os.str();
85 const char* chevt = stevt.c_str();
86
87 G4cout << "writing " << stevt << G4endl;
88
89 fFile->WriteObject(hcont, chevt);
90
91}
◆ Close()
◆ fFile
◆ fNevents
The documentation for this class was generated from the following files: