Import Geant4 9.1.0 source tree
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: Em8CalorHit.cc,v 1.5 2006/06/29 17:00:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: Em8CalorimeterSD.cc,v 1.7 2006/06/29 17:00:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: Em8DetectorConstruction.cc,v 1.19 2006/11/15 19:29:08 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: Em8DetectorConstruction.cc,v 1.21 2007/10/02 10:12:47 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -58,13 +58,6 @@
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
|
||||
|
||||
const G4double Em8DetectorConstruction::fDelta = 0.0001*mm;
|
||||
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
//
|
||||
@@ -77,14 +70,8 @@ fAbsorberMaterial(NULL),fSolidAbsorber(NULL),fLogicAbsorber(NULL),
|
||||
fPhysicsAbsorber(NULL),fDetectorMessenger(NULL),
|
||||
fCalorimeterSD(NULL),fRegGasDet(NULL)
|
||||
{
|
||||
// default parameter values of the calorimeter
|
||||
fDelta = 0.0001*mm;
|
||||
|
||||
// G4double inch = 2.54*cm ;
|
||||
// G4double mil = inch/1000.0 ;
|
||||
|
||||
// G4double delta = 0.0001*mm;
|
||||
|
||||
// fAbsorberThickness = 85.*mm;
|
||||
fAbsorberThickness = 23.0*mm;
|
||||
|
||||
fAbsorberRadius = 10.*cm;
|
||||
@@ -126,21 +113,18 @@ void Em8DetectorConstruction::DefineMaterials()
|
||||
{
|
||||
//This function illustrates the possible ways to define materials
|
||||
|
||||
G4String name, symbol ; //a=mass of a mole;
|
||||
G4double a, z, density ; //z=mean number of protons;
|
||||
// G4int iz, n;
|
||||
G4int nel ; //iz=number of protons in an isotope;
|
||||
G4String name, symbol ; //a=mass of a mole;
|
||||
G4double a, z, density ; //z=mean number of protons;
|
||||
|
||||
G4int nel ; //iz=number of protons in an isotope;
|
||||
// n=number of nucleons in an isotope;
|
||||
|
||||
G4int ncomponents;
|
||||
// G4int natoms;
|
||||
// G4double abundance;
|
||||
G4double fractionmass;
|
||||
//G4double temperature, pressure;
|
||||
G4int ncomponents;
|
||||
G4double fractionmass;
|
||||
|
||||
//
|
||||
// define Elements
|
||||
//
|
||||
//
|
||||
// define Elements
|
||||
//
|
||||
|
||||
a = 1.01*g/mole;
|
||||
G4Element* elH = new G4Element(name="Hydrogen",symbol="H" , z= 1., a);
|
||||
@@ -157,138 +141,17 @@ G4double fractionmass;
|
||||
a = 39.948*g/mole;
|
||||
G4Element* elAr = new G4Element(name="Argon", symbol="Ar", z=18., a);
|
||||
|
||||
// a = 131.29*g/mole;
|
||||
// G4Element* elXe = new G4Element(name="Xenon", symbol="Xe", z=54., a);
|
||||
|
||||
// a = 19.00*g/mole;
|
||||
// G4Element* elF = new G4Element(name="Fluorine", symbol="F", z=9., a);
|
||||
//
|
||||
// define simple materials
|
||||
//
|
||||
|
||||
|
||||
//
|
||||
// define simple materials
|
||||
//
|
||||
|
||||
/* ******************************************************************
|
||||
|
||||
|
||||
|
||||
density = 1.390*g/cm3;
|
||||
a = 39.95*g/mole;
|
||||
G4Material* lAr = new G4Material(name="liquidArgon", z=18., a, density);
|
||||
|
||||
density = 7.870*g/cm3;
|
||||
a = 55.85*g/mole;
|
||||
G4Material* Fe = new G4Material(name="Iron" , z=26., a, density);
|
||||
|
||||
density = 8.960*g/cm3;
|
||||
a = 63.55*g/mole;
|
||||
G4Material* Cu = new G4Material(name="Copper" , z=29., a, density);
|
||||
|
||||
density = 19.32*g/cm3;
|
||||
a =196.97*g/mole;
|
||||
G4Material* Au = new G4Material(name="Gold" , z=79., a, density);
|
||||
|
||||
density = 11.35*g/cm3;
|
||||
a = 207.19*g/mole;
|
||||
G4Material* Pb = new G4Material(name="Lead" , z=82., a, density);
|
||||
|
||||
//
|
||||
// define a material from elements. case 1: chemical molecule
|
||||
//
|
||||
|
||||
density = 1.000*g/cm3;
|
||||
G4Material* H2O = new G4Material(name="Water", density, ncomponents=2);
|
||||
H2O->AddElement(elH, natoms=2);
|
||||
H2O->AddElement(elO, natoms=1);
|
||||
|
||||
// Kapton (polyimide) ??? since = Mylar C5H4O2
|
||||
|
||||
density = 1.39*g/cm3;
|
||||
G4Material* Kapton = new G4Material(name="Kapton", density, nel=3);
|
||||
Kapton->AddElement(elO,2);
|
||||
Kapton->AddElement(elC,5);
|
||||
Kapton->AddElement(elH,4);
|
||||
|
||||
|
||||
// Carbon dioxide
|
||||
|
||||
density = 1.977*mg/cm3;
|
||||
G4Material* CO2 = new G4Material(name="CO2", density, nel=2,
|
||||
kStateGas,273.15*kelvin,1.*atmosphere);
|
||||
CO2->AddElement(elC,1);
|
||||
CO2->AddElement(elO,2);
|
||||
|
||||
|
||||
// TRT_CH2
|
||||
|
||||
density = 0.935*g/cm3;
|
||||
G4Material* TRT_CH2 = new G4Material(name="TRT_CH2",density, nel=2);
|
||||
TRT_CH2->AddElement(elC,1);
|
||||
TRT_CH2->AddElement(elH,2);
|
||||
|
||||
// Radiator
|
||||
|
||||
density = 0.059*g/cm3;
|
||||
G4Material* Radiator = new G4Material(name="Radiator",density, nel=2);
|
||||
Radiator->AddElement(elC,1);
|
||||
Radiator->AddElement(elH,2);
|
||||
|
||||
// Carbon Fiber
|
||||
|
||||
density = 0.145*g/cm3;
|
||||
G4Material* CarbonFiber = new G4Material(name="CarbonFiber",density, nel=1);
|
||||
CarbonFiber->AddElement(elC,1);
|
||||
|
||||
density = 1.290*mg/cm3; // old air from elements
|
||||
G4Material* air = new G4Material(name="air" , density, ncomponents=2);
|
||||
Air->AddElement(elN, fractionmass=0.7);
|
||||
Air->AddElement(elO, fractionmass=0.3);
|
||||
|
||||
|
||||
density = 1.25053*mg/cm3 ; // STP
|
||||
a = 14.01*g/mole ; // get atomic weight !!!
|
||||
// a = 28.016*g/mole;
|
||||
G4Material* N2 = new G4Material(name="Nitrogen", z= 7.,a,density) ;
|
||||
|
||||
density = 1.25053*mg/cm3 ; // STP
|
||||
G4Material* anotherN2 = new G4Material(name="anotherN2", density,ncomponents=2);
|
||||
anotherN2->AddElement(elN, 1);
|
||||
anotherN2->AddElement(elN, 1);
|
||||
|
||||
|
||||
// liquid hydrogen for muon cooling target
|
||||
|
||||
density = 0.071*g/cm3;
|
||||
a = 1.01*g/mole;
|
||||
G4Material* lH2 = new G4Material(name="liquidHydrigen", z=1., a, density);
|
||||
|
||||
// Beryllium
|
||||
|
||||
density = 1.848*g/cm3;
|
||||
a = 9.01*g/mole;
|
||||
G4Material* Be = new G4Material(name="Beryllium", z=4., a, density);
|
||||
// Al for electrodes
|
||||
|
||||
density = 2.700*g/cm3;
|
||||
a = 26.98*g/mole;
|
||||
G4Material* Al = new G4Material(name="Aluminium", z=13., a, density);
|
||||
|
||||
|
||||
// Polypropelene
|
||||
|
||||
G4Material* CH2 = new G4Material ("Polypropelene" , 0.91*g/cm3, 2);
|
||||
CH2->AddElement(elH,2);
|
||||
CH2->AddElement(elC,1);
|
||||
|
||||
************************ */
|
||||
// Aluminium
|
||||
|
||||
a = 26.98*g/mole;
|
||||
density = 2.7*g/cm3;
|
||||
G4Material* Al = new G4Material(name="Aluminium", z=13., a, density);
|
||||
if(Al);
|
||||
// Mylar
|
||||
|
||||
// Mylar
|
||||
density = 1.39*g/cm3;
|
||||
G4Material* Mylar = new G4Material(name="Mylar", density, nel=3);
|
||||
Mylar->AddElement(elO,2);
|
||||
@@ -296,27 +159,18 @@ H2O->AddElement(elO, natoms=1);
|
||||
Mylar->AddElement(elH,4);
|
||||
|
||||
// Silicon as detector material
|
||||
|
||||
density = 2.330*g/cm3;
|
||||
a = 28.09*g/mole;
|
||||
G4Material* Si = new G4Material(name="Silicon", z=14., a, density);
|
||||
if(Si);
|
||||
// Krypton as detector gas, STP
|
||||
|
||||
// Krypton as detector gas, STP
|
||||
density = 3.700*mg/cm3 ;
|
||||
a = 83.80*g/mole ;
|
||||
G4Material* Kr = new G4Material(name="Kr",z=36., a, density );
|
||||
|
||||
// Metane, STP
|
||||
|
||||
// density = 0.7174*mg/cm3 ;
|
||||
// G4Material* metane = new G4Material(name="CH4",density,nel=2) ;
|
||||
// metane->AddElement(elC,1) ;
|
||||
// metane->AddElement(elH,4) ;
|
||||
|
||||
|
||||
// Dry air (average composition)
|
||||
|
||||
density = 1.7836*mg/cm3 ; // STP
|
||||
G4Material* Argon = new G4Material(name="Argon" , density, ncomponents=1);
|
||||
Argon->AddElement(elAr, 1);
|
||||
@@ -329,23 +183,20 @@ H2O->AddElement(elO, natoms=1);
|
||||
G4Material* Oxygen = new G4Material(name="O2" , density, ncomponents=1);
|
||||
Oxygen->AddElement(elO, 2);
|
||||
|
||||
|
||||
density = 1.2928*mg/cm3 ; // STP
|
||||
G4Material* Air = new G4Material(name="Air" , density, ncomponents=3);
|
||||
Air->AddMaterial( Nitrogen, fractionmass = 0.7557 ) ;
|
||||
Air->AddMaterial( Oxygen, fractionmass = 0.2315 ) ;
|
||||
Air->AddMaterial( Argon, fractionmass = 0.0128 ) ;
|
||||
|
||||
/* **************
|
||||
|
||||
// 93% Kr + 7% CH4, STP
|
||||
|
||||
// density = 3.491*mg/cm3 ;
|
||||
// G4Material* Kr7CH4 = new G4Material(name="Kr7CH4" , density,
|
||||
// ncomponents=2);
|
||||
// Kr7CH4->AddMaterial( Kr, fractionmass = 0.986 ) ;
|
||||
// Kr7CH4->AddMaterial( metane, fractionmass = 0.014 ) ;
|
||||
|
||||
/* **************
|
||||
density = 3.491*mg/cm3 ;
|
||||
G4Material* Kr7CH4 = new G4Material(name="Kr7CH4" , density,
|
||||
ncomponents=2);
|
||||
Kr7CH4->AddMaterial( Kr, fractionmass = 0.986 ) ;
|
||||
Kr7CH4->AddMaterial( metane, fractionmass = 0.014 ) ;
|
||||
|
||||
G4double TRT_Xe_density = 5.485*mg/cm3;
|
||||
G4Material* TRT_Xe = new G4Material(name="TRT_Xe", TRT_Xe_density, nel=1,
|
||||
@@ -377,36 +228,30 @@ H2O->AddElement(elO, natoms=1);
|
||||
*********** */
|
||||
|
||||
// Xenon as detector gas, STP
|
||||
|
||||
density = 5.858*mg/cm3 ;
|
||||
a = 131.29*g/mole ;
|
||||
G4Material* Xe = new G4Material(name="Xenon",z=54., a, density );
|
||||
|
||||
// Metane, STP
|
||||
|
||||
density = 0.7174*mg/cm3 ;
|
||||
G4Material* metane = new G4Material(name="CH4",density,nel=2) ;
|
||||
metane->AddElement(elC,1) ;
|
||||
metane->AddElement(elH,4) ;
|
||||
|
||||
// C3H8,20 C, 2 atm
|
||||
|
||||
density = 3.758*mg/cm3 ;
|
||||
G4Material* C3H8 = new G4Material(name="C3H8",density,nel=2) ;
|
||||
C3H8->AddElement(elC,3) ;
|
||||
C3H8->AddElement(elH,8) ;
|
||||
|
||||
// Propane, STP
|
||||
|
||||
density = 2.005*mg/cm3 ;
|
||||
G4Material* propane = new G4Material(name="propane",density,nel=2) ;
|
||||
propane->AddElement(elC,3) ;
|
||||
propane->AddElement(elH,8) ;
|
||||
|
||||
// 87.5% Xe + 7.5% CH4 + 5% C3H8, 20 C, 1 atm
|
||||
|
||||
density = 4.9196*mg/cm3 ;
|
||||
|
||||
G4Material* XeCH4C3H8 = new G4Material(name="XeCH4C3H8" ,
|
||||
density, ncomponents=3);
|
||||
XeCH4C3H8->AddMaterial( Xe, fractionmass = 0.971 ) ;
|
||||
@@ -414,37 +259,32 @@ H2O->AddElement(elO, natoms=1);
|
||||
XeCH4C3H8->AddMaterial( propane, fractionmass = 0.019 ) ;
|
||||
|
||||
// 93% Ar + 7% CH4, STP
|
||||
|
||||
density = 1.709*mg/cm3 ;
|
||||
G4Material* Ar7CH4 = new G4Material(name="Ar7CH4", density, ncomponents=2);
|
||||
Ar7CH4->AddMaterial( Argon, fractionmass = 0.971 ) ;
|
||||
Ar7CH4->AddMaterial( metane, fractionmass = 0.029 ) ;
|
||||
|
||||
// Carbon dioxide, STP
|
||||
|
||||
density = 1.977*mg/cm3;
|
||||
G4Material* CarbonDioxide = new G4Material(name="CO2", density, nel=2);
|
||||
CarbonDioxide->AddElement(elC,1);
|
||||
CarbonDioxide->AddElement(elO,2);
|
||||
|
||||
// 80% Ar + 20% CO2, STP
|
||||
|
||||
// density = 1.8223*mg/cm3 ;
|
||||
// G4Material* Ar_80CO2_20 = new G4Material(name="ArCO2" , density,
|
||||
// ncomponents=2);
|
||||
// Ar_80CO2_20->AddMaterial( Argon, fractionmass = 0.783 ) ;
|
||||
// Ar_80CO2_20->AddMaterial( CarbonDioxide, fractionmass = 0.217 ) ;
|
||||
density = 1.8223*mg/cm3 ;
|
||||
G4Material* Ar_80CO2_20 = new G4Material(name="ArCO2" , density,
|
||||
ncomponents=2);
|
||||
Ar_80CO2_20->AddMaterial( Argon, fractionmass = 0.783 ) ;
|
||||
Ar_80CO2_20->AddMaterial( CarbonDioxide, fractionmass = 0.217 ) ;
|
||||
|
||||
// 80% Xe + 20% CO2, STP
|
||||
|
||||
// density = 5.0818*mg/cm3 ;
|
||||
// G4Material* Xe20CO2 = new G4Material(name="Xe20CO2" ,
|
||||
// density, ncomponents=2);
|
||||
// Xe20CO2->AddMaterial( Xe, fractionmass = 0.922 ) ;
|
||||
// Xe20CO2->AddMaterial( CarbonDioxide, fractionmass = 0.078 ) ;
|
||||
density = 5.0818*mg/cm3 ;
|
||||
G4Material* Xe20CO2 = new G4Material(name="Xe20CO2", density,
|
||||
ncomponents=2);
|
||||
Xe20CO2->AddMaterial( Xe, fractionmass = 0.922 ) ;
|
||||
Xe20CO2->AddMaterial( CarbonDioxide, fractionmass = 0.078 ) ;
|
||||
|
||||
// 80% Kr + 20% CO2, STP
|
||||
|
||||
density = 3.601*mg/cm3 ;
|
||||
G4Material* Kr20CO2 = new G4Material(name="Kr20CO2" , density,
|
||||
ncomponents=2);
|
||||
@@ -482,11 +322,6 @@ G4VPhysicalVolume* Em8DetectorConstruction::ConstructCalorimeter()
|
||||
PrintCalorParameters();
|
||||
|
||||
// World
|
||||
|
||||
// if(fSolidWorld) delete fSolidWorld ;
|
||||
// if(fLogicWorld) delete fLogicWorld ;
|
||||
// if(fPhysicsWorld) delete fPhysicsWorld ;
|
||||
|
||||
fSolidWorld = new G4Tubs("World", //its name
|
||||
0.,fWorldSizeR,fWorldSizeZ/2.,0.,twopi) ;//its size
|
||||
|
||||
@@ -506,18 +341,15 @@ G4VPhysicalVolume* Em8DetectorConstruction::ConstructCalorimeter()
|
||||
|
||||
if (fAbsorberThickness > 0.)
|
||||
{
|
||||
// if(fSolidAbsorber) delete fSolidAbsorber ;
|
||||
// if(fLogicAbsorber) delete fLogicAbsorber ;
|
||||
// if(fPhysicsAbsorber) delete fPhysicsAbsorber ;
|
||||
|
||||
fSolidAbsorber = new G4Tubs("Absorber",
|
||||
fSolidAbsorber = new G4Tubs("Absorber",
|
||||
0.,fAbsorberRadius,fAbsorberThickness/2.,0.,twopi);
|
||||
|
||||
fLogicAbsorber = new G4LogicalVolume(fSolidAbsorber,
|
||||
fLogicAbsorber = new G4LogicalVolume(fSolidAbsorber,
|
||||
fAbsorberMaterial,
|
||||
"Absorber");
|
||||
|
||||
fPhysicsAbsorber = new G4PVPlacement(0,
|
||||
fPhysicsAbsorber = new G4PVPlacement(0,
|
||||
G4ThreeVector(0.,0.,fAbsorberZ),
|
||||
"Absorber",
|
||||
fLogicAbsorber,
|
||||
@@ -597,12 +429,14 @@ G4VPhysicalVolume* Em8DetectorConstruction::ConstructCalorimeter()
|
||||
void Em8DetectorConstruction::PrintCalorParameters()
|
||||
{
|
||||
G4cout << "\n The WORLD is made of "
|
||||
<< fWorldSizeZ/mm << "mm of " << fWorldMaterial->GetName() ;
|
||||
G4cout << ", the transverse size (R) of the world is " << fWorldSizeR/mm << " mm. " << G4endl;
|
||||
<< fWorldSizeZ/mm << "mm of " << fWorldMaterial->GetName() ;
|
||||
G4cout << ", the transverse size (R) of the world is " << fWorldSizeR/mm
|
||||
<< " mm. " << G4endl;
|
||||
G4cout << " The ABSORBER is made of "
|
||||
<< fAbsorberThickness/mm << "mm of " << fAbsorberMaterial->GetName() ;
|
||||
<< fAbsorberThickness/mm << "mm of " << fAbsorberMaterial->GetName() ;
|
||||
G4cout << ", the transverse size (R) is " << fAbsorberRadius/mm << " mm. " << G4endl;
|
||||
G4cout << " Z position of the (middle of the) absorber " << fAbsorberZ/mm << " mm." << G4endl;
|
||||
G4cout << " Z position of the (middle of the) absorber "
|
||||
<< fAbsorberZ/mm << " mm." << G4endl;
|
||||
G4cout << G4endl;
|
||||
}
|
||||
|
||||
@@ -725,19 +559,3 @@ void Em8DetectorConstruction::UpdateGeometry()
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: Em8DetectorMessenger.cc,v 1.7 2006/06/29 17:00:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: Em8DetectorMessenger.cc,v 1.8 2007/10/02 10:12:47 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -92,7 +92,6 @@ Em8DetectorMessenger::Em8DetectorMessenger(Em8DetectorConstruction * Em8Det)
|
||||
WorldRCmd->SetRange("WSizeR>0.");
|
||||
WorldRCmd->AvailableForStates(G4State_Idle);
|
||||
|
||||
|
||||
ElectronCutCmd = new G4UIcmdWithADoubleAndUnit("/calor/setElectronCut",this);
|
||||
ElectronCutCmd->SetGuidance("Set electron cut in mm for vertex region");
|
||||
ElectronCutCmd->SetParameterName("ElectronCut",false,false);
|
||||
@@ -100,7 +99,6 @@ Em8DetectorMessenger::Em8DetectorMessenger(Em8DetectorConstruction * Em8Det)
|
||||
ElectronCutCmd->SetRange("ElectronCut>0.");
|
||||
ElectronCutCmd->AvailableForStates(G4State_Idle);
|
||||
|
||||
|
||||
PositronCutCmd = new G4UIcmdWithADoubleAndUnit("/calor/setPositronCut",this);
|
||||
PositronCutCmd->SetGuidance("Set positron cut in mm for vertex region");
|
||||
PositronCutCmd->SetParameterName("PositronCut",false,false);
|
||||
@@ -108,14 +106,12 @@ Em8DetectorMessenger::Em8DetectorMessenger(Em8DetectorConstruction * Em8Det)
|
||||
PositronCutCmd->SetRange("PositronCut>0.");
|
||||
PositronCutCmd->AvailableForStates(G4State_Idle);
|
||||
|
||||
|
||||
GammaCutCmd = new G4UIcmdWithADoubleAndUnit("/calor/setGammaCut",this);
|
||||
GammaCutCmd->SetGuidance("Set gamma cut in mm for vertex region");
|
||||
GammaCutCmd->SetParameterName("GammaCut",false,false);
|
||||
GammaCutCmd->SetDefaultUnit("mm");
|
||||
GammaCutCmd->SetRange("GammaCut>0.");
|
||||
GammaCutCmd->AvailableForStates(G4State_Idle);
|
||||
|
||||
|
||||
UpdateCmd = new G4UIcmdWithoutParameter("/calor/update",this);
|
||||
UpdateCmd->SetGuidance("Update calorimeter geometry.");
|
||||
@@ -123,7 +119,6 @@ Em8DetectorMessenger::Em8DetectorMessenger(Em8DetectorConstruction * Em8Det)
|
||||
UpdateCmd->SetGuidance("if you changed geometrical value(s).");
|
||||
UpdateCmd->AvailableForStates(G4State_Idle);
|
||||
|
||||
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
@@ -138,7 +133,9 @@ Em8DetectorMessenger::~Em8DetectorMessenger()
|
||||
delete WorldZCmd;
|
||||
delete WorldRCmd;
|
||||
delete UpdateCmd;
|
||||
|
||||
delete GammaCutCmd;
|
||||
delete PositronCutCmd;
|
||||
delete ElectronCutCmd;
|
||||
delete Em8detDir;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: Em8EventAction.cc,v 1.9 2006/06/29 17:00:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: Em8EventAction.cc,v 1.10 2007/11/12 10:54:49 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -222,6 +222,7 @@ void Em8EventAction::AddNeutral()
|
||||
void Em8EventAction::AddE()
|
||||
{
|
||||
NE += 1.;
|
||||
Nch += 1.;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -229,6 +230,7 @@ void Em8EventAction::AddE()
|
||||
void Em8EventAction::AddP()
|
||||
{
|
||||
NP += 1.;
|
||||
Nch += 1.;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: Em8EventActionMessenger.cc,v 1.5 2006/06/29 17:00:15 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: Em8PrimaryGeneratorAction.cc,v 1.7 2006/06/29 17:00:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: Em8PrimaryGeneratorMessenger.cc,v 1.5 2006/06/29 17:00:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: Em8RunAction.cc,v 1.14 2006/06/29 17:00:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: Em8RunAction.cc,v 1.15 2007/11/12 10:54:49 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -275,8 +275,8 @@ void Em8RunAction::EndOfRunAction(const G4Run*)
|
||||
|
||||
Transmitted /=TotNbofEvents ;
|
||||
Reflected /=TotNbofEvents ;
|
||||
G4cout << " ================== run summary =====================" << G4endl;
|
||||
G4int prec = G4cout.precision(6);
|
||||
G4cout << " ================== run summary =====================" << G4endl;
|
||||
G4int prec = G4cout.precision(6);
|
||||
G4cout << " end of Run TotNbofEvents = " <<
|
||||
TotNbofEvents << G4endl ;
|
||||
G4cout << " mean charged track length in absorber=" <<
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: Em8RunMessenger.cc,v 1.7 2006/06/29 17:00:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: Em8SteppingAction.cc,v 1.9 2006/06/29 17:00:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: Em8SteppingAction.cc,v 1.10 2007/11/12 10:54:49 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -33,18 +33,21 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#include "Em8DetectorConstruction.hh"
|
||||
#include "G4EnergyLossTables.hh"
|
||||
#include "G4SteppingManager.hh"
|
||||
#include "G4TrackVector.hh"
|
||||
//#include "G4EnergyLossTables.hh"
|
||||
//#include "G4SteppingManager.hh"
|
||||
//#include "G4TrackVector.hh"
|
||||
#include "Em8SteppingAction.hh"
|
||||
#include "Em8PrimaryGeneratorAction.hh"
|
||||
#include "Em8EventAction.hh"
|
||||
#include "Em8RunAction.hh"
|
||||
#include "G4Event.hh"
|
||||
#include "G4EventManager.hh"
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip>
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4Gamma.hh"
|
||||
#include "G4Electron.hh"
|
||||
#include "G4Positron.hh"
|
||||
//#include "G4EventManager.hh"
|
||||
//#include "G4ios.hh"
|
||||
//#include <iomanip>
|
||||
//#include "G4UImanager.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -64,142 +67,61 @@ Em8SteppingAction::~Em8SteppingAction()
|
||||
|
||||
void Em8SteppingAction::UserSteppingAction(const G4Step* aStep)
|
||||
{
|
||||
G4Track* track = aStep->GetTrack();
|
||||
G4int trackID = track->GetTrackID();
|
||||
G4int stepID = track->GetCurrentStepNumber();
|
||||
if(trackID == 1 && stepID == 1)
|
||||
runaction->Fillvertexz(track->GetVertexPosition().z());
|
||||
|
||||
G4double Theta,Thetaback,Ttrans,Tback,Tsec,Egamma,yend,zend,rend ;
|
||||
// G4double Tkin, Edep, xend;
|
||||
G4int evno = eventaction->GetEventno() ;
|
||||
const G4ParticleDefinition* part = track->GetDynamicParticle()->GetDefinition();
|
||||
G4VPhysicalVolume* preVolume = aStep->GetPreStepPoint()->GetPhysicalVolume();
|
||||
G4VPhysicalVolume* postVolume = aStep->GetPostStepPoint()->GetPhysicalVolume();
|
||||
G4double ekin = track->GetKineticEnergy() ;
|
||||
|
||||
IDnow = evno+10000*(aStep->GetTrack()->GetTrackID())+
|
||||
100000000*(aStep->GetTrack()->GetParentID());
|
||||
if(IDnow != IDold)
|
||||
{
|
||||
IDold=IDnow ;
|
||||
if(
|
||||
(((aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName()) == "e-") &&
|
||||
((aStep->GetTrack()->GetTrackID() != 1) ||
|
||||
(aStep->GetTrack()->GetParentID() != 0)) )
|
||||
||
|
||||
(((aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName()) == "e+") &&
|
||||
((aStep->GetTrack()->GetTrackID() != 1) ||
|
||||
(aStep->GetTrack()->GetParentID() != 0)) )
|
||||
)
|
||||
runaction->Fillvertexz(aStep->GetTrack()->GetVertexPosition().x());
|
||||
// Secondary - first step
|
||||
if(trackID != 1 && stepID == 1) {
|
||||
if (part == G4Gamma::Gamma() ) {
|
||||
eventaction->AddNeutral();
|
||||
|
||||
if(aStep->GetPreStepPoint()->GetPhysicalVolume()->GetName()=="Absorber")
|
||||
{
|
||||
if(((aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName()) == "e-") &&
|
||||
((aStep->GetTrack()->GetTrackID() != 1) ||
|
||||
(aStep->GetTrack()->GetParentID() != 0)) )
|
||||
{
|
||||
eventaction->AddCharged() ;
|
||||
eventaction->AddE() ;
|
||||
Tsec = aStep->GetTrack()->GetKineticEnergy() ; // !!!!!!!!!!!!
|
||||
Tsec += aStep->GetTotalEnergyDeposit() ; // !!!!!!!!!!!!
|
||||
runaction->FillTsec(Tsec) ;
|
||||
}
|
||||
else
|
||||
if(((aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName()) == "e+") &&
|
||||
((aStep->GetTrack()->GetTrackID() != 1) ||
|
||||
(aStep->GetTrack()->GetParentID() != 0)) )
|
||||
{
|
||||
eventaction->AddCharged() ;
|
||||
eventaction->AddP() ;
|
||||
Tsec = aStep->GetTrack()->GetKineticEnergy() ; // !!!!!!!!!!!!
|
||||
Tsec += aStep->GetTotalEnergyDeposit() ; // !!!!!!!!!!!!
|
||||
runaction->FillTsec(Tsec) ;
|
||||
}
|
||||
else
|
||||
if(((aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName()) == "gamma") &&
|
||||
((aStep->GetTrack()->GetTrackID() != 1) ||
|
||||
(aStep->GetTrack()->GetParentID() != 0)) )
|
||||
{
|
||||
eventaction->AddNeutral() ;
|
||||
}
|
||||
}
|
||||
} else if (part == G4Electron::Electron()) {
|
||||
eventaction->AddE();
|
||||
runaction->FillTsec(ekin);
|
||||
|
||||
} else if (part == G4Positron::Positron()) {
|
||||
eventaction->AddP();
|
||||
runaction->FillTsec(ekin);
|
||||
}
|
||||
}
|
||||
|
||||
if(aStep->GetPreStepPoint()->GetPhysicalVolume()->GetName()=="Absorber")
|
||||
{
|
||||
if(((aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName()) == "e-")
|
||||
||
|
||||
((aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName()) == "e+"))
|
||||
eventaction->CountStepsCharged() ;
|
||||
// step inside absorber
|
||||
if(preVolume == postVolume) {
|
||||
if(preVolume->GetName() == "Absorber") {
|
||||
if(part->GetPDGCharge() == 0.0) eventaction->CountStepsNeutral();
|
||||
else eventaction->CountStepsCharged();
|
||||
}
|
||||
// exit of absorber
|
||||
} else if (preVolume->GetName() == "Absorber") {
|
||||
|
||||
if ((aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName()) == "gamma")
|
||||
eventaction->CountStepsNeutral() ;
|
||||
// primary
|
||||
if (trackID == 1) {
|
||||
if (track->GetMomentumDirection().z()>0.) {
|
||||
eventaction->SetTr();
|
||||
runaction->FillTh(track->GetMomentumDirection().theta()) ;
|
||||
runaction->FillTt(ekin) ;
|
||||
G4double xend= track->GetPosition().x() ;
|
||||
G4double yend= track->GetPosition().y() ;
|
||||
runaction->FillR(std::sqrt(xend*xend+yend*yend));
|
||||
} else {
|
||||
eventaction->SetRef();
|
||||
runaction->FillThBack(track->GetMomentumDirection().theta() - 0.5*pi) ;
|
||||
runaction->FillTb(ekin);
|
||||
}
|
||||
}
|
||||
// transmitted gamma
|
||||
if(track->GetMomentumDirection().z()>0. && part == G4Gamma::Gamma()) {
|
||||
runaction->FillGammaSpectrum(ekin);
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
(((aStep->GetTrack()->GetTrackID() == 1) &&
|
||||
(aStep->GetTrack()->GetParentID()== 0)) ||
|
||||
(aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName() ==
|
||||
Em8PrimaryGeneratorAction::GetPrimaryName()))
|
||||
&&
|
||||
(aStep->GetPreStepPoint()->GetPhysicalVolume()->GetName()=="Absorber")
|
||||
&&
|
||||
(aStep->GetTrack()->GetNextVolume()->GetName()=="World") &&
|
||||
(aStep->GetPostStepPoint()->GetProcessDefinedStep()
|
||||
->GetProcessName() == "Transportation") &&
|
||||
(aStep->GetTrack()->GetMomentumDirection().x()>0.)
|
||||
)
|
||||
{
|
||||
eventaction->SetTr();
|
||||
Theta = std::acos(aStep->GetTrack()->GetMomentumDirection().x()) ;
|
||||
runaction->FillTh(Theta) ;
|
||||
Ttrans = aStep->GetTrack()->GetKineticEnergy() ;
|
||||
runaction->FillTt(Ttrans) ;
|
||||
yend= aStep->GetTrack()->GetPosition().y() ;
|
||||
zend= aStep->GetTrack()->GetPosition().z() ;
|
||||
rend = std::sqrt(yend*yend+zend*zend) ;
|
||||
runaction->FillR(rend);
|
||||
}
|
||||
|
||||
if (
|
||||
(((aStep->GetTrack()->GetTrackID() == 1) &&
|
||||
(aStep->GetTrack()->GetParentID()== 0)) ||
|
||||
(aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->
|
||||
GetParticleName() ==
|
||||
Em8PrimaryGeneratorAction::GetPrimaryName()))
|
||||
&&
|
||||
(aStep->GetPreStepPoint()->GetPhysicalVolume()->GetName()=="Absorber") &&
|
||||
(aStep->GetTrack()->GetNextVolume()->GetName()=="World") &&
|
||||
(aStep->GetPostStepPoint()->GetProcessDefinedStep()
|
||||
->GetProcessName() == "Transportation") &&
|
||||
(aStep->GetTrack()->GetMomentumDirection().z()<0.)
|
||||
)
|
||||
{
|
||||
eventaction->SetRef();
|
||||
Thetaback = std::acos(aStep->GetTrack()->GetMomentumDirection().x()) ;
|
||||
Thetaback -= 0.5*pi ;
|
||||
runaction->FillThBack(Thetaback) ;
|
||||
Tback = aStep->GetTrack()->GetKineticEnergy() ;
|
||||
runaction->FillTb(Tback) ;
|
||||
}
|
||||
|
||||
|
||||
if (
|
||||
((aStep->GetPreStepPoint()->GetPhysicalVolume()->GetName()=="Absorber") &&
|
||||
(aStep->GetTrack()->GetNextVolume()->GetName()=="World") &&
|
||||
(aStep->GetPostStepPoint()->GetProcessDefinedStep()
|
||||
->GetProcessName() == "Transportation") &&
|
||||
(aStep->GetTrack()->GetMomentumDirection().x()>0.) &&
|
||||
(aStep->GetTrack()->GetDynamicParticle()->GetDefinition()
|
||||
->GetParticleName() == "gamma"))
|
||||
)
|
||||
{
|
||||
Egamma = aStep->GetTrack()->GetKineticEnergy() ;
|
||||
runaction->FillGammaSpectrum(Egamma) ;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: Em8SteppingVerbose.cc,v 1.8 2006/06/29 17:00:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysListEmModelPai.cc,v 1.4 2006/11/15 19:29:08 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: PhysListEmModelPai.cc,v 1.5 2007/08/02 12:01:53 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -42,7 +42,6 @@
|
||||
|
||||
#include "G4eIonisation.hh"
|
||||
#include "G4PAIModel.hh"
|
||||
#include "G4PAIPhotonModel.hh"
|
||||
|
||||
#include "G4eBremsstrahlung.hh"
|
||||
#include "G4eplusAnnihilation.hh"
|
||||
@@ -96,14 +95,23 @@ void PhysListEmModelPai::ConstructProcess()
|
||||
pmanager->AddDiscreteProcess(new G4GammaConversion);
|
||||
|
||||
}
|
||||
else if (particleName == "e-")
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
|
||||
G4eIonisation* eion = new G4eIonisation();
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
eion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(eion,-1, 2, 2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung,-1,-1,3);
|
||||
}
|
||||
else if (particleName == "e+")
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
|
||||
G4eIonisation* epion = new G4eIonisation();
|
||||
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
|
||||
epion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(epion, -1, 2,2);
|
||||
@@ -116,61 +124,19 @@ void PhysListEmModelPai::ConstructProcess()
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
|
||||
|
||||
G4MuIonisation* muion = new G4MuIonisation();
|
||||
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
muion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(muion, -1, 2,-2);
|
||||
pmanager->AddProcess(muion, -1, 2, 2);
|
||||
pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1,3);
|
||||
pmanager->AddProcess(new G4MuPairProduction, -1,-1,4);
|
||||
|
||||
pmanager->AddProcess(new G4MuPairProduction, -1,-1,4);
|
||||
}
|
||||
else if (particleName == "GenericIon")
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4ionIonisation, -1, 2,2);
|
||||
|
||||
}
|
||||
else if (particleName == "e-")
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
|
||||
G4eIonisation* eion = new G4eIonisation();
|
||||
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
|
||||
eion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(eion,-1, 2, 2);
|
||||
|
||||
pmanager->AddProcess(new G4eBremsstrahlung,-1,1,3);
|
||||
|
||||
}
|
||||
else if ( particleName == "proton" )
|
||||
{
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
|
||||
G4hIonisation* pion = new G4hIonisation();
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
pion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(pion, -1,2,2);
|
||||
}
|
||||
else if ( particleName == "pi+" )
|
||||
{
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
|
||||
G4hIonisation* pion = new G4hIonisation();
|
||||
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
|
||||
pion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(pion, -1,2,2);
|
||||
}
|
||||
else if ( ( !particle->IsShortLived() ) &&
|
||||
} else if ( ( !particle->IsShortLived() ) &&
|
||||
( particle->GetPDGCharge() != 0.0 ) &&
|
||||
( particle->GetParticleName() != "chargedgeantino") )
|
||||
{
|
||||
@@ -178,9 +144,7 @@ void PhysListEmModelPai::ConstructProcess()
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
|
||||
G4hIonisation* hion = new G4hIonisation();
|
||||
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
|
||||
hion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(hion, -1,2,2);
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysListEmPAI.cc,v 1.2 2006/06/29 17:00:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: PhysListEmPAI.cc,v 1.3 2007/09/26 10:23:17 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -42,8 +42,6 @@
|
||||
|
||||
#include "G4eIonisation.hh"
|
||||
#include "G4PAIModel.hh"
|
||||
#include "G4PAIPhotonModel.hh"
|
||||
//#include "G4PAIwithPhotons.hh"
|
||||
|
||||
#include "G4eBremsstrahlung.hh"
|
||||
#include "G4eplusAnnihilation.hh"
|
||||
@@ -99,23 +97,22 @@ void PhysListEmPAI::ConstructProcess()
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
|
||||
G4eIonisation* eion = new G4eIonisation();
|
||||
|
||||
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
//G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
// G4PAIwithPhotons* pai = new G4PAIwithPhotons(particle,"PAIwPhotons");
|
||||
eion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(eion,-1, 2,2);
|
||||
|
||||
pmanager->AddProcess(new G4eBremsstrahlung,-1,1,3);
|
||||
|
||||
pmanager->AddProcess(new G4eBremsstrahlung,-1,3,3);
|
||||
}
|
||||
else if (particleName == "e+")
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
|
||||
|
||||
G4eIonisation* eion = new G4eIonisation();
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
eion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(eion,-1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);
|
||||
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
|
||||
|
||||
} else if( particleName == "mu+" ||
|
||||
@@ -124,14 +121,12 @@ void PhysListEmPAI::ConstructProcess()
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
|
||||
|
||||
G4MuIonisation* muion = new G4MuIonisation();
|
||||
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
// G4PAIwithPhotons* pai = new G4PAIwithPhotons(particle,"PAIwPhotons");
|
||||
muion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(muion, -1, 2,-2);
|
||||
pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1,3);
|
||||
pmanager->AddProcess(new G4MuPairProduction, -1,-1,4);
|
||||
pmanager->AddProcess(muion, -1, 2, 2);
|
||||
pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3,3);
|
||||
pmanager->AddProcess(new G4MuPairProduction, -1, 3,4);
|
||||
|
||||
}
|
||||
else if (particleName == "GenericIon")
|
||||
@@ -140,31 +135,15 @@ void PhysListEmPAI::ConstructProcess()
|
||||
pmanager->AddProcess(new G4ionIonisation, -1, 2,2);
|
||||
|
||||
}
|
||||
else if ( particleName == "proton" )
|
||||
{
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
|
||||
G4hIonisation* pion = new G4hIonisation();
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
//G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
// G4PAIwithPhotons* pai = new G4PAIwithPhotons(particle,"PAIwPhotons");
|
||||
pion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(pion, -1,2,2);
|
||||
}
|
||||
else if ( ( !particle->IsShortLived() ) &&
|
||||
( particle->GetPDGCharge() != 0.0 ) &&
|
||||
( particle->GetParticleName() != "chargedgeantino") )
|
||||
{
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
|
||||
G4hIonisation* hion = new G4hIonisation();
|
||||
|
||||
// G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
// G4PAIwithPhotons* pai = new G4PAIwithPhotons(particle,"PAIwPhotons");
|
||||
// hion->AddEmModel(0,pai,pai,gas);
|
||||
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
|
||||
hion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(hion, -1,2,2);
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysListEmPaiPhoton.cc,v 1.3 2006/06/29 17:00:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: PhysListEmPaiPhoton.cc,v 1.5 2007/09/26 10:23:17 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -41,7 +41,6 @@
|
||||
#include "G4MultipleScattering.hh"
|
||||
|
||||
#include "G4eIonisation.hh"
|
||||
#include "G4PAIModel.hh"
|
||||
#include "G4PAIPhotonModel.hh"
|
||||
|
||||
#include "G4eBremsstrahlung.hh"
|
||||
@@ -95,11 +94,28 @@ void PhysListEmPaiPhoton::ConstructProcess()
|
||||
pmanager->AddDiscreteProcess(new G4ComptonScattering);
|
||||
pmanager->AddDiscreteProcess(new G4GammaConversion);
|
||||
|
||||
}
|
||||
else if (particleName == "e-")
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
|
||||
G4eIonisation* eion = new G4eIonisation();
|
||||
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
eion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(eion,-1, 2, 2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung,-1,-1,3);
|
||||
|
||||
}
|
||||
else if (particleName == "e+")
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
|
||||
|
||||
G4eIonisation* eion = new G4eIonisation();
|
||||
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
eion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(eion, -1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
|
||||
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
|
||||
|
||||
@@ -109,12 +125,10 @@ void PhysListEmPaiPhoton::ConstructProcess()
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
|
||||
|
||||
G4MuIonisation* muion = new G4MuIonisation();
|
||||
|
||||
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
|
||||
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
muion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(muion, -1, 2,-2);
|
||||
pmanager->AddProcess(muion, -1, 2, 2);
|
||||
pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1,3);
|
||||
pmanager->AddProcess(new G4MuPairProduction, -1,-1,4);
|
||||
|
||||
@@ -122,58 +136,15 @@ void PhysListEmPaiPhoton::ConstructProcess()
|
||||
else if (particleName == "GenericIon")
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4ionIonisation, -1, 2,2);
|
||||
|
||||
}
|
||||
else if (particleName == "e-")
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
|
||||
G4eIonisation* eion = new G4eIonisation();
|
||||
|
||||
|
||||
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
|
||||
eion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(eion,-1, 2, 2);
|
||||
|
||||
pmanager->AddProcess(new G4eBremsstrahlung,-1,1,3);
|
||||
|
||||
}
|
||||
else if ( particleName == "proton" )
|
||||
{
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
|
||||
G4hIonisation* pion = new G4hIonisation();
|
||||
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
pion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(pion, -1,2,2);
|
||||
}
|
||||
else if ( particleName == "pi+" )
|
||||
{
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
|
||||
G4hIonisation* pion = new G4hIonisation();
|
||||
|
||||
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
|
||||
pion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
pmanager->AddProcess(pion, -1,2,2);
|
||||
pmanager->AddProcess(new G4ionIonisation, -1, 2,2);
|
||||
}
|
||||
else if ( ( !particle->IsShortLived() ) &&
|
||||
( particle->GetPDGCharge() != 0.0 ) &&
|
||||
( particle->GetParticleName() != "chargedgeantino") )
|
||||
{
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
|
||||
G4hIonisation* hion = new G4hIonisation();
|
||||
|
||||
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
|
||||
hion->AddEmModel(0,pai,pai,gas);
|
||||
|
||||
|
||||
@@ -1,120 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysListEmStandard.cc,v 1.7 2006/06/29 17:00:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "PhysListEmStandard.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
#include "G4ComptonScattering.hh"
|
||||
#include "G4GammaConversion.hh"
|
||||
#include "G4PhotoElectricEffect.hh"
|
||||
|
||||
#include "G4MultipleScattering.hh"
|
||||
|
||||
#include "G4eIonisation.hh"
|
||||
#include "G4eBremsstrahlung.hh"
|
||||
#include "G4eplusAnnihilation.hh"
|
||||
|
||||
#include "G4MuIonisation.hh"
|
||||
#include "G4MuBremsstrahlung.hh"
|
||||
#include "G4MuPairProduction.hh"
|
||||
|
||||
#include "G4hIonisation.hh"
|
||||
#include "G4ionIonisation.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysListEmStandard::PhysListEmStandard(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysListEmStandard::~PhysListEmStandard()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PhysListEmStandard::ConstructProcess()
|
||||
{
|
||||
// Add EM processes realised on base of prototype of model approach design
|
||||
|
||||
theParticleIterator->reset();
|
||||
while( (*theParticleIterator)() ){
|
||||
G4ParticleDefinition* particle = theParticleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
G4String particleName = particle->GetParticleName();
|
||||
|
||||
if (particleName == "gamma") {
|
||||
|
||||
pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
|
||||
pmanager->AddDiscreteProcess(new G4ComptonScattering);
|
||||
pmanager->AddDiscreteProcess(new G4GammaConversion);
|
||||
|
||||
} else if (particleName == "e-") {
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
|
||||
|
||||
} else if (particleName == "e+") {
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
|
||||
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
|
||||
|
||||
} else if( particleName == "mu+" ||
|
||||
particleName == "mu-" ) {
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
|
||||
pmanager->AddProcess(new G4MuIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1,3);
|
||||
pmanager->AddProcess(new G4MuPairProduction, -1,-1,4);
|
||||
|
||||
} else if( particleName == "GenericIon" ) {
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
pmanager->AddProcess(new G4ionIonisation, -1,2,2);
|
||||
|
||||
} else if ((!particle->IsShortLived()) &&
|
||||
(particle->GetPDGCharge() != 0.0) &&
|
||||
(particle->GetParticleName() != "chargedgeantino")) {
|
||||
//all others charged particles except geantino
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
pmanager->AddProcess(new G4hIonisation, -1,2,2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysListGeneral.cc,v 1.3 2006/06/29 17:00:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "PhysListGeneral.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysListGeneral::PhysListGeneral(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysListGeneral::~PhysListGeneral()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PhysListGeneral::ConstructProcess()
|
||||
{
|
||||
// Add Decay Process
|
||||
|
||||
G4Decay* fDecayProcess = new G4Decay();
|
||||
|
||||
theParticleIterator->reset();
|
||||
while( (*theParticleIterator)() )
|
||||
{
|
||||
G4ParticleDefinition* particle = theParticleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
|
||||
if (fDecayProcess->IsApplicable(*particle) && !particle->IsShortLived())
|
||||
{
|
||||
pmanager ->AddProcess(fDecayProcess);
|
||||
|
||||
// set ordering for PostStepDoIt and AtRestDoIt
|
||||
pmanager ->SetProcessOrdering(fDecayProcess, idxPostStep);
|
||||
pmanager ->SetProcessOrdering(fDecayProcess, idxAtRest);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -1,144 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysListParticles.cc,v 1.3 2006/06/29 17:00:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "PhysListParticles.hh"
|
||||
|
||||
// Bosons
|
||||
#include "G4ChargedGeantino.hh"
|
||||
#include "G4Geantino.hh"
|
||||
#include "G4Gamma.hh"
|
||||
#include "G4OpticalPhoton.hh"
|
||||
|
||||
// leptons
|
||||
#include "G4MuonPlus.hh"
|
||||
#include "G4MuonMinus.hh"
|
||||
#include "G4NeutrinoMu.hh"
|
||||
#include "G4AntiNeutrinoMu.hh"
|
||||
|
||||
#include "G4Electron.hh"
|
||||
#include "G4Positron.hh"
|
||||
#include "G4NeutrinoE.hh"
|
||||
#include "G4AntiNeutrinoE.hh"
|
||||
|
||||
// Mesons
|
||||
#include "G4PionPlus.hh"
|
||||
#include "G4PionMinus.hh"
|
||||
#include "G4PionZero.hh"
|
||||
#include "G4Eta.hh"
|
||||
#include "G4EtaPrime.hh"
|
||||
|
||||
#include "G4KaonPlus.hh"
|
||||
#include "G4KaonMinus.hh"
|
||||
#include "G4KaonZero.hh"
|
||||
#include "G4AntiKaonZero.hh"
|
||||
#include "G4KaonZeroLong.hh"
|
||||
#include "G4KaonZeroShort.hh"
|
||||
|
||||
// Baryons
|
||||
#include "G4Proton.hh"
|
||||
#include "G4AntiProton.hh"
|
||||
#include "G4Neutron.hh"
|
||||
#include "G4AntiNeutron.hh"
|
||||
|
||||
// Nuclei
|
||||
#include "G4Alpha.hh"
|
||||
#include "G4Deuteron.hh"
|
||||
#include "G4Triton.hh"
|
||||
#include "G4He3.hh"
|
||||
#include "G4GenericIon.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysListParticles::PhysListParticles(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysListParticles::~PhysListParticles()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PhysListParticles::ConstructParticle()
|
||||
{
|
||||
|
||||
// pseudo-particles
|
||||
G4Geantino::GeantinoDefinition();
|
||||
G4ChargedGeantino::ChargedGeantinoDefinition();
|
||||
|
||||
// gamma
|
||||
G4Gamma::GammaDefinition();
|
||||
|
||||
// optical photon
|
||||
G4OpticalPhoton::OpticalPhotonDefinition();
|
||||
|
||||
// leptons
|
||||
G4Electron::ElectronDefinition();
|
||||
G4Positron::PositronDefinition();
|
||||
G4MuonPlus::MuonPlusDefinition();
|
||||
G4MuonMinus::MuonMinusDefinition();
|
||||
|
||||
G4NeutrinoE::NeutrinoEDefinition();
|
||||
G4AntiNeutrinoE::AntiNeutrinoEDefinition();
|
||||
G4NeutrinoMu::NeutrinoMuDefinition();
|
||||
G4AntiNeutrinoMu::AntiNeutrinoMuDefinition();
|
||||
|
||||
// mesons
|
||||
G4PionPlus::PionPlusDefinition();
|
||||
G4PionMinus::PionMinusDefinition();
|
||||
G4PionZero::PionZeroDefinition();
|
||||
G4Eta::EtaDefinition();
|
||||
G4EtaPrime::EtaPrimeDefinition();
|
||||
G4KaonPlus::KaonPlusDefinition();
|
||||
G4KaonMinus::KaonMinusDefinition();
|
||||
G4KaonZero::KaonZeroDefinition();
|
||||
G4AntiKaonZero::AntiKaonZeroDefinition();
|
||||
G4KaonZeroLong::KaonZeroLongDefinition();
|
||||
G4KaonZeroShort::KaonZeroShortDefinition();
|
||||
|
||||
// barions
|
||||
G4Proton::ProtonDefinition();
|
||||
G4AntiProton::AntiProtonDefinition();
|
||||
G4Neutron::NeutronDefinition();
|
||||
G4AntiNeutron::AntiNeutronDefinition();
|
||||
|
||||
// ions
|
||||
G4Deuteron::DeuteronDefinition();
|
||||
G4Triton::TritonDefinition();
|
||||
G4He3::He3Definition();
|
||||
G4Alpha::AlphaDefinition();
|
||||
G4GenericIon::GenericIonDefinition();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -24,9 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
|
||||
// $Id: PhysicsList.cc,v 1.9 2006/12/13 15:42:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: PhysicsList.cc,v 1.14 2007/09/26 10:23:17 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -35,13 +34,11 @@
|
||||
#include "PhysicsList.hh"
|
||||
#include "PhysicsListMessenger.hh"
|
||||
|
||||
#include "PhysListParticles.hh"
|
||||
#include "PhysListGeneral.hh"
|
||||
#include "PhysListEmStandard.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4DecayPhysics.hh"
|
||||
|
||||
#include "PhysListEmModelPai.hh"
|
||||
#include "PhysListEmPaiPhoton.hh"
|
||||
|
||||
#include "PhysListEmPAI.hh"
|
||||
|
||||
#include "G4Gamma.hh"
|
||||
@@ -51,6 +48,12 @@
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "G4LossTableManager.hh"
|
||||
|
||||
#include "StepMax.hh"
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysicsList::PhysicsList() : G4VModularPhysicsList()
|
||||
@@ -67,15 +70,12 @@ PhysicsList::PhysicsList() : G4VModularPhysicsList()
|
||||
|
||||
SetVerboseLevel(1);
|
||||
|
||||
// Particles
|
||||
particleList = new PhysListParticles("particles");
|
||||
|
||||
// General Physics
|
||||
generalPhysicsList = new PhysListGeneral("general");
|
||||
// Decay Physics is always defined
|
||||
generalPhysicsList = new G4DecayPhysics();
|
||||
|
||||
// EM physics
|
||||
emName = G4String("standard");
|
||||
emPhysicsList = new PhysListEmStandard(emName);
|
||||
emName = G4String("emstandard");
|
||||
emPhysicsList = new G4EmStandardPhysics();
|
||||
|
||||
}
|
||||
|
||||
@@ -87,13 +87,14 @@ PhysicsList::~PhysicsList()
|
||||
delete generalPhysicsList;
|
||||
delete emPhysicsList;
|
||||
for(size_t i=0; i<hadronPhys.size(); i++) delete hadronPhys[i];
|
||||
delete stepMaxProcess;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PhysicsList::ConstructParticle()
|
||||
{
|
||||
particleList->ConstructParticle();
|
||||
generalPhysicsList->ConstructParticle();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -101,8 +102,8 @@ void PhysicsList::ConstructParticle()
|
||||
void PhysicsList::ConstructProcess()
|
||||
{
|
||||
AddTransportation();
|
||||
generalPhysicsList->ConstructProcess();
|
||||
emPhysicsList->ConstructProcess();
|
||||
generalPhysicsList->ConstructProcess();
|
||||
for(size_t i=0; i<hadronPhys.size(); i++) hadronPhys[i]->ConstructProcess();
|
||||
AddStepMax();
|
||||
}
|
||||
@@ -117,15 +118,7 @@ void PhysicsList::AddPhysicsList(const G4String& name)
|
||||
|
||||
if (name == emName) return;
|
||||
|
||||
if (name == "standard")
|
||||
{
|
||||
emName = name;
|
||||
delete emPhysicsList;
|
||||
emPhysicsList = new PhysListEmStandard(name);
|
||||
G4cout<<"PhysListEmStandard is called"<<G4endl;
|
||||
}
|
||||
|
||||
else if (name == "pai")
|
||||
if (name == "pai")
|
||||
{
|
||||
emName = name;
|
||||
delete emPhysicsList;
|
||||
@@ -139,6 +132,13 @@ void PhysicsList::AddPhysicsList(const G4String& name)
|
||||
emPhysicsList = new PhysListEmPaiPhoton(name);
|
||||
G4cout<<"PhysListEmModelPaiPhoton is called"<<G4endl;
|
||||
}
|
||||
else if (name == "pai_brem")
|
||||
{
|
||||
emName = name;
|
||||
delete emPhysicsList;
|
||||
emPhysicsList = new PhysListEmPAI(name);
|
||||
G4cout<<"PhysListEmPAI is called (bremsstrahlung dedx added)"<<G4endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
|
||||
@@ -149,14 +149,6 @@ void PhysicsList::AddPhysicsList(const G4String& name)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "StepMax.hh"
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PhysicsList::AddStepMax()
|
||||
{
|
||||
// Step limitation seen as a process
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: PhysicsListMessenger.cc,v 1.2 2006/06/29 17:00:47 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: StepMax.cc,v 1.3 2006/06/29 17:00:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: StepMaxMessenger.cc,v 1.2 2006/06/29 17:00:52 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Reference in New Issue
Block a user