// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // $Id: G4RootIOManager.hh,v 1.3 2002/12/13 14:45:41 gunter Exp $ // GEANT4 tag $Name: geant4-05-01 $ // // File: G4RootIOManager.hh // // History: // '02.5.7 Youhei Morita Initial creation #ifndef ROOT_IO_MANAGER_HH #define ROOT_IO_MANAGER_HH 1 #include "G4Event.hh" #include "G4Run.hh" #include "G4VPhysicalVolume.hh" #include #include class G4VPHitIO; class G4VPDigitIO; class VPHepMCIO; class VPMCTruthIO; class G4RootTransManager; class G4HitRootIO; class G4DigitRootIO; class G4EventRootIO; class G4HepMCRootIO; class G4MCTruthRootIO; // Class inherited: #include "G4PersistencyManager.hh" // Class Description: // Implementation of G4PersistencyManager with ROOT I/O package class G4RootIOManager : public G4PersistencyManager { friend class G4RootTransManager; public: // With description G4RootIOManager(G4PersistencyCenter* pc, std::string n); // Constructor virtual ~G4RootIOManager(); // Destructor public: // With description G4VPHitIO* HitIO() { return (G4VPHitIO*) f_G4HitRootIO; }; // returns the hit I/O handling manager. G4VPDigitIO* DigitIO() { return (G4VPDigitIO*) f_G4DigitRootIO; }; // returns the digit I/O handling manager. G4VPEventIO* EventIO() { return (G4VPEventIO*) f_G4EventRootIO; }; // returns the event I/O handling manager. G4VHepMCIO* HepMCIO() { return (G4VHepMCIO*) f_G4HepMCRootIO; }; // returns the HepMC event I/O handling manager. G4VMCTruthIO* MCTruthIO() { return (G4VMCTruthIO*) f_G4MCTruthRootIO; }; // returns the HepMC event I/O handling manager. G4VTransactionManager* TransactionManager() { return (G4VTransactionManager*) f_G4RootTransManager; }; // returns the event I/O handling manager. void Initialize(); // Initialize the ROOT I/O package. private: G4PersistencyManager* Create() {return 0;}; // Dummy in this class (used by PersistentManagerT). private: G4RootTransManager* f_G4RootTransManager; G4HitRootIO* f_G4HitRootIO; G4DigitRootIO* f_G4DigitRootIO; G4EventRootIO* f_G4EventRootIO; G4HepMCRootIO* f_G4HepMCRootIO; G4MCTruthRootIO* f_G4MCTruthRootIO; }; // End of class G4RootIOManager #endif