Warning, /geant4/examples/extended/optical/OpNovice2/scint_by_particle.mac is written in an unsupported language. File is not indexed.
0001 /control/verbose 2
0002 /tracking/verbose 0
0003 /process/optical/verbose 1
0004 /run/verbose 1
0005 /control/cout/ignoreThreadsExcept 0
0006
0007 /opnovice2/boxMaterial G4_BGO
0008 /opnovice2/worldMaterial G4_AIR
0009
0010 /opnovice2/boxProperty RINDEX 0.000002 1.3 0.000008 1.4
0011 /opnovice2/boxProperty ABSLENGTH 0.000002 1 0.000005 2 0.000008 3
0012 /opnovice2/boxProperty SCINTILLATIONCOMPONENT1 0.000002 1.0 0.000005 1.1 0.000008 1.3
0013 /opnovice2/boxProperty SCINTILLATIONCOMPONENT2 0.000002 0.8 0.000005 0.6 0.000008 0.3
0014 /opnovice2/boxConstProperty SCINTILLATIONTIMECONSTANT1 20 ## ns
0015 /opnovice2/boxConstProperty SCINTILLATIONTIMECONSTANT2 200 ## ns
0016 /opnovice2/boxConstProperty SCINTILLATIONRISETIME1 5 ## ns
0017 /opnovice2/boxConstProperty SCINTILLATIONRISETIME2 10 ## ns
0018 /opnovice2/boxConstProperty RESOLUTIONSCALE 1
0019 #/opnovice2/boxProperty SCINTILLATIONYIELD 5000.
0020 /opnovice2/boxProperty PROTONSCINTILLATIONYIELD 0 50 10 5000
0021 /opnovice2/boxConstProperty PROTONSCINTILLATIONYIELD1 0.3
0022 /opnovice2/boxConstProperty PROTONSCINTILLATIONYIELD2 0.5
0023 /opnovice2/boxConstProperty PROTONSCINTILLATIONYIELD3 0.2
0024 /opnovice2/boxConstProperty PROTONSCINTILLATIONTIMECONSTANT1 50
0025 /opnovice2/boxConstProperty PROTONSCINTILLATIONTIMECONSTANT2 200
0026 /opnovice2/boxConstProperty PROTONSCINTILLATIONTIMECONSTANT3 500
0027 /opnovice2/boxProperty DEUTERONSCINTILLATIONYIELD 0 50 10 5000
0028 /opnovice2/boxConstProperty DEUTERONSCINTILLATIONYIELD1 0.6
0029 /opnovice2/boxConstProperty DEUTERONSCINTILLATIONYIELD2 0.4
0030 # if time constants aren't specified for a particle, SCINTILLATIONTIMECONSTANTs
0031 # will be used for that particle
0032 #/opnovice2/boxConstProperty DEUTERONSCINTILLATIONTIMECONSTANT1 50
0033 #/opnovice2/boxConstProperty DEUTERONSCINTILLATIONTIMECONSTANT2 100
0034 /opnovice2/boxProperty TRITONSCINTILLATIONYIELD 0 50 10 5000
0035 /opnovice2/boxConstProperty TRITONSCINTILLATIONYIELD1 0.5
0036 /opnovice2/boxConstProperty TRITONSCINTILLATIONYIELD2 0.5
0037 /opnovice2/boxConstProperty TRITONSCINTILLATIONTIMECONSTANT1 100
0038 /opnovice2/boxConstProperty TRITONSCINTILLATIONTIMECONSTANT2 500
0039 /opnovice2/boxProperty ALPHASCINTILLATIONYIELD 0 50 10 50000
0040 /opnovice2/boxConstProperty ALPHASCINTILLATIONYIELD1 0.7
0041 /opnovice2/boxConstProperty ALPHASCINTILLATIONYIELD2 0.3
0042 /opnovice2/boxConstProperty ALPHASCINTILLATIONTIMECONSTANT1 30
0043 /opnovice2/boxConstProperty ALPHASCINTILLATIONTIMECONSTANT2 60
0044 /opnovice2/boxProperty IONSCINTILLATIONYIELD 0 50 10 5000
0045 /opnovice2/boxConstProperty IONSCINTILLATIONYIELD1 1.0
0046 /opnovice2/boxConstProperty IONSCINTILLATIONYIELD2 0.0
0047 /opnovice2/boxConstProperty IONSCINTILLATIONTIMECONSTANT1 20
0048 /opnovice2/boxConstProperty IONSCINTILLATIONTIMECONSTANT2 100
0049 /opnovice2/boxProperty ELECTRONSCINTILLATIONYIELD 0 5000 10 500000
0050 /opnovice2/boxConstProperty ELECTRONSCINTILLATIONYIELD1 0.5
0051 /opnovice2/boxConstProperty ELECTRONSCINTILLATIONYIELD2 0.5
0052 /opnovice2/boxConstProperty ELECTRONSCINTILLATIONTIMECONSTANT1 50
0053 /opnovice2/boxConstProperty ELECTRONSCINTILLATIONTIMECONSTANT2 500
0054
0055 /opnovice2/worldProperty RINDEX 0.000002 1.01 0.000008 1.01
0056 /opnovice2/worldProperty ABSLENGTH 0.000002 100 0.000005 100 0.000008 100
0057 ## no scintillation in the world, but we want to exercise
0058 ## this macro command
0059 /opnovice2/worldConstProperty SCINTILLATIONTIMECONSTANT1 1
0060
0061 /process/optical/processActivation Cerenkov false
0062 /process/optical/processActivation OpAbsorption true
0063 /process/optical/processActivation OpBoundary false
0064 /process/optical/processActivation Scintillation true
0065 /process/optical/processActivation OpRayleigh false
0066 /process/optical/processActivation OpMieHG false
0067 /process/optical/processActivation OpWLS false
0068
0069 /process/optical/scintillation/setByParticleType true
0070 /process/optical/scintillation/setTrackInfo false
0071 /process/optical/scintillation/setFiniteRiseTime false
0072 /process/optical/scintillation/setStackPhotons true
0073
0074 /process/optical/scintillation/setTrackSecondariesFirst true
0075
0076 /run/initialize
0077
0078 /analysis/setFileName scint_by_particle_e
0079 /analysis/h1/set 2 100 0 10 # eV
0080 /analysis/h1/set 3 400 0 200 # ns
0081
0082 #
0083 /gun/particle e-
0084 /gun/energy 1 MeV
0085 /gun/position -1 0 0 m
0086 /gun/direction 1 0 0
0087
0088 /run/beamOn 100
0089
0090 /gun/particle proton
0091 /analysis/setFileName scint_by_particle_p
0092 /run/beamOn 100
0093
0094 /gun/particle alpha
0095 /analysis/setFileName scint_by_particle_a
0096 /run/beamOn 100
0097
0098 /gun/particle deuteron
0099 /analysis/setFileName scint_by_particle_d
0100 /run/beamOn 100
0101
0102 /gun/particle ion
0103 /analysis/setFileName scint_by_particle_i
0104 /gun/ion 6 12 6
0105 /run/beamOn 100