Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
GarfieldDetectorConstruction.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// $Id: GarfieldDetectorConstruction.hh 99992 2015-12-11 14:47:43Z dpfeiffe $
27//
28/// \file GarfieldDetectorConstruction.hh
29/// \brief Definition of the GarfieldDetectorConstruction class
30
31#ifndef GarfieldDetectorConstruction_h
32#define GarfieldDetectorConstruction_h 1
33
34#include "G4VUserDetectorConstruction.hh"
35#include "G4UserLimits.hh"
36#include "globals.hh"
37
38class G4VPhysicalVolume;
39class G4VLogicalVolume;
40class G4Material;
43
44/// Detector construction class to define materials and geometry.
45/// The drift tube is a cylinder made of Al filled with Ar/CO2.
46/// It has a thin window on the base that is adjacent to the absorber plate.
47/// In the center of the cylinder is the anode wire made from Tungsten.
48///
49/// The primary particles interact in the absorber and produce secondary particles,
50/// which enter the drift tube via the thin window.
51
52
53class GarfieldDetectorConstruction : public G4VUserDetectorConstruction
54{
55 public:
58
59 public:
60 virtual G4VPhysicalVolume* Construct();
61
62 // get methods
63 //
64 const G4VPhysicalVolume* GetAbsorberPV() const;
65 const G4VPhysicalVolume* GetDriftTubePV() const;
66 const G4VPhysicalVolume* GetGasPV() const;
67 const G4VPhysicalVolume* GetThinWindowPV() const;
68 const G4VPhysicalVolume* GetWirePV() const;
69 void SetAbsorberMaterial(G4String materialChoice);
70 G4Material* AbsorberMaterialWithSingleIsotope( G4String name,
71 G4String symbol, G4double density, G4int Z, G4int A);
72 private:
73 // methods
74 //
75 void DefineMaterials();
76 G4VPhysicalVolume* DefineVolumes();
77
78
79 G4VPhysicalVolume* fAbsorberPV; // the absorber physical volume
80 G4VPhysicalVolume* fTubePV; // the cathode of the single wire physical volume
81 G4VPhysicalVolume* fGasPV; // the gas physical volume
82 G4VPhysicalVolume* fWirePV; // the wire physical volume
83
84 G4Material* fAbsorberMaterial;
85 G4LogicalVolume* fAbsorberLV;
86
87 G4bool fCheckOverlaps; // option to activate checking of volumes overlaps
88
89 GarfieldG4FastSimulationModel* fGarfieldG4FastSimulationModel;
90 GarfieldMessenger* fGarfieldMessenger;
91};
92
93// inline functions
94
95inline const G4VPhysicalVolume* GarfieldDetectorConstruction::GetAbsorberPV() const {
96 return fAbsorberPV;
97}
98
99inline const G4VPhysicalVolume* GarfieldDetectorConstruction::GetDriftTubePV() const {
100 return fTubePV;
101}
102
103inline const G4VPhysicalVolume* GarfieldDetectorConstruction::GetGasPV() const {
104 return fGasPV;
105}
106
107
108inline const G4VPhysicalVolume* GarfieldDetectorConstruction::GetWirePV() const {
109 return fWirePV;
110}
111//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
112
113#endif
114
const G4VPhysicalVolume * GetDriftTubePV() const
const G4VPhysicalVolume * GetGasPV() const
void SetAbsorberMaterial(G4String materialChoice)
G4Material * AbsorberMaterialWithSingleIsotope(G4String name, G4String symbol, G4double density, G4int Z, G4int A)
const G4VPhysicalVolume * GetThinWindowPV() const
const G4VPhysicalVolume * GetAbsorberPV() const
const G4VPhysicalVolume * GetWirePV() const
virtual G4VPhysicalVolume * Construct()