Geant4  10.02.p01
TSDetectorConstruction Class Reference

#include <TSDetectorConstruction.hh>

+ Inheritance diagram for TSDetectorConstruction:
+ Collaboration diagram for TSDetectorConstruction:

Public Types

typedef std::map< G4String,
G4Material * > 
MaterialCollection_t
 
typedef std::set
< G4LogicalVolume * > 
ScoringVolumes_t
 

Public Member Functions

 TSDetectorConstruction ()
 
virtual ~TSDetectorConstruction ()
 
G4VPhysicalVolumeConstruct ()
 
const G4ThreeVectorGetWorldDimensions () const
 
const ScoringVolumes_tGetScoringVolumes () const
 
const G4StringGetMFDName () const
 
- Public Member Functions inherited from G4VUserDetectorConstruction
 G4VUserDetectorConstruction ()
 
virtual ~G4VUserDetectorConstruction ()
 
virtual void CloneSD ()
 
virtual void CloneF ()
 
void RegisterParallelWorld (G4VUserParallelWorld *)
 
G4int ConstructParallelGeometries ()
 
void ConstructParallelSD ()
 
G4int GetNumberOfParallelWorld () const
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Static Public Member Functions

static TSDetectorConstructionInstance ()
 

Protected Member Functions

virtual MaterialCollection_t ConstructMaterials ()
 
virtual G4VPhysicalVolumeConstructWorld (const MaterialCollection_t &)
 
virtual void ConstructSDandField ()
 
- Protected Member Functions inherited from G4VUserDetectorConstruction
void SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
 
void SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD)
 

Private Attributes

G4VPhysicalVolumefWorldPhys
 
ScoringVolumes_t fScoringVolumes
 
G4String fWorldMaterialName
 
G4String fTargetMaterialName
 
G4String fCasingMaterialName
 
G4ThreeVector fWorldDim
 
G4ThreeVector fTargetDim
 
G4ThreeVector fTargetSections
 
G4String fMfdName
 

Static Private Attributes

static TSDetectorConstructionfgInstance = 0
 

Detailed Description

Definition at line 74 of file TSDetectorConstruction.hh.

Member Typedef Documentation

Constructor & Destructor Documentation

TSDetectorConstruction::TSDetectorConstruction ( )

Definition at line 91 of file TSDetectorConstruction.cc.

References fgInstance.

TSDetectorConstruction::~TSDetectorConstruction ( )
virtual

Definition at line 106 of file TSDetectorConstruction.cc.

References fgInstance.

Member Function Documentation

G4VPhysicalVolume * TSDetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 113 of file TSDetectorConstruction.cc.

References ConstructMaterials(), and ConstructWorld().

+ Here is the call graph for this function:

TSDetectorConstruction::MaterialCollection_t TSDetectorConstruction::ConstructMaterials ( )
protectedvirtual

Definition at line 121 of file TSDetectorConstruction.cc.

References fCasingMaterialName, G4NistManager::FindOrBuildMaterial(), fTargetMaterialName, fWorldMaterialName, and G4NistManager::Instance().

Referenced by Construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TSDetectorConstruction::ConstructSDandField ( )
protectedvirtual

Reimplemented from G4VUserDetectorConstruction.

Definition at line 276 of file TSDetectorConstruction.cc.

References fMfdName, fScoringVolumes, G4MultiFunctionalDetector::RegisterPrimitive(), and G4VUserDetectorConstruction::SetSensitiveDetector().

+ Here is the call graph for this function:

G4VPhysicalVolume * TSDetectorConstruction::ConstructWorld ( const MaterialCollection_t materials)
protectedvirtual

Definition at line 136 of file TSDetectorConstruction.cc.

References blue, fScoringVolumes, fTargetDim, fTargetSections, fWorldDim, fWorldPhys, red, G4VisAttributes::SetForceSolid(), G4VisAttributes::SetForceWireframe(), G4LogicalVolume::SetUserLimits(), G4LogicalVolume::SetVisAttributes(), and G4VisAttributes::SetVisibility().

Referenced by Construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const G4String& TSDetectorConstruction::GetMFDName ( ) const
inline

Definition at line 91 of file TSDetectorConstruction.hh.

References fMfdName.

const ScoringVolumes_t& TSDetectorConstruction::GetScoringVolumes ( ) const
inline

Definition at line 89 of file TSDetectorConstruction.hh.

References fScoringVolumes.

const G4ThreeVector& TSDetectorConstruction::GetWorldDimensions ( ) const
inline

Definition at line 88 of file TSDetectorConstruction.hh.

References fWorldDim.

Referenced by TSPrimaryGeneratorAction::GeneratePrimaries().

+ Here is the caller graph for this function:

TSDetectorConstruction * TSDetectorConstruction::Instance ( void  )
static

Definition at line 84 of file TSDetectorConstruction.cc.

Referenced by TSPrimaryGeneratorAction::GeneratePrimaries().

+ Here is the caller graph for this function:

Member Data Documentation

G4String TSDetectorConstruction::fCasingMaterialName
private

Definition at line 104 of file TSDetectorConstruction.hh.

Referenced by ConstructMaterials().

TSDetectorConstruction * TSDetectorConstruction::fgInstance = 0
staticprivate

Definition at line 99 of file TSDetectorConstruction.hh.

Referenced by TSDetectorConstruction(), and ~TSDetectorConstruction().

G4String TSDetectorConstruction::fMfdName
private

Definition at line 108 of file TSDetectorConstruction.hh.

Referenced by ConstructSDandField(), and GetMFDName().

ScoringVolumes_t TSDetectorConstruction::fScoringVolumes
private
G4ThreeVector TSDetectorConstruction::fTargetDim
private

Definition at line 106 of file TSDetectorConstruction.hh.

Referenced by ConstructWorld().

G4String TSDetectorConstruction::fTargetMaterialName
private

Definition at line 103 of file TSDetectorConstruction.hh.

Referenced by ConstructMaterials().

G4ThreeVector TSDetectorConstruction::fTargetSections
private

Definition at line 107 of file TSDetectorConstruction.hh.

Referenced by ConstructWorld().

G4ThreeVector TSDetectorConstruction::fWorldDim
private

Definition at line 105 of file TSDetectorConstruction.hh.

Referenced by ConstructWorld(), and GetWorldDimensions().

G4String TSDetectorConstruction::fWorldMaterialName
private

Definition at line 102 of file TSDetectorConstruction.hh.

Referenced by ConstructMaterials().

G4VPhysicalVolume* TSDetectorConstruction::fWorldPhys
private

Definition at line 100 of file TSDetectorConstruction.hh.

Referenced by ConstructWorld().


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