Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -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