Files
geant4/examples/extended/persistency/rootio/include/G4EventRootIO.hh
T
2016-06-08 16:57:27 +02:00

84 lines
2.9 KiB
C++

//
// ********************************************************************
// * 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: G4EventRootIO.hh,v 1.3 2002/12/13 14:45:41 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
// File: G4EventRootIO.hh
//
// History:
// '02.5.7 Youhei Morita Initial creation
#ifndef EVENT_ROOT_IO_HH
#define EVENT_ROOT_IO_HH 1
#include "G4Event.hh"
#include "G4PersistencyCenter.hh"
#include "G4RootIOManager.hh"
#include "G4HitRootIO.hh"
#include "G4DigitRootIO.hh"
#include "G4HepMCRootIO.hh"
#include "G4MCTruthRootIO.hh"
#include "G4RootEvent.hh"
// Class inherited:
#include "G4VPEventIO.hh"
// Class Description:
// Manager class to store and retrieve G4Event objects
class G4EventRootIO
: public G4VPEventIO
{
public: // With description
G4EventRootIO( G4PersistencyManager* pc );
// Constructor
virtual ~G4EventRootIO(){};
// Destructor
public: // With description
// G4bool Store( HepMC::GenEvent* hepevt, G4MCTEvent* mctevt, const G4Event* g4evt);
G4bool Store( HepMC::GenEvent* hepevt, const G4Event* g4evt);
// Store a FADS event.
G4bool Store( const G4Event* anEvent );
// Store a Geant4 event.
G4bool Retrieve( G4Pevent*& anEvent );
// Retrieve a FADS event.
G4bool Retrieve( G4Event*& anEvent );
// Retrieve a Geant4 event.
private:
G4PersistencyManager* f_pc;
G4HepMCRootIO* f_hepmcio;
G4MCTruthRootIO* f_mctruthio;
G4HitRootIO* f_PHCMan;
G4DigitRootIO* f_PDCMan;
}; // End of class G4EventRootIO
#endif