Detector composed of a set of concentric shells with two (possibly one) active shells. More...
#include <SToGS_TwoShellsDetectorConstruction.hh>
Inherits G4VUserDetectorConstruction.
Public Member Functions | |
void | ComputeParameters (G4String filename="DetectorFactory/Generics/TwoShells.geo") |
from a given file, it computes the parameters of the two shells More... | |
virtual G4VPhysicalVolume * | Construct () |
One of the mandatory class to be implemented in order to have G4 working properly. More... | |
virtual void | ConstructSDandField () |
NEW G4.10 ... but also define for G4.9 except is is called explicitely at the end of Construct. More... | |
TwoShellsDetectorConstruction () | |
constructor More... | |
TwoShellsDetectorConstruction (G4String filename) | |
virtual | ~TwoShellsDetectorConstruction () |
Detector composed of a set of concentric shells with two (possibly one) active shells.
This is the simpliest detector composed of shells. The detector is initialised from an unique ascii file (setup/shells.geo
) which is expected in the setup directory. An example of such a file is available in the package (shells.geo.demo). Here is a snapshot:
As it can be seen, absorbers could be added easily. In case you would like to study only one shell, just set the material of the other one to Air (it will be automatically set to inactive).
Here is picture with 2 actives shells and 2 inactives (Example 3).
Definition at line 93 of file SToGS_TwoShellsDetectorConstruction.hh.
SToGS::TwoShellsDetectorConstruction::TwoShellsDetectorConstruction | ( | ) |
constructor
It reads the file named geometries/shells.geo. If not found, default are:
Definition at line 80 of file SToGS_TwoShellsDetectorConstruction.cc.
SToGS::TwoShellsDetectorConstruction::TwoShellsDetectorConstruction | ( | G4String | filename | ) |
Definition at line 111 of file SToGS_TwoShellsDetectorConstruction.cc.
|
virtual |
Definition at line 142 of file SToGS_TwoShellsDetectorConstruction.cc.
void SToGS::TwoShellsDetectorConstruction::ComputeParameters | ( | G4String | filename = "DetectorFactory/Generics/TwoShells.geo" | ) |
from a given file, it computes the parameters of the two shells
The parameters are read from a file which is by default steup/shells.geo. In this file, the geometry of the two shells is completely defined. Some checkings are done at this level. For instance:
Definition at line 149 of file SToGS_TwoShellsDetectorConstruction.cc.
|
virtual |
One of the mandatory class to be implemented in order to have G4 working properly.
Definition at line 276 of file SToGS_TwoShellsDetectorConstruction.cc.
|
virtual |
NEW G4.10 ... but also define for G4.9 except is is called explicitely at the end of Construct.
Definition at line 371 of file SToGS_TwoShellsDetectorConstruction.cc.