38 #include "Cintex/Cintex.h"
40 #include "G4HCofThisEvent.hh"
55 gSystem->Load(
"libExP01ClassesDict");
57 ROOT::Cintex::Cintex::SetDebug(0);
58 ROOT::Cintex::Cintex::Enable();
61 fFile =
new TFile(
"hits.root",
"RECREATE");
86 std::ostringstream os;
88 std::string stevt =
"Event_" + os.str();
89 const char* chevt = stevt.c_str();
91 std::cout <<
"writing " << stevt << std::endl;
94 fFile->WriteObject(hcont, chevt);
static RootIO * GetInstance()
void Write(std::vector< ExP01TrackerHit * > *)
Definition of the RootIO class.
Root IO implementation for the persistency example.