Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.8 2002/05/30 08:12:18 gcosmo Exp $
|
||||
$Id: History,v 1.11 2002/11/21 22:58:25 gum Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -15,6 +15,15 @@ track of all tags.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
November 21, 2002 Peter Gumplinger (exampleN06-V04-01-02)
|
||||
- exampleN06.out output changed because of small change in G4Scintillation
|
||||
|
||||
November 14, 2002 Peter Gumplinger (exampleN06-V04-01-01)
|
||||
- reduced the scintillation photon yield to reduce the output size
|
||||
|
||||
November 12, 2002 Peter Gumplinger (exampleN06-V04-01-00)
|
||||
- add ExN06StackingAction, change user interface to new version of G4Scintillation
|
||||
|
||||
May 30, 2002 Gabriele Cosmo (exampleN06-V04-00-02)
|
||||
- Renamed file ExN06PrimaryGeneratoraction.cc to ExN06PrimaryGeneratorAction.cc to
|
||||
be consistent with class name.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: README,v 1.2 2002/05/17 00:13:54 gum Exp $
|
||||
$Id: README,v 1.3 2002/11/12 23:05:04 gum Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -47,3 +47,8 @@ G4UserRunAction
|
||||
|
||||
==> define G4Timer (start/stop)
|
||||
set verbose levels
|
||||
|
||||
G4UserStackingAction
|
||||
--------------------
|
||||
|
||||
==> show how to count the number of secondary particles in an event
|
||||
|
||||
@@ -36,7 +36,10 @@
|
||||
// Version: 5.0
|
||||
// Created: 1996-04-30
|
||||
// Author: Juliet Armstrong
|
||||
// Updated: 1998-06-03 by Peter Gumplinger for example ExN06
|
||||
// Updated: 2002-11-12 by Peter Gumplinger
|
||||
// Change user interface to G4Scintillation
|
||||
// Add UserStackingAction
|
||||
// 1998-06-03 by Peter Gumplinger for example ExN06
|
||||
// mail: gum@triumf.ca
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -44,6 +47,7 @@
|
||||
#include "ExN06RunAction.hh"
|
||||
#include "ExN06DetectorConstruction.hh"
|
||||
#include "ExN06PrimaryGeneratorAction.hh"
|
||||
#include "ExN06StackingAction.hh"
|
||||
#include "ExN06PhysicsList.hh"
|
||||
|
||||
#include "G4RunManager.hh"
|
||||
@@ -76,6 +80,8 @@ int main(int argc,char** argv) {
|
||||
runManager->SetUserAction(new ExN06RunAction);
|
||||
runManager->SetUserAction(new ExN06PrimaryGeneratorAction);
|
||||
|
||||
runManager->SetUserAction(new ExN06StackingAction);
|
||||
|
||||
// User interactions
|
||||
// Define (G)UI for interactive mode
|
||||
if(argc==1)
|
||||
|
||||
+19437
-8360
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
#ifndef ExN06StackingAction_H
|
||||
#define ExN06StackingAction_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UserStackingAction.hh"
|
||||
|
||||
class ExN06StackingAction : public G4UserStackingAction
|
||||
{
|
||||
public:
|
||||
ExN06StackingAction();
|
||||
virtual ~ExN06StackingAction();
|
||||
|
||||
public:
|
||||
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* aTrack);
|
||||
virtual void NewStage();
|
||||
virtual void PrepareNewEvent();
|
||||
|
||||
private:
|
||||
G4int gammaCounter;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -116,6 +116,7 @@ G4VPhysicalVolume* ExN06DetectorConstruction::Construct()
|
||||
// 3.767E-9*GeV, 3.884E-9*GeV, 4.010E-9*GeV, 4.144E-9*GeV };
|
||||
|
||||
G4double RINDEX1[NUMENTRIES] =
|
||||
|
||||
{ 1.3435, 1.344, 1.3445, 1.345, 1.3455,
|
||||
1.346, 1.3465, 1.347, 1.3475, 1.348,
|
||||
1.3485, 1.3492, 1.35, 1.3505, 1.351,
|
||||
@@ -145,17 +146,29 @@ G4VPhysicalVolume* ExN06DetectorConstruction::Construct()
|
||||
3000.0*cm, 2850.0*cm, 2700.0*cm, 2450.0*cm, 2200.0*cm, 1950.0*cm,
|
||||
1750.0*cm, 1450.0*cm };
|
||||
|
||||
G4double SCINTILLATION[NUMENTRIES] =
|
||||
G4double SCINTILLATION_FAST[NUMENTRIES] =
|
||||
{ 1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 1.00,
|
||||
1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 1.00,
|
||||
1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 1.00,
|
||||
1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 1.00,
|
||||
1.00, 1.00, 1.00, 1.00 };
|
||||
G4double SCINTILLATION_SLOW[NUMENTRIES] =
|
||||
{ 0.01, 1.00, 2.00, 3.00, 4.00, 5.00, 6.00,
|
||||
7.00, 8.00, 9.00, 8.00, 7.00, 6.00, 4.00,
|
||||
3.00, 2.00, 1.00, 0.01, 1.00, 2.00, 3.00,
|
||||
4.00, 5.00, 6.00, 7.00, 8.00, 9.00, 8.00,
|
||||
7.00, 6.00, 5.00, 4.00 };
|
||||
|
||||
G4MaterialPropertiesTable *myMPT1 = new G4MaterialPropertiesTable();
|
||||
myMPT1->AddProperty("RINDEX", PPCKOV, RINDEX1, NUMENTRIES);
|
||||
myMPT1->AddProperty("ABSLENGTH",PPCKOV, ABSORPTION1, NUMENTRIES);
|
||||
myMPT1->AddProperty("SCINTILLATION",PPCKOV, SCINTILLATION, NUMENTRIES);
|
||||
myMPT1->AddProperty("FASTCOMPONENT",PPCKOV, SCINTILLATION_FAST, NUMENTRIES);
|
||||
myMPT1->AddProperty("SLOWCOMPONENT",PPCKOV, SCINTILLATION_SLOW, NUMENTRIES);
|
||||
myMPT1->AddConstProperty("SCINTILLATIONYIELD",50./MeV);
|
||||
myMPT1->AddConstProperty("RESOLUTIONSCALE",1.0);
|
||||
myMPT1->AddConstProperty("FASTTIMECONSTANT", 1.*ns);
|
||||
myMPT1->AddConstProperty("SLOWTIMECONSTANT",10.*ns);
|
||||
myMPT1->AddConstProperty("YIELDRATIO",0.8);
|
||||
Water->SetMaterialPropertiesTable(myMPT1);
|
||||
|
||||
G4MaterialPropertiesTable *myMPT2 = new G4MaterialPropertiesTable();
|
||||
|
||||
@@ -220,8 +220,7 @@ void ExN06PhysicsList::ConstructOp()
|
||||
theCerenkovProcess->SetMaxNumPhotonsPerStep(MaxNumPhotons);
|
||||
|
||||
theScintillationProcess->SetTrackSecondariesFirst(true);
|
||||
theScintillationProcess->SetScintillationYield(100./MeV);
|
||||
theScintillationProcess->SetResolutionScale(1.0);
|
||||
theScintillationProcess->SetScintillationYieldFactor(1.);
|
||||
|
||||
G4OpticalSurfaceModel themodel = unified;
|
||||
theBoundaryProcess->SetModel(themodel);
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
#include "ExN06StackingAction.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "G4Track.hh"
|
||||
|
||||
ExN06StackingAction::ExN06StackingAction()
|
||||
: gammaCounter(0)
|
||||
{;}
|
||||
|
||||
ExN06StackingAction::~ExN06StackingAction()
|
||||
{;}
|
||||
|
||||
G4ClassificationOfNewTrack
|
||||
ExN06StackingAction::ClassifyNewTrack(const G4Track * aTrack)
|
||||
{
|
||||
if(aTrack->GetDefinition()==G4OpticalPhoton::OpticalPhotonDefinition())
|
||||
{ // particle is optical photon
|
||||
if(aTrack->GetParentID()>0)
|
||||
{ // particle is secondary
|
||||
gammaCounter++;
|
||||
}
|
||||
}
|
||||
|
||||
return fUrgent;
|
||||
}
|
||||
|
||||
void ExN06StackingAction::NewStage()
|
||||
{
|
||||
G4cout << "Number of optical photons produces in this event : "
|
||||
<< gammaCounter << G4endl;
|
||||
}
|
||||
|
||||
void ExN06StackingAction::PrepareNewEvent()
|
||||
{ gammaCounter = 0; }
|
||||
Reference in New Issue
Block a user