プラスチックシンチレータを作りたい
1// シンチレーター
2G4Material *scintillator = G4Material:GetMaterial("G4_PLASTIC_SC_VINYLTOLUEN");
3
4G4double width = 5.*cm;
5G4double depth = 10.*cm;
6G4double height = 1.*cm;
7
8G4Box *detectorSolid = new G4Box(
9 "detectorBox",
10 0.5 * width, // 幅
11 0.5 * depth, // 長さ
12 0.5 * height, // 厚み
13)
14
15G4LogicalVolume *detectorLogical = new G4LogicalVolume(
16 detectorSolid,
17 scintillator,
18 "detectorLogical",
19)
付属サンプルB5のDetectorConstruction.ccを参考にプラスチックシンチレーターを作成しました。
小型宇宙線検出器OSECHIで使っているプラスチックシンチレーターを作りました。 OSECHIでは幅5cm、長さ10cm、厚み1cmのプラシンを3枚重ねて使っています。
注釈
付属サンプルB5では、シンチレーターの材料にビニルトルエン(C9H10)を指定していました。 もしかしたら、実験によっては別の材料を使っているかもしれません。
見た目を追加したい
1auto visAttributes = new G4VisAttribute(G4Colour(0.8888, 0.0, 0.0));
2detectorLogical->SetVisAttributes(visAttributes);
3fVisAttributes.push_back(visAttributes);
有感領域を追加したい
1auto sdManager = G4SDManager::GetSDMpointer();
2G4String SDname;
3auto detector = new DetectorSD(SDname="/detector");
4fDetectorLogical->SetSensitiveDetector(detector);