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

#include <Doxymodules_biasing.h>

Inheritance diagram for GB02DetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 GB02DetectorConstruction ()
 
 ~GB02DetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 
virtual void ConstructSDandField ()
 

Detailed Description

Definition at line 82 of file Doxymodules_biasing.h.

Constructor & Destructor Documentation

◆ GB02DetectorConstruction()

GB02DetectorConstruction::GB02DetectorConstruction ( )

Definition at line 44 of file GB02DetectorConstruction.cc.

45{}

◆ ~GB02DetectorConstruction()

GB02DetectorConstruction::~GB02DetectorConstruction ( )

Definition at line 49 of file GB02DetectorConstruction.cc.

50{}

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * GB02DetectorConstruction::Construct ( )
virtual

Definition at line 54 of file GB02DetectorConstruction.cc.

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

◆ ConstructSDandField()

void GB02DetectorConstruction::ConstructSDandField ( )
virtual

Definition at line 97 of file GB02DetectorConstruction.cc.

98{
99 // -- Fetch volume for biasing:
100 G4LogicalVolume* logicTest = G4LogicalVolumeStore::GetInstance()->GetVolume("test.logical");
101
102 // ----------------------------------------------
103 // -- operator creation and attachment to volume:
104 // ----------------------------------------------
106 testMany->AddParticle("gamma");
107 testMany->AddParticle("neutron");
108 testMany->AttachTo(logicTest);
109 G4cout << " Attaching biasing operator " << testMany->GetName()
110 << " to logical volume " << logicTest->GetName()
111 << G4endl;
112}

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

Applications | User Support | Publications | Collaboration