#include <ExtBesDetectorConstruction.h>
Public Member Functions | |
G4VPhysicalVolume * | Construct () |
G4VPhysicalVolume * | Construct () |
ExtBesDetectorConstruction (const bool bFieldOn) | |
ExtBesDetectorConstruction (const bool bFieldOn) | |
~ExtBesDetectorConstruction () | |
~ExtBesDetectorConstruction () | |
Private Attributes | |
ExtBesMagneticField * | besField |
ExtBesMagneticField * | besField |
ExtBesEmcConstruction | Emc |
G4VPhysicalVolume * | fWorld |
G4VPhysicalVolume * | fWorld |
ExtBesMdcConstruction | Mdc |
ExtBesMucConstruction | Muc |
ExtBesTofConstruction | Tof |
|
00026 { 00027 if(bFieldOn) besField = new ExtBesMagneticField(); 00028 fWorld=0; 00029 }
|
|
00033 { 00034 if(besField) 00035 delete besField; 00036 }
|
|
|
|
|
|
|
|
00040 { 00041 BesG4Geo* aBesG4Geo = new BesG4Geo(); 00042 00043 fWorld=(G4VPhysicalVolume *)GDMLProcessor::GetInstance()->GetWorldVolume(); 00044 if( fWorld == 0 ) { 00045 G4Exception("World volume not set properly check your setup selection criteria or GDML input!"); 00046 } 00047 00048 delete aBesG4Geo; 00049 00050 G4LogicalVolume* logicalBes = const_cast<G4LogicalVolume*>( GDMLProcessor::GetInstance()->GetLogicalVolume("logicalWorld" ) ); 00051 Mdc.Construct(logicalBes); 00052 Tof.Construct(logicalBes); 00053 Emc.Construct(logicalBes); 00054 Muc.Construct(logicalBes); 00055 00056 return fWorld; 00057 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|