SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS::TwoShellsDetectorConstruction Class Reference

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 ()
 

Detailed Description

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:

#
# Ascii file that described a collection of perfect shells for HermeTwoShellsDetectorConstruction
# You must write from the smallest radius to the largest !!
# Two shells are mandatory one named Inner and a second one named Outer.
# In case you want to work with only one active shell the second is composed of AIR and set inative
# (see Example 1)
#
# Full description of one shell per line with the following conventions:
# (lengths are in centimeter and angles in degres)
# (is_active is equal to 1 if it is an active shell 0 otherwise. active means a detector-like shell)
#
# name_of-the-shell material rMin rMax starting_phi delta_phi starting_theta delta_theta is_active
#
# Example 1 - one unique shell (the second one is then composed of air and inactive)
# Inner NaI 10. 15. 0. 360. 0. 180. 1
# Outer AIR 25. 40. 0. 360. 0. 180. 0
#
# Example 2 - two active shells inner of NaI and outer BGO
# Inner NaI 10. 15. 0. 360. 0. 180. 1
# Outer BGO 25. 40. 0. 360. 0. 180. 1
#
# Example 3 - two active shells, the target chamber and a dead layer between the inner and outer
# Target Al 8. 8.5 0. 360. 0. 180. 0
# Inner NaI 10. 15. 0. 360. 0. 180. 1
# Abs1 Pb 16.0 16.05 0. 360. 0. 180. 0
# Outer BGO 25. 40. 0. 360. 0. 180. 1
#
Inner NaI 10. 20. 0. 360. 0. 180. 1
Outer BGO 25. 45. 0. 360. 0. 90. 1
#
#
#

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.

Constructor & Destructor Documentation

SToGS::TwoShellsDetectorConstruction::TwoShellsDetectorConstruction ( )

constructor

It reads the file named geometries/shells.geo. If not found, default are:

# Inner NaI 10. 15. 0. 360. 0. 180. 1
# Outer BGO 25. 40. 0. 360. 0. 180. 1

Definition at line 80 of file SToGS_TwoShellsDetectorConstruction.cc.

SToGS::TwoShellsDetectorConstruction::TwoShellsDetectorConstruction ( G4String  filename)

Definition at line 111 of file SToGS_TwoShellsDetectorConstruction.cc.

SToGS::TwoShellsDetectorConstruction::~TwoShellsDetectorConstruction ( )
virtual

Definition at line 142 of file SToGS_TwoShellsDetectorConstruction.cc.

Member Function Documentation

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:

  • if the two shells overlap. In this case, the inner one is kept are the outer one truncated
  • if there are errors while reading the file. In this case, the properties are not modified

Definition at line 149 of file SToGS_TwoShellsDetectorConstruction.cc.

G4VPhysicalVolume * SToGS::TwoShellsDetectorConstruction::Construct ( )
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.

void SToGS::TwoShellsDetectorConstruction::ConstructSDandField ( )
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.


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