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

#include <Doxymodules_biasing.h>

Inheritance diagram for GB04DetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 GB04DetectorConstruction ()
 
 ~GB04DetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 
virtual void ConstructSDandField ()
 

Detailed Description

Definition at line 111 of file Doxymodules_biasing.h.

Constructor & Destructor Documentation

◆ GB04DetectorConstruction()

GB04DetectorConstruction::GB04DetectorConstruction ( )

Definition at line 51 of file GB04DetectorConstruction.cc.

52{}

◆ ~GB04DetectorConstruction()

GB04DetectorConstruction::~GB04DetectorConstruction ( )

Definition at line 56 of file GB04DetectorConstruction.cc.

57{}

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * GB04DetectorConstruction::Construct ( )
virtual

Definition at line 61 of file GB04DetectorConstruction.cc.

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

◆ ConstructSDandField()

void GB04DetectorConstruction::ConstructSDandField ( )
virtual

Definition at line 104 of file GB04DetectorConstruction.cc.

105{
106 // -- Fetch volume for biasing:
107 G4LogicalVolume* logicTest =
108 G4LogicalVolumeStore::GetInstance()->GetVolume("test.logical");
109
110 // ----------------------------------------------
111 // -- operator creation and attachment to volume:
112 // ----------------------------------------------
113 GB04BOptrBremSplitting* bremSplittingOperator = new GB04BOptrBremSplitting();
114 bremSplittingOperator->AttachTo(logicTest);
115 G4cout << " Attaching biasing operator " << bremSplittingOperator->GetName()
116 << " to logical volume " << logicTest->GetName()
117 << G4endl;
118}

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

Applications | User Support | Publications | Collaboration