33 #include "Cintex/Cintex.h" 
   35 #include "G4HCofThisEvent.hh" 
   40 static RootIO* instance = 0;
 
   46   gSystem->Load(
"libExP01ClassesDict");
 
   48   ROOT::Cintex::Cintex::SetDebug(0);
 
   49   ROOT::Cintex::Cintex::Enable();
 
   52   fo = 
new TFile(
"hits.root",
"RECREATE");
 
   71   std::ostringstream os;
 
   73   std::string stevt = 
"Event_" + os.str(); 
 
   74   const char* chevt = stevt.c_str();
 
   76   std::cout << 
"writing " << stevt << std::endl;
 
   79   fo->WriteObject(hcont, chevt);