Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
// This code implementation is the intellectual property of
// the RD44 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: G4PEvent.cc,v 2.1 1998/07/12 03:01:15 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
//
// G4PEvent
#include "G4PEvent.hh"
#include "G4PPrimaryVertex.hh"
G4PEvent::G4PEvent()
{
eventID =0;
// initialization of thePrimaryVertex is not necessary
// since Objectivity/DB will do it for you...
HepRef(G4PPrimaryVertex) thePrimaryVertex = NULL;
numberOfPrimaryVertex = 0;
// HC = NULL;
// trajectoryContainer = NULL;
}
G4PEvent::G4PEvent(const G4Event *evt)
{
eventID = evt->GetEventID();
const G4PrimaryVertex* PV = evt->GetPrimaryVertex();
if(PV)
{ HepRef(G4PPrimaryVertex) thePrimaryVertex = new G4PPrimaryVertex(PV); }
else
{ HepRef(G4PPrimaryVertex) thePrimaryVertex = NULL; }
// const G4TrajectoryContainer* TC = evt->GetTrajectoryContainer();
// if(TC)
// { trajectoryContainer = new G4PTrajectoryContainer(TC); }
// else
// { trajectoryContainer = NULL; }
}
G4PEvent::~G4PEvent()
{
// if(thePrimaryVertex) delete thePrimaryVertex;
// if(trajectoryContainer) delete trajectoryContainer;
}
@@ -0,0 +1,46 @@
// This code implementation is the intellectual property of
// the RD44 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: G4PPrimaryVertex.cc,v 2.2 1998/07/13 17:19:19 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
//
#include "G4PPrimaryVertex.hh"
#include "G4ios.hh"
G4PPrimaryVertex::G4PPrimaryVertex()
:X0(0.),Y0(0.),Z0(0.),T0(0.),numberOfParticle(0),nextVertex(NULL),
theParticle(NULL)
{;}
G4PPrimaryVertex::G4PPrimaryVertex(const G4PrimaryVertex* vertex)
{
X0 = vertex->GetX0();
Y0 = vertex->GetY0();
Z0 = vertex->GetZ0();
T0 = vertex->GetT0();
numberOfParticle = vertex->GetNumberOfParticle();
const G4PrimaryVertex* nextVX = vertex->GetNext();
if(nextVX)
{ nextVertex = new G4PPrimaryVertex(nextVX); }
else
{ nextVertex = NULL; }
theParticle = NULL;
}
G4PPrimaryVertex::~G4PPrimaryVertex()
{
if(theParticle != NULL)
{ delete theParticle; }
if(nextVertex != NULL)
{ delete nextVertex; }
}