Loading...
Searching...
No Matches
Public Member Functions | List of all members
GB01DetectorConstruction Class Reference

#include <Doxymodules_biasing.h>

Inheritance diagram for GB01DetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 GB01DetectorConstruction ()
 
 ~GB01DetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 
virtual void ConstructSDandField ()
 

Detailed Description

Definition at line 69 of file Doxymodules_biasing.h.

Constructor & Destructor Documentation

◆ GB01DetectorConstruction()

GB01DetectorConstruction::GB01DetectorConstruction ( )

Definition at line 50 of file GB01DetectorConstruction.cc.

51{}

◆ ~GB01DetectorConstruction()

GB01DetectorConstruction::~GB01DetectorConstruction ( )

Definition at line 55 of file GB01DetectorConstruction.cc.

56{}

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * GB01DetectorConstruction::Construct ( )
virtual

Definition at line 60 of file GB01DetectorConstruction.cc.

61{
62 G4Material* worldMaterial = G4NistManager::Instance()->FindOrBuildMaterial("G4_Galactic");
63 G4Material* defaultMaterial = G4NistManager::Instance()->FindOrBuildMaterial("G4_lN2");
64
65 G4VSolid* solidWorld = new G4Box("World", 10*m, 10*m, 10*m );
66
67 G4LogicalVolume* logicWorld = new G4LogicalVolume(solidWorld, // its solid
68 worldMaterial, // its material
69 "World"); // its name
70
71 G4PVPlacement* physiWorld = new G4PVPlacement(0, // no rotation
72 G4ThreeVector(), // at (0,0,0)
73 logicWorld, // its logical volume
74 "World", // its name
75 0, // its mother volume
76 false, // no boolean operation
77 0); // copy number
78
79 // -----------------------------------
80 // -- volume where biasing is applied:
81 // -----------------------------------
82 G4double halfZ = 10*cm;
83 G4VSolid* solidTest = new G4Box("test.solid", 1*m, 1*m, halfZ );
84
85 G4LogicalVolume* logicTest = new G4LogicalVolume(solidTest, // its solid
86 defaultMaterial, // its material
87 "test.logical"); // its name
88
89 new G4PVPlacement(0, // no rotation
90 G4ThreeVector(0,0, halfZ), // volume entrance at (0,0,0)
91 logicTest, // its logical volume
92 "test.phys", // its name
93 logicWorld, // its mother volume
94 false, // no boolean operation
95 0); // copy number
96
97
98 return physiWorld;
99}

◆ ConstructSDandField()

void GB01DetectorConstruction::ConstructSDandField ( )
virtual

Definition at line 101 of file GB01DetectorConstruction.cc.

102{
103 // -- Fetch volume for biasing:
104 G4LogicalVolume* logicTest = G4LogicalVolumeStore::GetInstance()->GetVolume("test.logical");
105
106 // ----------------------------------------------
107 // -- operator creation and attachment to volume:
108 // ----------------------------------------------
111 testMany->AddParticle("gamma");
112 testMany->AddParticle("neutron");
113 testMany->AttachTo(logicTest);
114 G4cout << " Attaching biasing operator " << testMany->GetName()
115 << " to logical volume " << logicTest->GetName()
116 << G4endl;
117}

The documentation for this class was generated from the following files:

Applications | User Support | Publications | Collaboration