シンチレーション光したい(G4Scintillation
)
1#include "G4Scintillation.hh"
2
3auto params = G4OpticalParameters::Instance();
4params->SetScintByParticleType(false);
5params->SetScintTrackInfo(false);
6params->SetScintTrackSecondariesFirst(true);
7params->SetScintFiniteRiseTime(false);
8params->SetScintStackPhotons(true);
9params->SetScintVerboseLevel(1);
プロパティしたい
シンチレーション光の生成に必要なプロパティです。
プロパティ名 |
種類 |
説明 |
単位 |
---|---|---|---|
|
Constant |
Factor to vary width of yield distribution |
なし |
|
Constant |
Mean yield (number of particle produce per energy) |
1/Energy |
シンチレーション光を構成する要素(コンポーネント)ごとの設定もできます。 コンポーネントは3種類まで設定できます。
プロパティ名 |
種類 |
説明 |
単位 |
---|---|---|---|
|
Energy-dependent |
Energy spectrum for decay component 1 |
なし |
|
Constant |
Rise time for component 1 |
Time |
|
Constant |
Time constant for component 1 |
Time |
|
Constant |
Relative yield of component 1 |
なし |
粒子ごとのプロパティを設定できます。 それぞれ3種類まで設定できます。
プロパティ名 |
種類 |
説明 |
単位 |
---|---|---|---|
|
Constant |
Time constant for component 1 for alphas |
Time |
|
Energy-dependent |
Yield vector for alphas |
1/Energy |
|
Constant |
Relative yield of component 1 for alphas |
なし |
|
Constant |
Relative yield of component 2 for alphas |
なし |
|
Constant |
Relative yield of component 3 for alphas |
なし |
|
Constant |
Time constant for component 1 for deuterons |
Time |
|
Energy-dependent |
Yield vector for deuterons |
1/Energy |
|
Constant |
Time constant for component 1 for electrons |
Time |
|
Energy-dependent |
Yield vector for electrons |
1/Energy |
|
Constant |
Time constant for component 1 for ions |
Time |
|
Energy-dependent |
Yield vector for ions |
1/Energy |
|
Constant |
Time constant for component 1 for protons |
Time |
|
Energy-dependent |
Yield vector for protons |
1/Energy |
|
Constant |
Time constant for component 1 for tritons |
Time |
|
Energy-dependent |
Yield vector for tritons |
1/Energy |
マクロで設定したい(/process/optical/scintillation/
)
/process/optical/scintillation/setByParticleType false
/process/optical/scintillation/setTrackInfo false
/process/optical/scintillation/setScintTrackSecondariesFirst true
/process/optical/scintillation/setFiniteRiseTime false
/process/optical/scintillation/setStackPhotons true
/process/optical/scintillation/verbose 1
シンチレーション光の設定はマクロでもできます。 上の値は、それぞれの設定のデフォルト値です。
シンチレーション光の数をしりたい(GetNumPhotons
)
1G4int n_photons = sc->GetNumPhotons();