Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 2.1 1998/07/02 15:27:17 gunter Exp $
# $Id: GNUmakefile,v 1.1 1999/01/07 16:06:19 gunter Exp $
# --------------------------------------------------------------
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
# --------------------------------------------------------------
+4 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 2.2 1998/08/21 10:18:24 allison Exp $
$Id: History,v 1.2 1999/04/16 12:08:12 kurasige Exp $
-------------------------------------------------------------------
=========================================================
@@ -14,6 +14,9 @@ track of all tags.
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
16th April 1999 H.Kurashige
- modify ExN06RunAction
- modify ExN06PhysicsList::SetCuts
21st August 1998 John Allison
- Changed file names from N06* to ExN06*.
+1 -1
View File
@@ -1,4 +1,4 @@
$Id: README,v 2.1 1998/08/26 00:42:44 gum Exp $
$Id: README,v 1.1 1999/01/07 16:06:20 gunter Exp $
-------------------------------------------------------------------
=========================================================
+6 -7
View File
@@ -25,18 +25,17 @@
//
// --------------------------------------------------------------
#include "G4ios.hh"
#include <stdlib.h>
#include "ExN06RunAction.hh"
#include "ExN06DetectorConstruction.hh"
#include "ExN06PrimaryGeneratorAction.hh"
#include "ExN06PhysicsList.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIterminal.hh"
#include "ExN06DetectorConstruction.hh"
#include "ExN06PrimaryGeneratorAction.hh"
#include "ExN06PhysicsList.hh"
#include "ExN06RunAction.hh"
#include "G4ios.hh"
#include <stdlib.h>
int main(int argc,char** argv) {
File diff suppressed because it is too large Load Diff
@@ -24,7 +24,7 @@ class ExN06PhysicsList : public G4VUserPhysicsList
virtual void ConstructProcess();
//
virtual void SetCuts(G4double aCut);
virtual void SetCuts();
protected:
// these methods Construct particles
@@ -42,3 +42,4 @@ class ExN06PhysicsList : public G4VUserPhysicsList
};
#endif /* ExN06PhysicsList_h */
@@ -9,8 +9,8 @@
#ifndef ExN06RunAction_h
#define ExN06RunAction_h 1
#include "globals.hh"
#include "G4Timer.hh"
#include "globals.hh"
#include "G4UserRunAction.hh"
class G4Run;
@@ -20,17 +20,16 @@ class ExN06RunAction : public G4UserRunAction
public:
ExN06RunAction();
~ExN06RunAction();
virtual ~ExN06RunAction();
public:
void BeginOfRunAction(G4Run* aRun);
void EndOfRunAction(G4Run* aRun);
virtual void BeginOfRunAction(const G4Run* aRun);
virtual void EndOfRunAction(const G4Run* aRun);
private:
G4Timer* timer;
G4int runIDcounter;
};
#endif /*ExN06RunAction_h*/
+6 -22
View File
@@ -219,28 +219,12 @@ void ExN06PhysicsList::ConstructOp()
}
}
void ExN06PhysicsList::SetCuts(G4double cut)
void ExN06PhysicsList::SetCuts()
{
if (verboseLevel >0){
if (verboseLevel >1){
G4cout << "ExN06PhysicsList::SetCuts:";
G4cout << "CutLength : " << cut/mm << " (mm)" << endl;
}
// set cut values for gamma at first and for e- second and next for e+,
// because some processes for e+/e- need cut values for gamma
SetCutValue(cut, "gamma");
SetCutValue(cut, "e-");
SetCutValue(cut, "e+");
// set cut values for proton
SetCutValue(cut, "proton");
SetCutValue(cut, "anti_proton");
SetCutValueForOthers(GetDefaultCutValue());
if (verboseLevel>1) {
DumpCutValuesTable();
}
}
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
// the default cut value for all particle types
SetCutsWithDefault();
}
+3 -7
View File
@@ -15,7 +15,6 @@
ExN06RunAction::ExN06RunAction()
{
timer = new G4Timer;
runIDcounter = 0;
}
ExN06RunAction::~ExN06RunAction()
@@ -23,22 +22,19 @@ ExN06RunAction::~ExN06RunAction()
delete timer;
}
void ExN06RunAction::BeginOfRunAction(G4Run* aRun)
void ExN06RunAction::BeginOfRunAction(const G4Run* aRun)
{
aRun->SetRunID(runIDcounter++);
G4UImanager* UI = G4UImanager::GetUIpointer();
UI->ApplyCommand("/event/verbose 1");
UI->ApplyCommand("/tracking/verbose 1");
//UI->ApplyCommand("/tracking/verbose 1");
G4cout << "### Run " << aRun->GetRunID() << " start." << endl;
timer->Start();
}
void ExN06RunAction::EndOfRunAction(G4Run* aRun)
void ExN06RunAction::EndOfRunAction(const G4Run* aRun)
{
timer->Stop();
G4cout << "number of event = " << aRun->GetNumberOfEvent()
<< " " << *timer << endl;
}