Geant4
10.01.p02
|
Detector construction class to define materials, geometry and global uniform magnetic field. More...
#include <B2aDetectorConstruction.hh>
Public Member Functions | |
B2aDetectorConstruction () | |
virtual | ~B2aDetectorConstruction () |
virtual G4VPhysicalVolume * | Construct () |
virtual void | ConstructSDandField () |
void | SetTargetMaterial (G4String) |
void | SetChamberMaterial (G4String) |
void | SetMaxStep (G4double) |
void | SetCheckOverlaps (G4bool) |
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 |
G4VUserParallelWorld * | GetParallelWorld (G4int i) const |
Private Member Functions | |
void | DefineMaterials () |
G4VPhysicalVolume * | DefineVolumes () |
Static Private Attributes | |
static G4ThreadLocal G4GlobalMagFieldMessenger * | fMagFieldMessenger = 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) |
Detector construction class to define materials, geometry and global uniform magnetic field.
Definition at line 49 of file B2aDetectorConstruction.hh.
B2aDetectorConstruction::B2aDetectorConstruction | ( | ) |
Definition at line 60 of file B2aDetectorConstruction.cc.
References fLogicChamber, fMessenger, and fNbOfChambers.
|
virtual |
Definition at line 76 of file B2aDetectorConstruction.cc.
References fLogicChamber, fMessenger, and fStepLimit.
|
virtual |
Implements G4VUserDetectorConstruction.
Definition at line 85 of file B2aDetectorConstruction.cc.
References DefineMaterials(), and DefineVolumes().
|
virtual |
Reimplemented from G4VUserDetectorConstruction.
Definition at line 290 of file B2aDetectorConstruction.cc.
References fMagFieldMessenger, G4AutoDelete::Register(), G4VUserDetectorConstruction::SetSensitiveDetector(), and G4GlobalMagFieldMessenger::SetVerboseLevel().
|
private |
Definition at line 96 of file B2aDetectorConstruction.cc.
References fChamberMaterial, G4NistManager::FindOrBuildMaterial(), fTargetMaterial, G4cout, G4endl, G4Material::GetMaterialTable(), and G4NistManager::Instance().
Referenced by Construct().
|
private |
Set additional contraints on the track, with G4UserSpecialCuts
G4double maxLength = 2*trackerLength, maxTime = 0.1*ns, minEkin = 10*MeV; trackerLV->SetUserLimits(new G4UserLimits(maxStep, maxLength, maxTime, minEkin));
Definition at line 117 of file B2aDetectorConstruction.cc.
References cm, deg, FatalException, fChamberMaterial, fCheckOverlaps, fLogicChamber, fLogicTarget, fNbOfChambers, fStepLimit, fTargetMaterial, G4cout, G4endl, G4Exception(), G4GeometryTolerance::GetInstance(), G4GeometryManager::GetInstance(), G4Material::GetMaterial(), G4Material::GetName(), G4GeometryTolerance::GetSurfaceTolerance(), mm, G4LogicalVolume::SetUserLimits(), G4LogicalVolume::SetVisAttributes(), and G4GeometryManager::SetWorldMaximumExtent().
Referenced by Construct().
void B2aDetectorConstruction::SetChamberMaterial | ( | G4String | materialName | ) |
Definition at line 339 of file B2aDetectorConstruction.cc.
References fChamberMaterial, G4NistManager::FindOrBuildMaterial(), fLogicChamber, fNbOfChambers, G4cout, G4endl, and G4NistManager::Instance().
Referenced by B2aDetectorMessenger::SetNewValue().
void B2aDetectorConstruction::SetCheckOverlaps | ( | G4bool | checkOverlaps | ) |
Definition at line 374 of file B2aDetectorConstruction.cc.
References fCheckOverlaps.
void B2aDetectorConstruction::SetMaxStep | ( | G4double | maxStep | ) |
Definition at line 367 of file B2aDetectorConstruction.cc.
References fStepLimit, and G4UserLimits::SetMaxAllowedStep().
Referenced by B2aDetectorMessenger::SetNewValue().
void B2aDetectorConstruction::SetTargetMaterial | ( | G4String | materialName | ) |
Definition at line 314 of file B2aDetectorConstruction.cc.
References G4NistManager::FindOrBuildMaterial(), fLogicTarget, fTargetMaterial, G4cout, G4endl, G4NistManager::Instance(), and G4LogicalVolume::SetMaterial().
Referenced by B2aDetectorMessenger::SetNewValue().
|
private |
Definition at line 77 of file B2aDetectorConstruction.hh.
Referenced by DefineMaterials(), DefineVolumes(), and SetChamberMaterial().
|
private |
Definition at line 86 of file B2aDetectorConstruction.hh.
Referenced by DefineVolumes(), and SetCheckOverlaps().
|
private |
Definition at line 74 of file B2aDetectorConstruction.hh.
Referenced by B2aDetectorConstruction(), DefineVolumes(), SetChamberMaterial(), and ~B2aDetectorConstruction().
|
private |
Definition at line 73 of file B2aDetectorConstruction.hh.
Referenced by DefineVolumes(), and SetTargetMaterial().
|
staticprivate |
Definition at line 83 of file B2aDetectorConstruction.hh.
Referenced by ConstructSDandField().
|
private |
Definition at line 81 of file B2aDetectorConstruction.hh.
Referenced by B2aDetectorConstruction(), and ~B2aDetectorConstruction().
|
private |
Definition at line 71 of file B2aDetectorConstruction.hh.
Referenced by B2aDetectorConstruction(), DefineVolumes(), and SetChamberMaterial().
|
private |
Definition at line 79 of file B2aDetectorConstruction.hh.
Referenced by DefineVolumes(), SetMaxStep(), and ~B2aDetectorConstruction().
|
private |
Definition at line 76 of file B2aDetectorConstruction.hh.
Referenced by DefineMaterials(), DefineVolumes(), and SetTargetMaterial().