Garfield++ 5.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 "G4UserLimits.hh"
35#include "G4VUserDetectorConstruction.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
50/// particles, which enter the drift tube via the thin window.
51
52class GarfieldDetectorConstruction : public G4VUserDetectorConstruction {
53 public:
56
57 public:
58 virtual G4VPhysicalVolume* Construct() override;
59
60 // get methods
61 const G4VPhysicalVolume* GetAbsorberPV() const { return fAbsorberPV; }
62 const G4VPhysicalVolume* GetDriftTubePV() const { return fTubePV; }
63 const G4VPhysicalVolume* GetGasPV() const { return fGasPV; }
64 const G4VPhysicalVolume* GetWirePV() const { return fWirePV; }
65 void SetAbsorberMaterial(G4String materialChoice);
66 G4Material* AbsorberMaterialWithSingleIsotope(G4String name, G4String symbol,
67 G4double density, G4int Z,
68 G4int A);
69
70 private:
71 void DefineMaterials();
72 G4VPhysicalVolume* DefineVolumes();
73
74 G4VPhysicalVolume* fAbsorberPV = nullptr; // absorber physical volume
75 G4VPhysicalVolume* fTubePV = nullptr; // cathode physical volume
76 G4VPhysicalVolume* fGasPV = nullptr; // gas physical volume
77 G4VPhysicalVolume* fWirePV = nullptr; // wire physical volume
78
79 G4Material* fAbsorberMaterial = nullptr;
80 G4LogicalVolume* fAbsorberLV = nullptr;
81
82 // option to activate checking of volumes overlaps
83 G4bool fCheckOverlaps = true;
84
85 GarfieldG4FastSimulationModel* fGarfieldG4FastSimulationModel = nullptr;
86 GarfieldMessenger* fGarfieldMessenger = nullptr;
87};
88
89//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
90
91#endif
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 * GetAbsorberPV() const
const G4VPhysicalVolume * GetWirePV() const
virtual G4VPhysicalVolume * Construct() override