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,30 @@
// 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: PersEx02DetectorConstruction.hh,v 1.3 1999/11/29 18:15:28 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef PersEx02DetectorConstruction_h
#define PersEx02DetectorConstruction_h 1
#include "G4VUserDetectorConstruction.hh"
#include "globals.hh"
class PersEx02DetectorConstruction : public G4VUserDetectorConstruction
{
public:
PersEx02DetectorConstruction();
~PersEx02DetectorConstruction();
public:
G4VPhysicalVolume* Construct();
};
#endif
@@ -0,0 +1,36 @@
// 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: PersEx02EventAction.hh,v 1.3 1999/11/29 18:23:31 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef PersEx02EventAction_h
#define PersEx02EventAction_h 1
#include "G4UserEventAction.hh"
#include "globals.hh"
class PersEx02EventAction : public G4UserEventAction
{
public:
PersEx02EventAction();
virtual ~PersEx02EventAction();
public:
virtual void BeginOfEventAction(const G4Event*);
virtual void EndOfEventAction(const G4Event*);
private:
G4int colID1;
G4int colID2;
};
#endif
@@ -0,0 +1,52 @@
// 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: PersEx02PhysicsList.hh,v 1.3 1999/11/29 18:23:32 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef PersEx02PhysicsList_h
#define PersEx02PhysicsList_h 1
#include "G4VUserPhysicsList.hh"
#include "globals.hh"
class PersEx02PhysicsList: public G4VUserPhysicsList
{
public:
PersEx02PhysicsList();
virtual ~PersEx02PhysicsList();
protected:
// Construct particle and physics
virtual void ConstructParticle();
virtual void ConstructProcess();
//
virtual void SetCuts();
protected:
// these methods Construct particles
virtual void ConstructBosons();
virtual void ConstructLeptons();
virtual void ConstructMesons();
virtual void ConstructBaryons();
virtual void ConstructIons();
protected:
// these methods Construct physics processes and register them
virtual void ConstructGeneral();
virtual void ConstructEM();
virtual void ConstructHad();
virtual void ConstructLeptHad();
};
#endif
@@ -0,0 +1,35 @@
// 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: PersEx02PrimaryGeneratorAction.hh,v 1.3 1999/11/29 18:23:32 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef PersEx02PrimaryGeneratorAction_h
#define PersEx02PrimaryGeneratorAction_h 1
#include "G4VUserPrimaryGeneratorAction.hh"
class G4ParticleGun;
class G4Event;
class PersEx02PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
public:
PersEx02PrimaryGeneratorAction();
~PersEx02PrimaryGeneratorAction();
public:
void GeneratePrimaries(G4Event* anEvent);
private:
G4ParticleGun* particleGun;
};
#endif
@@ -0,0 +1,34 @@
// 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: PersEx02RunAction.hh,v 1.3 1999/11/29 18:23:32 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef PersEx02RunAction_h
#define PersEx02RunAction_h 1
#include "G4UserRunAction.hh"
#include "globals.hh"
class G4Run;
class PersEx02RunAction : public G4UserRunAction
{
public:
PersEx02RunAction();
virtual ~PersEx02RunAction();
public:
virtual void BeginOfRunAction(const G4Run* aRun);
virtual void EndOfRunAction(const G4Run* aRun);
private:
};
#endif
@@ -0,0 +1,35 @@
// 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: PersEx02StackingAction.hh,v 1.2 1999/11/29 18:23:33 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef PersEx02StackingAction_H
#define PersEx02StackingAction_H 1
#include "globals.hh"
#include "G4UserStackingAction.hh"
#include "G4ThreeVector.hh"
class G4Track;
class PersEx02StackingAction : public G4UserStackingAction
{
public:
PersEx02StackingAction();
virtual ~PersEx02StackingAction();
public:
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* aTrack);
virtual void NewStage();
virtual void PrepareNewEvent();
};
#endif
@@ -0,0 +1,53 @@
// 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: PersEx02TrackerHit.ddl,v 1.4 1999/11/29 19:27:52 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef PersEx02TrackerHit_h
#define PersEx02TrackerHit_h 1
#include "G4PVHit.hh"
#include "G4ThreeVector.hh"
#include "G4PersistentTypes.hh"
#include "HepODBMS/odbms/HepODBMS.h"
class PersEx02TrackerHit
: public G4PVHit
{
public:
PersEx02TrackerHit();
~PersEx02TrackerHit();
PersEx02TrackerHit(const PersEx02TrackerHit &right);
const PersEx02TrackerHit& operator=(const PersEx02TrackerHit &right);
int operator==(const PersEx02TrackerHit &right) const;
void Draw();
void Print();
private:
G4Pdouble edep;
G4ThreeVector pos;
public:
inline void SetEdep(G4double de)
{ edep = de; };
inline G4double GetEdep()
{ return edep; };
inline void SetPos(G4ThreeVector xyz)
{ pos = xyz; };
inline G4ThreeVector GetPos()
{ return pos; };
};
#endif
@@ -0,0 +1,64 @@
// 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: PersEx02TrackerHitsCollection.ddl,v 1.3 1999/11/29 18:23:33 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef PersEx02TrackerHitsCollection_h
#define PersEx02TrackerHitsCollection_h 1
#include "HepODBMS/odbms/HepODBMS.h"
#include "HepODBMS/clustering/HepClusteringHint.h"
#include "G4PersistentTypes.hh"
#include "G4PVHit.hh"
#include "G4PVHitsCollection.hh"
#include "G4ThreeVector.hh"
#include "PersEx02TrackerHit.hh"
typedef d_Varray< d_Ref<PersEx02TrackerHit> > PersEx02TrackerHitsVArray;
class PersEx02TrackerHitsCollection
: public G4PVHitsCollection
{
public:
PersEx02TrackerHitsCollection(G4String dName, G4String aName);
~PersEx02TrackerHitsCollection();
void DrawAllHits();
void PrintAllHits();
public:
static HepClusteringHint clustering;
private:
PersEx02TrackerHitsVArray hitsCollection;
size_t elems;
public:
inline void Insert(d_Ref<PersEx02TrackerHit> pHit)
{
size_t curSize = hitsCollection.size();
if (elems >= curSize)
hitsCollection.resize(curSize + 1024);
hitsCollection[elems++] = pHit;
};
inline void ShrinkToFit()
{ hitsCollection.resize(elems); };
inline size_t size() const
{ return hitsCollection.size(); }
inline HepRef(PersEx02TrackerHit) element(const size_t i) const
{ return hitsCollection[i]; }
inline HepRef(PersEx02TrackerHit) operator[](const size_t i) const
{ return hitsCollection[i]; }
};
#endif
@@ -0,0 +1,44 @@
// 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: PersEx02TrackerSD.hh,v 1.3 1999/11/29 18:23:33 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef PersEx02TrackerSD_h
#define PersEx02TrackerSD_h 1
#include "G4VSensitiveDetector.hh"
#include "PersEx02TrackerHitsCollection.hh"
#include "G4Step.hh"
#include "HepODBMS/odbms/HepODBMS.h"
class G4PersistentHitMan;
class PersEx02TrackerSD : public G4VSensitiveDetector
{
public:
PersEx02TrackerSD(G4String name);
~PersEx02TrackerSD();
void Initialize(G4HCofThisEvent*HCE);
G4bool ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist);
void EndOfEvent(G4HCofThisEvent*HCE);
void clear();
void DrawAll();
void PrintAll();
private:
G4PersistentHitMan* f_hitMan;
HepRef(PersEx02TrackerHitsCollection) EvenCollection;
HepRef(PersEx02TrackerHitsCollection) OddCollection;
HepContainerRef hitContainer;
};
#endif