VMC Examples Version 6.6
|
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) |
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 () |
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. | |
The detector construction (via TGeo )
Definition at line 34 of file Ex03DetectorConstruction.h.
Ex03DetectorConstruction::Ex03DetectorConstruction | ( | ) |
Default constuctor
Definition at line 45 of file Ex03DetectorConstruction.cxx.
|
virtual |
Ex03DetectorConstruction::Ex03DetectorConstruction | ( | ) |
|
virtual |
void Ex03DetectorConstruction::ConstructMaterials | ( | ) |
Construct materials using TGeo modeller
Definition at line 97 of file Ex03DetectorConstruction.cxx.
void Ex03DetectorConstruction::ConstructGeometry | ( | ) |
Contruct volumes using TGeo modeller
Definition at line 252 of file Ex03DetectorConstruction.cxx.
void Ex03DetectorConstruction::SetCuts | ( | ) |
Set cuts for e-, gamma equivalent to 1mm cut in G4.
Definition at line 374 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 427 of file Ex03DetectorConstruction.cxx.
void Ex03DetectorConstruction::PrintCalorParameters | ( | ) |
Print calorimeter parameters
Definition at line 444 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 456 of file Ex03DetectorConstruction.cxx.
void Ex03DetectorConstruction::SetDefaultMaterial | ( | const TString & | materialName | ) |
Set default material
materialName | The new default material name. |
Definition at line 465 of file Ex03DetectorConstruction.cxx.
void Ex03DetectorConstruction::SetAbsorberMaterial | ( | const TString & | materialName | ) |
Set absorer material
materialName | The new absorber material name. |
Definition at line 474 of file Ex03DetectorConstruction.cxx.
void Ex03DetectorConstruction::SetGapMaterial | ( | const TString & | materialName | ) |
Set gap material
materialName | The new gap material name. |
Definition at line 483 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 492 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 501 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 510 of file Ex03DetectorConstruction.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Compute derived parameters of the calorimeter
Definition at line 81 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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
The number of calorimeter layers.
Definition at line 100 of file Ex03DetectorConstruction.h.
|
private |
The world size x component.
Definition at line 101 of file Ex03DetectorConstruction.h.
|
private |
The world size y,z component.
Definition at line 102 of file Ex03DetectorConstruction.h.
|
private |
The calorimeter size y,z component.
Definition at line 103 of file Ex03DetectorConstruction.h.
|
private |
The calorimeter thickness.
Definition at line 104 of file Ex03DetectorConstruction.h.
|
private |
The calorimeter layer thickness.
Definition at line 105 of file Ex03DetectorConstruction.h.
|
private |
The absorber thickness.
Definition at line 106 of file Ex03DetectorConstruction.h.
|
private |
The gap thickness.
Definition at line 107 of file Ex03DetectorConstruction.h.
|
private |
The default material name.
Definition at line 109 of file Ex03DetectorConstruction.h.
|
private |
The absorber material name.
Definition at line 110 of file Ex03DetectorConstruction.h.
|
private |
The gap material name.
Definition at line 111 of file Ex03DetectorConstruction.h.