37#include "G4SDManager.hh"
38#include "G4HCofThisEvent.hh"
39#include "G4EventManager.hh"
53 gSystem->Load(
"libExP01ClassesDict");
57 fFile =
new TFile(
"hits.root",
"RECREATE");
82 std::ostringstream os;
84 std::string stevt =
"Event_" + os.str();
85 const char* chevt = stevt.c_str();
87 G4cout <<
"writing " << stevt << G4endl;
89 fFile->WriteObject(hcont, chevt);
Definition of the RootIO class.
Root IO implementation for the persistency example.
static RootIO * GetInstance()
void Write(std::vector< ExP01TrackerHit * > *)