Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -5,14 +5,26 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PEvent.ddl,v 1.8 1999/11/28 21:54:17 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4PEvent.ddl,v 1.10 2000/12/05 14:40:02 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
|
||||
// Class Description:
|
||||
//
|
||||
// This is a class which represent a persistent event in Geant4.
|
||||
// A persistent event object is constructed by
|
||||
// G4PersistentEventMan::Store() or read back from a database
|
||||
// by G4PersistentEventMan::Retrieve().
|
||||
// G4PersistentEventMan::Store() passes a pointer of a transient
|
||||
// G4Event object. The G4PEvent object construct itself by copying
|
||||
// the data member of G4Event, and by creating corresponting
|
||||
// persistent objects of primary vertex, particles, hits and digits.
|
||||
//
|
||||
|
||||
#ifndef G4PEvent_h
|
||||
#define G4PEvent_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4Pglobals.hh"
|
||||
#include "G4PersistentTypes.hh"
|
||||
#include "G4PersistentSchema.hh"
|
||||
|
||||
@@ -29,16 +41,19 @@ class G4PEvent
|
||||
: public HepPersObj
|
||||
|
||||
{
|
||||
public:
|
||||
public: // with description
|
||||
G4PEvent();
|
||||
G4PEvent(const G4Event *evt);
|
||||
G4PEvent(const G4Event *evt,
|
||||
HepRef(G4PHCofThisEvent) pHC,
|
||||
HepRef(G4PDCofThisEvent) pDC);
|
||||
// Constructors.
|
||||
void InitPEvent(const G4Event *evt,
|
||||
HepRef(G4PHCofThisEvent) pHC,
|
||||
HepRef(G4PDCofThisEvent) pDC);
|
||||
// Actual constructor to be called by the above.
|
||||
~G4PEvent();
|
||||
// Destructor.
|
||||
|
||||
private:
|
||||
// event ID
|
||||
@@ -57,10 +72,11 @@ class G4PEvent
|
||||
// TrajectoryContainer (not supported yet)
|
||||
// d_Ref<G4PTrajectoryContainer> trajectoryContainer;
|
||||
|
||||
public:
|
||||
public: // with description
|
||||
void SetEventID(const G4Event *evt);
|
||||
inline G4int GetEventID() const
|
||||
{ return eventID; }
|
||||
// Set and get event ID.
|
||||
|
||||
inline void AddPrimaryVertex( HepRef(G4PPrimaryVertex) aPrimaryVertex)
|
||||
{
|
||||
@@ -70,9 +86,11 @@ class G4PEvent
|
||||
{ thePrimaryVertex->SetNext( aPrimaryVertex ); }
|
||||
numberOfPrimaryVertex++;
|
||||
}
|
||||
// Adds another primary vertex to the vertex chain.
|
||||
|
||||
inline G4int GetNumberOfPrimaryVertex() const
|
||||
{ return numberOfPrimaryVertex; }
|
||||
// Get the number of primary vertecies in the chain.
|
||||
|
||||
inline HepRef(G4PPrimaryVertex) GetPrimaryVertex(G4int i=0) const
|
||||
{
|
||||
@@ -91,16 +109,19 @@ class G4PEvent
|
||||
else
|
||||
{ return NULL; }
|
||||
}
|
||||
// returns a smart pointer of the i-th primary vertex.
|
||||
|
||||
inline void SetHCofThisEvent( HepRef(G4PHCofThisEvent) value)
|
||||
{ HC = value; }
|
||||
inline HepRef(G4PHCofThisEvent) GetHCofThisEvent() const
|
||||
{ return HC; }
|
||||
// Sets and gets a smart pointer of the hits collections of this event.
|
||||
|
||||
inline void SetDCofThisEvent( HepRef(G4PDCofThisEvent) value)
|
||||
{ DC = value; }
|
||||
inline HepRef(G4PDCofThisEvent) GetDCofThisEvent() const
|
||||
{ return DC; }
|
||||
// Sets and gets a smart pointer of the digits collections of this event.
|
||||
|
||||
// inline void SetTrajectoryContainer(G4TrajectoryContainer*value)
|
||||
// { trajectoryContainer = value; }
|
||||
@@ -108,6 +129,8 @@ class G4PEvent
|
||||
// { return trajectoryContainer; }
|
||||
|
||||
G4Event* MakeTransientObject();
|
||||
// Construct a transient G4Event object from the data members of
|
||||
// G4PEvent.
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PPrimaryParticle.ddl,v 1.1 1999/12/05 22:32:25 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4PPrimaryParticle.ddl,v 1.2 2000/11/02 12:41:59 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
|
||||
#ifndef G4PPrimaryParticle_h
|
||||
#define G4PPrimaryParticle_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4Pglobals.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4PersistentTypes.hh"
|
||||
#include "G4PersistentSchema.hh"
|
||||
|
||||
@@ -5,16 +5,21 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PPrimaryVertex.ddl,v 1.7 1999/12/05 22:32:26 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4PPrimaryVertex.ddl,v 1.9 2000/12/05 14:40:02 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
|
||||
// Class Description:
|
||||
// This is a class which represent a persistent primary vertex
|
||||
// in Geant4. It is constructed by a G4PEvent object with a pointer
|
||||
// of transient G4PrimaryVertex object.
|
||||
//
|
||||
|
||||
|
||||
#ifndef G4PPrimaryVertex_h
|
||||
#define G4PPrimaryVertex_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4Pglobals.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4PersistentTypes.hh"
|
||||
#include "G4PersistentSchema.hh"
|
||||
@@ -28,12 +33,14 @@ class G4PPrimaryParticle;
|
||||
class G4PPrimaryVertex
|
||||
: public HepPersObj
|
||||
{
|
||||
public:
|
||||
public: // with description
|
||||
G4PPrimaryVertex();
|
||||
G4PPrimaryVertex(const G4PrimaryVertex* vertex);
|
||||
~G4PPrimaryVertex();
|
||||
// Constructors and destructor.
|
||||
|
||||
G4PrimaryVertex* MakeTransientObject();
|
||||
// Creates a transient primary vertex object and returns the pointer.
|
||||
|
||||
private:
|
||||
G4Pdouble X0;
|
||||
@@ -45,7 +52,7 @@ class G4PPrimaryVertex
|
||||
d_Ref<G4PPrimaryVertex> nextVertex;
|
||||
G4Pint numberOfParticle;
|
||||
|
||||
public:
|
||||
public: // with description
|
||||
inline G4ThreeVector GetPosition() const
|
||||
{ return G4ThreeVector(X0,Y0,Z0); }
|
||||
inline G4double GetX0() const
|
||||
@@ -58,9 +65,9 @@ class G4PPrimaryVertex
|
||||
{ return T0; }
|
||||
inline G4int GetNumberOfParticle() const
|
||||
{ return numberOfParticle; }
|
||||
// Get methods to read the vertex values.
|
||||
|
||||
HepRef(G4PPrimaryParticle) GetPrimary(G4int i) const;
|
||||
|
||||
inline void SetNext(HepRef(G4PPrimaryVertex) nv)
|
||||
{
|
||||
if(nextVertex == NULL)
|
||||
@@ -68,9 +75,9 @@ class G4PPrimaryVertex
|
||||
else
|
||||
{ nextVertex->SetNext(nv); }
|
||||
}
|
||||
|
||||
inline HepRef(G4PPrimaryVertex) GetNext() const
|
||||
{ return nextVertex; }
|
||||
// Set and Get methods to navigate thru the vertex chain.
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -5,15 +5,17 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PersistentEventMan.hh,v 1.9 1999/11/28 21:54:17 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4PersistentEventMan.hh,v 1.11 2000/12/15 07:54:49 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// class G4PersistentEventMan
|
||||
//
|
||||
// A Utility class for storing and retrieving the event objects.
|
||||
|
||||
// Class Description:
|
||||
// A Utility class to be used by G4PersistencyManager.
|
||||
// Average users do not need to use this class.
|
||||
//
|
||||
// This class is not persistent-capable.
|
||||
//
|
||||
|
||||
// Member functions:
|
||||
// =================
|
||||
// G4bool Store(HepDbApplication* dbApp,
|
||||
|
||||
Reference in New Issue
Block a user