|
VMC Examples Version 6.8
|
The detector construction (via TGeo ). More...
#include <Ex03DetectorConstruction.h>

Classes | |
| struct | MaterialCuts |
Public Member Functions | |
| Ex03DetectorConstruction () | |
| virtual | ~Ex03DetectorConstruction () |
| void | ConstructMaterials () |
| void | ConstructGeometry () |
| void | SetCuts () |
| void | SetControls () |
| void | PrintCalorParameters () |
| void | SetNbOfLayers (Int_t value) |
| void | SetDefaultMaterial (const TString &materialName) |
| void | SetAbsorberMaterial (const TString &materialName) |
| void | SetGapMaterial (const TString &materialName) |
| void | SetCalorSizeYZ (Double_t value) |
| void | SetAbsorberThickness (Double_t value) |
| void | SetGapThickness (Double_t value) |
| void | SetUseAssemblies (Bool_t value) |
| void | SetUseReflection (Bool_t value) |
| Split sensitive slabs into normal and reflected half-thickness placements. | |
| void | SetRequireReflectedHits (Bool_t value) |
| Require reflected hits in every event of the optional regression test. | |
| Bool_t | GetUseReflection () const |
| Bool_t | GetRequireReflectedHits () const |
| Int_t | GetNbOfLayers () const |
| Double_t | GetWorldSizeX () const |
| Double_t | GetWorldSizeYZ () const |
| Double_t | GetCalorSizeYZ () const |
| Double_t | GetCalorThickness () const |
| Double_t | GetAbsorberThickness () const |
| Double_t | GetGapThickness () const |
| Bool_t | GetUseAssemblies () const |
| Ex03DetectorConstruction () | |
| virtual | ~Ex03DetectorConstruction () |
| void | ConstructMaterials () |
| void | ConstructGeometry () |
| void | SetCuts () |
| void | SetControls () |
| void | PrintCalorParameters () |
| void | SetNbOfLayers (Int_t value) |
| void | SetDefaultMaterial (const TString &materialName) |
| void | SetAbsorberMaterial (const TString &materialName) |
| void | SetGapMaterial (const TString &materialName) |
| void | SetCalorSizeYZ (Double_t value) |
| void | SetAbsorberThickness (Double_t value) |
| void | SetGapThickness (Double_t value) |
| void | SetUseReflection (Bool_t value) |
| Split sensitive slabs into normal and reflected half-thickness placements. | |
| void | SetRequireReflectedHits (Bool_t value) |
| Require reflected hits in every event of the optional regression test. | |
| Bool_t | GetUseReflection () const |
| Bool_t | GetRequireReflectedHits () const |
| Int_t | GetNbOfLayers () const |
| Double_t | GetWorldSizeX () const |
| Double_t | GetWorldSizeYZ () const |
| Double_t | GetCalorSizeYZ () const |
| Double_t | GetCalorThickness () const |
| Double_t | GetAbsorberThickness () const |
| Double_t | GetGapThickness () const |
| Ex03DetectorConstruction () | |
| virtual | ~Ex03DetectorConstruction () |
| void | ConstructMaterials () |
| void | ConstructGeometry () |
| void | SetCuts () |
| void | SetControls () |
| void | PrintCalorParameters () |
| void | SetNbOfLayers (Int_t value) |
| void | SetDefaultMaterial (const TString &materialName) |
| void | SetAbsorberMaterial (const TString &materialName) |
| void | SetGapMaterial (const TString &materialName) |
| void | SetCalorSizeYZ (Double_t value) |
| void | SetAbsorberThickness (Double_t value) |
| void | SetGapThickness (Double_t value) |
| Int_t | GetNbOfLayers () const |
| Double_t | GetWorldSizeX () const |
| Double_t | GetWorldSizeYZ () const |
| Double_t | GetCalorSizeYZ () const |
| Double_t | GetCalorThickness () const |
| Double_t | GetAbsorberThickness () const |
| Double_t | GetGapThickness () const |
Private Member Functions | |
| void | ComputeCalorParameters () |
| void | ComputeCalorParameters () |
| void | ComputeCalorParameters () |
Private Attributes | |
| Int_t | fNbOfLayers |
| The number of calorimeter layers. | |
| Double_t | fWorldSizeX |
| The world size x component. | |
| Double_t | fWorldSizeYZ |
| The world size y,z component. | |
| Double_t | fCalorSizeYZ |
| The calorimeter size y,z component. | |
| Double_t | fCalorThickness |
| The calorimeter thickness. | |
| Double_t | fLayerThickness |
| The calorimeter layer thickness. | |
| Double_t | fAbsorberThickness |
| The absorber thickness. | |
| Double_t | fGapThickness |
| The gap thickness. | |
| TString | fDefaultMaterial |
| The default material name. | |
| TString | fAbsorberMaterial |
| The absorber material name. | |
| TString | fGapMaterial |
| The gap material name. | |
| Bool_t | fUseAssemblies |
| Option to place the calorimeter in assemblies. | |
| Bool_t | fUseReflection |
| Enable reflected sensitive placements. | |
| Bool_t | fRequireReflectedHits |
| Enable the per-event regression check. | |
The detector construction (via TGeo ).
Definition at line 34 of file Ex03DetectorConstruction.h.
| Ex03DetectorConstruction::Ex03DetectorConstruction | ( | ) |
Default constuctor
Definition at line 47 of file Ex03DetectorConstruction.cxx.
|
virtual |
| Ex03DetectorConstruction::Ex03DetectorConstruction | ( | ) |
|
virtual |
| Ex03DetectorConstruction::Ex03DetectorConstruction | ( | ) |
|
virtual |
| void Ex03DetectorConstruction::ConstructMaterials | ( | ) |
Construct materials using TGeo modeller
Definition at line 102 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::ConstructGeometry | ( | ) |
Contruct volumes using TGeo modeller
Definition at line 257 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::SetCuts | ( | ) |
Set cuts for e-, gamma equivalent to 1mm cut in G4.
Definition at line 418 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::SetControls | ( | ) |
This function demonstrate how to inactivate physics processes via VMC controls. Here gamma processes are inactivated in Lead medium. Note that while in Geant3 this mechanism is used to speed-up simulation, this may cause slow down in Geant4 simulation where implementation of this mechanism is quite tricky.
Definition at line 471 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::PrintCalorParameters | ( | ) |
Print calorimeter parameters
Definition at line 488 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::SetNbOfLayers | ( | Int_t | value | ) |
Set the number of layers.
| value | The new number of calorimeter layers |
Definition at line 500 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::SetDefaultMaterial | ( | const TString & | materialName | ) |
Set default material
| materialName | The new default material name. |
Definition at line 509 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::SetAbsorberMaterial | ( | const TString & | materialName | ) |
Set absorer material
| materialName | The new absorber material name. |
Definition at line 518 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::SetGapMaterial | ( | const TString & | materialName | ) |
Set gap material
| materialName | The new gap material name. |
Definition at line 527 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::SetCalorSizeYZ | ( | Double_t | value | ) |
Change the transverse size and recompute the calorimeter parameters
| value | The new calorimeter tranverse size |
Definition at line 536 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::SetAbsorberThickness | ( | Double_t | value | ) |
Change the absorber thickness and recompute the calorimeter parameters
| value | The new absorber thickness |
Definition at line 545 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::SetGapThickness | ( | Double_t | value | ) |
Change the gap thickness and recompute the calorimeter parameters
| value | The new gap thickness |
Definition at line 554 of file Ex03DetectorConstruction.cxx.
|
inline |
Enable or disable the alternative geometry with assemblies
| value | If true, place the calorimeter in nested assemblies |
Definition at line 137 of file Ex03DetectorConstruction.h.
|
inline |
Split sensitive slabs into normal and reflected half-thickness placements.
Definition at line 59 of file Ex03DetectorConstruction.h.
|
inline |
Require reflected hits in every event of the optional regression test.
Definition at line 61 of file Ex03DetectorConstruction.h.
|
inline |
Definition at line 67 of file Ex03DetectorConstruction.h.
|
inline |
Definition at line 69 of file Ex03DetectorConstruction.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 93 of file Ex03DetectorConstruction.h.
|
private |
Compute derived parameters of the calorimeter
Definition at line 86 of file Ex03DetectorConstruction.cxx.
| void Ex03DetectorConstruction::ConstructMaterials | ( | ) |
| void Ex03DetectorConstruction::ConstructGeometry | ( | ) |
| void Ex03DetectorConstruction::SetCuts | ( | ) |
| void Ex03DetectorConstruction::SetControls | ( | ) |
| void Ex03DetectorConstruction::PrintCalorParameters | ( | ) |
| void Ex03DetectorConstruction::SetNbOfLayers | ( | Int_t | value | ) |
| void Ex03DetectorConstruction::SetDefaultMaterial | ( | const TString & | materialName | ) |
| void Ex03DetectorConstruction::SetAbsorberMaterial | ( | const TString & | materialName | ) |
| void Ex03DetectorConstruction::SetGapMaterial | ( | const TString & | materialName | ) |
| void Ex03DetectorConstruction::SetCalorSizeYZ | ( | Double_t | value | ) |
| void Ex03DetectorConstruction::SetAbsorberThickness | ( | Double_t | value | ) |
| void Ex03DetectorConstruction::SetGapThickness | ( | Double_t | value | ) |
|
inline |
Split sensitive slabs into normal and reflected half-thickness placements.
Definition at line 58 of file Ex03DetectorConstruction.h.
|
inline |
Require reflected hits in every event of the optional regression test.
Definition at line 60 of file Ex03DetectorConstruction.h.
|
inline |
Definition at line 66 of file Ex03DetectorConstruction.h.
|
inline |
Definition at line 68 of file Ex03DetectorConstruction.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
| void Ex03DetectorConstruction::ConstructMaterials | ( | ) |
| void Ex03DetectorConstruction::ConstructGeometry | ( | ) |
| void Ex03DetectorConstruction::SetCuts | ( | ) |
| void Ex03DetectorConstruction::SetControls | ( | ) |
| void Ex03DetectorConstruction::PrintCalorParameters | ( | ) |
| void Ex03DetectorConstruction::SetNbOfLayers | ( | Int_t | value | ) |
| void Ex03DetectorConstruction::SetDefaultMaterial | ( | const TString & | materialName | ) |
| void Ex03DetectorConstruction::SetAbsorberMaterial | ( | const TString & | materialName | ) |
| void Ex03DetectorConstruction::SetGapMaterial | ( | const TString & | materialName | ) |
| void Ex03DetectorConstruction::SetCalorSizeYZ | ( | Double_t | value | ) |
| void Ex03DetectorConstruction::SetAbsorberThickness | ( | Double_t | value | ) |
| void Ex03DetectorConstruction::SetGapThickness | ( | Double_t | value | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
The number of calorimeter layers.
Definition at line 114 of file Ex03DetectorConstruction.h.
|
private |
The world size x component.
Definition at line 115 of file Ex03DetectorConstruction.h.
|
private |
The world size y,z component.
Definition at line 116 of file Ex03DetectorConstruction.h.
|
private |
The calorimeter size y,z component.
Definition at line 117 of file Ex03DetectorConstruction.h.
|
private |
The calorimeter thickness.
Definition at line 118 of file Ex03DetectorConstruction.h.
|
private |
The calorimeter layer thickness.
Definition at line 119 of file Ex03DetectorConstruction.h.
|
private |
The absorber thickness.
Definition at line 120 of file Ex03DetectorConstruction.h.
|
private |
The gap thickness.
Definition at line 121 of file Ex03DetectorConstruction.h.
|
private |
The default material name.
Definition at line 123 of file Ex03DetectorConstruction.h.
|
private |
The absorber material name.
Definition at line 124 of file Ex03DetectorConstruction.h.
|
private |
The gap material name.
Definition at line 125 of file Ex03DetectorConstruction.h.
|
private |
Option to place the calorimeter in assemblies.
Definition at line 127 of file Ex03DetectorConstruction.h.
|
private |
Enable reflected sensitive placements.
Definition at line 129 of file Ex03DetectorConstruction.h.
|
private |
Enable the per-event regression check.
Definition at line 130 of file Ex03DetectorConstruction.h.