Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
@@ -0,0 +1,31 @@
// 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: G4PHCofThisEvent.cc,v 1.6 1999/12/02 16:10:22 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#include "G4PHCofThisEvent.hh"
G4PHCofThisEvent::G4PHCofThisEvent()
{
HC.resize(10);
}
G4PHCofThisEvent::~G4PHCofThisEvent()
{;}
void G4PHCofThisEvent::AddHitsCollection(G4int HCID,
HepRef(G4PVHitsCollection) aHC)
{
if(HCID>=0)
{
if(HCID>=HC.size()) HC.resize(HCID+1);
HC[HCID] = aHC;
}
}
@@ -1,19 +1,29 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4PVHit.cc,v 1.1 1999/01/07 16:10:45 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// Takashi.Sasaki@kek.jp
// $Id: G4PVHit.cc,v 1.4 1999/11/24 20:27:24 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#include "G4PVHit.hh"
#include "G4VHit.hh"
#include "globals.hh"
G4PVHit::G4PVHit()
{
}
{;}
G4PVHit::~G4PVHit()
{;}
int G4PVHit::operator==(const G4PVHit &right) const
{ return false; }
void G4PVHit::Draw()
{;}
void G4PVHit::Print()
{;}
@@ -0,0 +1,31 @@
// 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: G4PVHitsCollection.cc,v 1.8 1999/11/28 21:54:16 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// G4PVHitsCollection
#include <assert.h>
#include "G4PVHitsCollection.hh"
#include "G4PersistentHitMan.hh"
#include "G4PHCofThisEvent.hh"
G4PVHitsCollection::G4PVHitsCollection(G4String detName,G4String colNam)
: pcollectionName(colNam), pSDname(detName)
{;}
G4PVHitsCollection::~G4PVHitsCollection()
{;}
int G4PVHitsCollection::operator==(const G4PVHitsCollection &right) const
{
return ((pcollectionName==right.pcollectionName)
&&(pSDname==right.pSDname));
}
@@ -0,0 +1,39 @@
// 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: G4PersistentHitMan.cc,v 1.4 1999/11/28 21:54:16 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// class G4PersistentHitMan
//
// History:
// 99.11.16 Y.Morita Initial version
#include "G4PersistentHitMan.hh"
G4PersistentHitMan* G4PersistentHitMan::f_PersistentHitMan = NULL;
G4PersistentHitMan* G4PersistentHitMan::GetPersistentHitMan()
{
if(!f_PersistentHitMan)
{
f_PersistentHitMan = new G4PersistentHitMan;
}
return f_PersistentHitMan;
}
G4PersistentHitMan* G4PersistentHitMan::get_PersistentHitManIfExist()
{ return f_PersistentHitMan; }
G4PersistentHitMan::G4PersistentHitMan()
: f_CurrentPHCofThisEvent(NULL)
{;}
G4PersistentHitMan::~G4PersistentHitMan()
{;}