Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
|
||||
#ifndef ExE01DetectorConstruction_h
|
||||
#define ExE01DetectorConstruction_h 1
|
||||
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class ExE01DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
ExE01DetectorConstruction();
|
||||
~ExE01DetectorConstruction();
|
||||
|
||||
public:
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
private:
|
||||
G4double expHall_x;
|
||||
G4double expHall_y;
|
||||
G4double expHall_z;
|
||||
|
||||
G4double calBox_x;
|
||||
G4double calBox_y;
|
||||
G4double calBox_z;
|
||||
G4double rotAngle;
|
||||
G4double calPos;
|
||||
|
||||
G4double trackerRadius;
|
||||
G4double trackerHight;
|
||||
G4double trackerPos;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
// $Id: ExE01PhysicsList.hh,v 1.1 1998/10/14 15:19:38 allison Exp $
|
||||
// ------------------------------------------------------------
|
||||
#ifndef ExE01PhysicsList_h
|
||||
#define ExE01PhysicsList_h 1
|
||||
|
||||
#include "G4VUserPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class ExE01PhysicsList: public G4VUserPhysicsList
|
||||
{
|
||||
public:
|
||||
ExE01PhysicsList();
|
||||
virtual ~ExE01PhysicsList();
|
||||
|
||||
protected:
|
||||
// Construct particle and physics
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructProcess();
|
||||
|
||||
//
|
||||
virtual void SetCuts(G4double cut);
|
||||
|
||||
protected:
|
||||
// these methods Construct particles
|
||||
virtual void ConstructBosons();
|
||||
virtual void ConstructLeptons();
|
||||
|
||||
protected:
|
||||
// these methods Construct physics processes and register them
|
||||
virtual void ConstructEM();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
#ifndef ExE01PrimaryGeneratorAction_h
|
||||
#define ExE01PrimaryGeneratorAction_h 1
|
||||
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
|
||||
class G4ParticleGun;
|
||||
class G4Event;
|
||||
|
||||
class ExE01PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
ExE01PrimaryGeneratorAction();
|
||||
~ExE01PrimaryGeneratorAction();
|
||||
|
||||
public:
|
||||
void GeneratePrimaries(G4Event* anEvent);
|
||||
|
||||
private:
|
||||
G4ParticleGun* particleGun;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
// $Id: ExE01RunAction.hh,v 1.1 1998/10/14 15:19:39 allison Exp $
|
||||
|
||||
#ifndef ExE01RunAction_h
|
||||
#define ExE01RunAction_h 1
|
||||
|
||||
#include "G4UserRunAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include "HepODBMS/clustering/HepDbApplication.h"
|
||||
#include "histograms.h"
|
||||
class G4Run;
|
||||
|
||||
class ExE01RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
ExE01RunAction() { runIDcounter = 0; }
|
||||
~ExE01RunAction() {}
|
||||
|
||||
void BeginOfRunAction(G4Run* aRun);
|
||||
void EndOfRunAction(G4Run* aRun);
|
||||
|
||||
static HepRef(Histo1D) get_1d() { return myHisto1D; }
|
||||
static HepRef(Histo2D) Get2d() { return myHisto2D; }
|
||||
|
||||
private:
|
||||
G4int runIDcounter;
|
||||
|
||||
static HepRef(Histo1D) myHisto1D;
|
||||
static HepRef(Histo2D) myHisto2D;
|
||||
|
||||
HepDbApplication dbApp;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
// $Id: ExE01SteppingAction.hh,v 1.1 1998/10/14 15:19:40 allison Exp $
|
||||
|
||||
#ifndef ExE01SteppingAction_h
|
||||
#define ExE01SteppingAction_h 1
|
||||
|
||||
#include "G4UserSteppingAction.hh"
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
|
||||
#include "histograms.h"
|
||||
|
||||
class ExE01SteppingAction : public G4UserSteppingAction {
|
||||
private:
|
||||
HepJamesRandom theJamesEngine;
|
||||
DRand48Engine theDRand48Engine;
|
||||
|
||||
public:
|
||||
ExE01SteppingAction(){};
|
||||
~ExE01SteppingAction(){};
|
||||
|
||||
void UserSteppingAction();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user