Defines the geometry and scorers for calculating chemical species yields.
More...
#include <Doxymodules_medical.h>
Defines the geometry and scorers for calculating chemical species yields.
Definition at line 345 of file Doxymodules_medical.h.
◆ DetectorConstruction()
scavenger::DetectorConstruction::DetectorConstruction |
( |
| ) |
|
◆ ~DetectorConstruction()
scavenger::DetectorConstruction::~DetectorConstruction |
( |
| ) |
|
|
overridedefault |
◆ Construct()
Definition at line 52 of file DetectorConstruction.cc.
52 {
53
54 auto *man = G4NistManager::Instance();
55 auto *water = man->FindOrBuildMaterial("G4_WATER");
56
57
58 G4double world_sizeXYZ = 1. * km;
59 auto solidWorld =
61 0.5 * world_sizeXYZ,
62 0.5 * world_sizeXYZ,
63 0.5 * world_sizeXYZ);
64
65 auto logicWorld =
67 water,
68 "World");
69
72 G4ThreeVector(),
73 logicWorld,
74 "World",
75 nullptr,
76 false,
77 0,
78 true);
79
80
82 worldVisAtt->SetVisibility(true);
83 logicWorld->SetVisAttributes(worldVisAtt);
84 return physWorld;
85}
◆ ConstructSDandField()
void scavenger::DetectorConstruction::ConstructSDandField |
( |
| ) |
|
|
override |
declare World as a MultiFunctionalDetector scorer
Definition at line 89 of file DetectorConstruction.cc.
89 {
90 G4SDManager::GetSDMpointer()->SetVerboseLevel(1);
91
92
93
95
96
97
98 auto primaryKiller = new PrimaryKiller("PrimaryKiller");
99 primaryKiller->SetMinLossEnergyLimit(500. * eV);
100 primaryKiller->SetMaxLossEnergyLimit(1. * keV);
101 mfDetector->RegisterPrimitive(primaryKiller);
102
103
104
105
106
108 mfDetector->RegisterPrimitive(gValues);
109 G4SDManager::GetSDMpointer()->AddNewDetector(mfDetector);
110 SetSensitiveDetector("World", mfDetector);
111}
The documentation for this class was generated from the following files: