Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ExtBesDetectorConstruction Class Reference

#include <ExtBesDetectorConstruction.h>

List of all members.

Public Member Functions

G4VPhysicalVolume * Construct ()
G4VPhysicalVolume * Construct ()
 ExtBesDetectorConstruction (const bool bFieldOn)
 ExtBesDetectorConstruction (const bool bFieldOn)
 ~ExtBesDetectorConstruction ()
 ~ExtBesDetectorConstruction ()

Private Attributes

ExtBesMagneticFieldbesField
ExtBesMagneticFieldbesField
ExtBesEmcConstruction Emc
G4VPhysicalVolume * fWorld
G4VPhysicalVolume * fWorld
ExtBesMdcConstruction Mdc
ExtBesMucConstruction Muc
ExtBesTofConstruction Tof


Constructor & Destructor Documentation

ExtBesDetectorConstruction::ExtBesDetectorConstruction const bool  bFieldOn  ) 
 

00026 {
00027         if(bFieldOn) besField = new ExtBesMagneticField();
00028         fWorld=0;
00029 }

ExtBesDetectorConstruction::~ExtBesDetectorConstruction  ) 
 

00033 {
00034         if(besField)
00035         delete besField;
00036 }

ExtBesDetectorConstruction::ExtBesDetectorConstruction const bool  bFieldOn  ) 
 

ExtBesDetectorConstruction::~ExtBesDetectorConstruction  ) 
 


Member Function Documentation

G4VPhysicalVolume* ExtBesDetectorConstruction::Construct  ) 
 

G4VPhysicalVolume * ExtBesDetectorConstruction::Construct  ) 
 

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 }


Member Data Documentation

ExtBesMagneticField* ExtBesDetectorConstruction::besField [private]
 

ExtBesMagneticField* ExtBesDetectorConstruction::besField [private]
 

ExtBesEmcConstruction ExtBesDetectorConstruction::Emc [private]
 

G4VPhysicalVolume* ExtBesDetectorConstruction::fWorld [private]
 

G4VPhysicalVolume* ExtBesDetectorConstruction::fWorld [private]
 

ExtBesMdcConstruction ExtBesDetectorConstruction::Mdc [private]
 

ExtBesMucConstruction ExtBesDetectorConstruction::Muc [private]
 

ExtBesTofConstruction ExtBesDetectorConstruction::Tof [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:14:10 2011 for BOSS6.5.5 by  doxygen 1.3.9.1