#include <TSDetectorConstruction.hh>
Definition at line 74 of file TSDetectorConstruction.hh.
◆ MaterialCollection_t
◆ ScoringVolumes_t
◆ TSDetectorConstruction()
TSDetectorConstruction::TSDetectorConstruction |
( |
| ) |
|
Definition at line 91 of file TSDetectorConstruction.cc.
G4String fWorldMaterialName
CLHEP::Hep3Vector G4ThreeVector
G4String fTargetMaterialName
static TSDetectorConstruction * fgInstance
G4ThreeVector fTargetSections
G4String fCasingMaterialName
G4VPhysicalVolume * fWorldPhys
◆ ~TSDetectorConstruction()
TSDetectorConstruction::~TSDetectorConstruction |
( |
| ) |
|
|
virtual |
◆ Construct()
◆ ConstructMaterials()
Definition at line 121 of file TSDetectorConstruction.cc.
G4String fWorldMaterialName
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static G4NistManager * Instance()
G4String fTargetMaterialName
G4String fCasingMaterialName
std::map< G4String, G4Material * > MaterialCollection_t
◆ ConstructSDandField()
void TSDetectorConstruction::ConstructSDandField |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from G4VUserDetectorConstruction.
Definition at line 276 of file TSDetectorConstruction.cc.
G4bool RegisterPrimitive(G4VPrimitiveScorer *)
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
ScoringVolumes_t fScoringVolumes
◆ ConstructWorld()
Definition at line 136 of file TSDetectorConstruction.cc.
140 G4bool check_overlap =
true;
147 materials.find(
"World")
154 0,
false, 0, check_overlap);
186 world_log->SetVisAttributes(white);
188 for(
G4int k = 0; k < nz; ++k)
189 for(
G4int j = 0; j < ny; ++j)
190 for(
G4int i = 0; i < nx; ++i)
201 std::stringstream ss_name;
202 ss_name <<
"Target_" << i <<
"_" << j <<
"_" << k;
204 G4Box* target_solid =
new G4Box(ss_name.str(),
213 if(j == 0 || j+1 == ny || i == 0 || i+1 == nx ||
214 (nz > 1 && (k == 0 || k+1 == nz)))
215 target_material = materials.find(
"Casing")->second;
217 target_material = materials.find(
"Target")->second;
244 G4bool even_z = (k%2 == 0) ?
true :
false;
245 G4bool even_y = (j%2 == 0) ?
true :
false;
246 G4bool even_x = (i%2 == 0) ?
true :
false;
252 if((even_y && even_x) || (!even_y && !even_x))
258 if((!even_y && even_x) || (even_y && !even_x))
void SetForceWireframe(G4bool)
CLHEP::Hep3Vector G4ThreeVector
void SetVisibility(G4bool)
void SetUserLimits(G4UserLimits *pULimits)
void SetForceSolid(G4bool)
G4ThreeVector fTargetSections
G4VPhysicalVolume * fWorldPhys
void SetVisAttributes(const G4VisAttributes *pVA)
ScoringVolumes_t fScoringVolumes
◆ GetMFDName()
const G4String& TSDetectorConstruction::GetMFDName |
( |
| ) |
const |
|
inline |
◆ GetScoringVolumes()
◆ GetWorldDimensions()
const G4ThreeVector& TSDetectorConstruction::GetWorldDimensions |
( |
| ) |
const |
|
inline |
◆ Instance()
◆ fCasingMaterialName
G4String TSDetectorConstruction::fCasingMaterialName |
|
private |
◆ fgInstance
◆ fMfdName
G4String TSDetectorConstruction::fMfdName |
|
private |
◆ fScoringVolumes
◆ fTargetDim
◆ fTargetMaterialName
G4String TSDetectorConstruction::fTargetMaterialName |
|
private |
◆ fTargetSections
◆ fWorldDim
◆ fWorldMaterialName
G4String TSDetectorConstruction::fWorldMaterialName |
|
private |
◆ fWorldPhys
The documentation for this class was generated from the following files: