Geant4  10.01.p02
B5DetectorConstruction Class Reference

Detector construction. More...

#include <B5DetectorConstruction.hh>

+ Inheritance diagram for B5DetectorConstruction:
+ Collaboration diagram for B5DetectorConstruction:

Public Member Functions

 B5DetectorConstruction ()
 
virtual ~B5DetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 
virtual void ConstructSDandField ()
 
void SetArmAngle (G4double val)
 
G4double GetArmAngle ()
 
void ConstructMaterials ()
 
- 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
 

Private Member Functions

void DefineCommands ()
 

Private Attributes

G4GenericMessengerfMessenger
 
G4LogicalVolumefHodoscope1Logical
 
G4LogicalVolumefHodoscope2Logical
 
G4LogicalVolumefWirePlane1Logical
 
G4LogicalVolumefWirePlane2Logical
 
G4LogicalVolumefCellLogical
 
G4LogicalVolumefHadCalScintiLogical
 
G4LogicalVolumefMagneticLogical
 
std::vector< G4VisAttributes * > fVisAttributes
 
G4double fArmAngle
 
G4RotationMatrixfArmRotation
 
G4VPhysicalVolumefSecondArmPhys
 

Static Private Attributes

static G4ThreadLocal
B5MagneticField
fMagneticField = 0
 
static G4ThreadLocal
G4FieldManager
fFieldMgr = 0
 

Additional Inherited Members

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

Detailed Description

Detector construction.

Definition at line 51 of file B5DetectorConstruction.hh.

Constructor & Destructor Documentation

B5DetectorConstruction::B5DetectorConstruction ( )

Definition at line 77 of file B5DetectorConstruction.cc.

References DefineCommands(), fArmAngle, and fArmRotation.

+ Here is the call graph for this function:

B5DetectorConstruction::~B5DetectorConstruction ( )
virtual

Definition at line 97 of file B5DetectorConstruction.cc.

References fArmRotation, fMessenger, and fVisAttributes.

Member Function Documentation

G4VPhysicalVolume * B5DetectorConstruction::Construct ( void  )
virtual
void B5DetectorConstruction::ConstructMaterials ( )

Definition at line 420 of file B5DetectorConstruction.cc.

References G4NistManager::FindOrBuildMaterial(), G4cout, G4endl, G4Material::GetMaterialTable(), and G4NistManager::Instance().

Referenced by Construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void B5DetectorConstruction::ConstructSDandField ( )
virtual
void B5DetectorConstruction::DefineCommands ( )
private

Definition at line 480 of file B5DetectorConstruction.cc.

References G4GenericMessenger::DeclareMethodWithUnit(), fMessenger, SetArmAngle(), G4GenericMessenger::Command::SetDefaultValue(), G4GenericMessenger::Command::SetParameterName(), and G4GenericMessenger::Command::SetRange().

Referenced by B5DetectorConstruction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double B5DetectorConstruction::GetArmAngle ( )
inline

Definition at line 61 of file B5DetectorConstruction.hh.

References fArmAngle.

void B5DetectorConstruction::SetArmAngle ( G4double  val)

Definition at line 459 of file B5DetectorConstruction.cc.

References fArmAngle, fArmRotation, fSecondArmPhys, G4cerr, G4endl, G4RunManager::GeometryHasBeenModified(), G4RunManager::GetRunManager(), m, G4VPhysicalVolume::SetTranslation(), and z.

Referenced by DefineCommands().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4double B5DetectorConstruction::fArmAngle
private
G4RotationMatrix* B5DetectorConstruction::fArmRotation
private
G4LogicalVolume* B5DetectorConstruction::fCellLogical
private

Definition at line 77 of file B5DetectorConstruction.hh.

Referenced by Construct(), and ConstructSDandField().

G4ThreadLocal G4FieldManager * B5DetectorConstruction::fFieldMgr = 0
staticprivate

Definition at line 71 of file B5DetectorConstruction.hh.

Referenced by ConstructSDandField().

G4LogicalVolume* B5DetectorConstruction::fHadCalScintiLogical
private

Definition at line 78 of file B5DetectorConstruction.hh.

Referenced by Construct(), and ConstructSDandField().

G4LogicalVolume* B5DetectorConstruction::fHodoscope1Logical
private

Definition at line 73 of file B5DetectorConstruction.hh.

Referenced by Construct(), and ConstructSDandField().

G4LogicalVolume* B5DetectorConstruction::fHodoscope2Logical
private

Definition at line 74 of file B5DetectorConstruction.hh.

Referenced by Construct(), and ConstructSDandField().

G4ThreadLocal B5MagneticField * B5DetectorConstruction::fMagneticField = 0
staticprivate

Definition at line 70 of file B5DetectorConstruction.hh.

Referenced by ConstructSDandField().

G4LogicalVolume* B5DetectorConstruction::fMagneticLogical
private

Definition at line 79 of file B5DetectorConstruction.hh.

Referenced by Construct(), and ConstructSDandField().

G4GenericMessenger* B5DetectorConstruction::fMessenger
private

Definition at line 68 of file B5DetectorConstruction.hh.

Referenced by DefineCommands(), and ~B5DetectorConstruction().

G4VPhysicalVolume* B5DetectorConstruction::fSecondArmPhys
private

Definition at line 85 of file B5DetectorConstruction.hh.

Referenced by Construct(), and SetArmAngle().

std::vector<G4VisAttributes*> B5DetectorConstruction::fVisAttributes
private

Definition at line 81 of file B5DetectorConstruction.hh.

Referenced by Construct(), and ~B5DetectorConstruction().

G4LogicalVolume* B5DetectorConstruction::fWirePlane1Logical
private

Definition at line 75 of file B5DetectorConstruction.hh.

Referenced by Construct(), and ConstructSDandField().

G4LogicalVolume* B5DetectorConstruction::fWirePlane2Logical
private

Definition at line 76 of file B5DetectorConstruction.hh.

Referenced by Construct(), and ConstructSDandField().


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