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: AXPETMaterial.cc,v 1.1 2008/09/03 13:34:03 gcosmo Exp $ |
---|
27 | // ------------------------------------------------------------ |
---|
28 | // Geant4 class implementation file |
---|
29 | // |
---|
30 | // 03/09/2008, by T.Nikitina |
---|
31 | // ------------------------------------------------------------ |
---|
32 | |
---|
33 | #include "globals.hh" |
---|
34 | #include "G4Material.hh" |
---|
35 | #include "G4MaterialTable.hh" |
---|
36 | #include "G4Element.hh" |
---|
37 | #include "G4ElementTable.hh" |
---|
38 | |
---|
39 | #include "AXPETMaterial.hh" |
---|
40 | |
---|
41 | AXPETMaterial::AXPETMaterial (): |
---|
42 | aluminum(0),matAir(0), LYSO(0), EJ280(0),Vacuum(0) |
---|
43 | {;} |
---|
44 | |
---|
45 | AXPETMaterial::~AXPETMaterial () |
---|
46 | { |
---|
47 | delete LYSO; |
---|
48 | delete EJ280; |
---|
49 | delete matAir; |
---|
50 | delete Vacuum; |
---|
51 | } |
---|
52 | |
---|
53 | void AXPETMaterial::DefineMaterials() |
---|
54 | { |
---|
55 | G4double a; //atomic mass |
---|
56 | G4double z; //atomic number |
---|
57 | G4double d; //density |
---|
58 | G4int nComponents; //number of elements in the material |
---|
59 | |
---|
60 | a=1.01*g/mole; |
---|
61 | G4Element* elH = new G4Element("Hydrogen", "H", z=1 , a); |
---|
62 | |
---|
63 | a = 14.01*g/mole; |
---|
64 | G4Element* elN = new G4Element("Nitrogen","N",z = 7.,a); |
---|
65 | |
---|
66 | a = 16.00*g/mole; |
---|
67 | G4Element* elO = new G4Element("Oxygen","O",z = 8.,a); |
---|
68 | |
---|
69 | a = 12.011*g/mole; |
---|
70 | G4Element* elC = new G4Element("Carbon","C",z = 6.,a); |
---|
71 | |
---|
72 | a = 28.09*g/mole; |
---|
73 | G4Element* elSi = new G4Element("Silicon", "Si", z = 14., a); |
---|
74 | |
---|
75 | a = 88.91*g/mole; |
---|
76 | G4Element* elY = new G4Element("Yttrium", "Y", z = 39., a); |
---|
77 | |
---|
78 | a = 174.97*g/mole; |
---|
79 | G4Element* elLu = new G4Element("Lutetium", "Lu", z = 71., a); |
---|
80 | |
---|
81 | |
---|
82 | //Aluminum |
---|
83 | aluminum = new G4Material("Aluminium", z=13., a=26.98*g/mole, d=2.700*g/cm3); |
---|
84 | |
---|
85 | |
---|
86 | // AIR |
---|
87 | d = 1.290*mg/cm3; |
---|
88 | nComponents = 2; |
---|
89 | G4Material* matAir = new G4Material("AIR", d, nComponents); |
---|
90 | matAir -> AddElement(elN,0.7); |
---|
91 | matAir -> AddElement(elO,0.3); |
---|
92 | |
---|
93 | // LYSO |
---|
94 | d = 7.1*g/cm3; |
---|
95 | nComponents=4; |
---|
96 | LYSO = new G4Material("LYSO", d, nComponents); |
---|
97 | LYSO->AddElement(elLu,0.72); |
---|
98 | LYSO->AddElement(elY, 0.04); |
---|
99 | LYSO->AddElement(elSi,0.06); |
---|
100 | LYSO->AddElement(elO, 0.18); |
---|
101 | |
---|
102 | // wls similar to VINYLTOLUENE |
---|
103 | d=1.02*g/cm3; |
---|
104 | nComponents = 2; |
---|
105 | EJ280 = new G4Material("WLSEJ280", d, nComponents); |
---|
106 | EJ280->AddElement(elH, 0.085); |
---|
107 | EJ280->AddElement(elC, 0.915); |
---|
108 | |
---|
109 | Vacuum = new G4Material("Galactic", z=1., a=1.01*g/mole, d = universe_mean_density, |
---|
110 | kStateGas, 2.73*kelvin, 3.e-18*pascal); |
---|
111 | |
---|
112 | // Adding scintillating material properties |
---|
113 | |
---|
114 | const G4int nEntries = 11; |
---|
115 | |
---|
116 | |
---|
117 | // G4double PhotonEnergy[nEntries] = {500, 490, 480, 470, 460, 450, 440, 430, 420, 410, 400}; |
---|
118 | G4double PhotonEnergy[nEntries] = {2.478*eV, 2.53*eV, 2.58*eV, 2.636*eV, 2.69*eV, 2.75*eV, 2.816*eV, 2.88*eV, 2.95*eV, 3.022*eV, 3.097*eV}; |
---|
119 | |
---|
120 | // Air properties |
---|
121 | G4double RIAir[nEntries] = {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0}; // Is Isotropic |
---|
122 | G4MaterialPropertiesTable* MPTAir = new G4MaterialPropertiesTable(); |
---|
123 | MPTAir->AddProperty("RINDEX", PhotonEnergy, RIAir, nEntries); |
---|
124 | matAir->SetMaterialPropertiesTable(MPTAir); |
---|
125 | Vacuum->SetMaterialPropertiesTable(MPTAir); |
---|
126 | |
---|
127 | // LYSO properties |
---|
128 | |
---|
129 | G4double RILyso[nEntries] = {1.82,1.82,1.82,1.82,1.82,1.82,1.82,1.82,1.82,1.82,1.82};// Is isotropic |
---|
130 | G4double ABLyso[nEntries] = {100.*cm, 100.*cm, 100.*cm, 100.*cm, 100.*cm, 100.*cm, 100.*cm, 80.* cm, 50. *cm, 30.*cm, 2.*cm}; // To be updated |
---|
131 | G4double SFLyso[nEntries] = {0., 0., 0., 0., 0., 0., 0.,0.1, 0.8, 0.1, 0.}; // To be updated |
---|
132 | |
---|
133 | G4MaterialPropertiesTable* MPTLyso = new G4MaterialPropertiesTable(); |
---|
134 | MPTLyso->AddProperty("RINDEX", PhotonEnergy, RILyso, nEntries); |
---|
135 | MPTLyso->AddProperty("ABSLENGTH", PhotonEnergy, ABLyso, nEntries); |
---|
136 | MPTLyso->AddProperty("FASTCOMPONENT", PhotonEnergy, SFLyso, nEntries); |
---|
137 | MPTLyso->AddProperty("SLOWCOMPONENT", PhotonEnergy, SFLyso, nEntries); |
---|
138 | |
---|
139 | MPTLyso->AddConstProperty("SCINTILLATIONYIELD", 20000./MeV); |
---|
140 | MPTLyso->AddConstProperty("RESOLUTIONSCALE", 1.04);//R = resolutionscale*sqrt(yield) |
---|
141 | MPTLyso->AddConstProperty("FASTTIMECONSTANT", 40.*ns); |
---|
142 | MPTLyso->AddConstProperty("SLOWTIMECONSTANT",10000.*ns); |
---|
143 | MPTLyso->AddConstProperty("YIELDRATIO",1.0); |
---|
144 | |
---|
145 | LYSO->SetMaterialPropertiesTable(MPTLyso); |
---|
146 | |
---|
147 | |
---|
148 | // WLS properties |
---|
149 | |
---|
150 | |
---|
151 | G4double RIWls[nEntries] = {1.58,1.58,1.58,1.58,1.58,1.58,1.58,1.58,1.58,1.58,1.58}; |
---|
152 | G4double ABWls[nEntries] = {200.*mm, 150.*mm, 60.*mm, 30.*mm, 0.5*mm, 0.5*mm, 0.5*mm, 0.5*mm, 0.5*mm, 0.5*mm, 0.5 *mm}; // To be updated |
---|
153 | G4double EMWls[nEntries] = {0.15,0.6,0.15,0.1,0.,0.,0.,0.,0.,0.,0.}; |
---|
154 | |
---|
155 | G4MaterialPropertiesTable* MPTWls = new G4MaterialPropertiesTable(); |
---|
156 | MPTWls->AddProperty("RINDEX", PhotonEnergy, RIWls, nEntries); |
---|
157 | MPTWls->AddProperty("WLSABSLENGTH", PhotonEnergy, ABWls, nEntries); |
---|
158 | MPTWls->AddProperty("WLSCOMPONENT", PhotonEnergy, EMWls, nEntries); |
---|
159 | MPTWls->AddConstProperty("WLSTIMECONSTANT", 8.5 *ns); |
---|
160 | |
---|
161 | EJ280->SetMaterialPropertiesTable(MPTWls); |
---|
162 | |
---|
163 | G4cout << *(G4Material::GetMaterialTable()) << G4endl; |
---|
164 | } |
---|
165 | |
---|
166 | G4Material* AXPETMaterial::GetMat(const G4String& material) |
---|
167 | { |
---|
168 | G4Material* pttomaterial = G4Material::GetMaterial(material); |
---|
169 | return pttomaterial; |
---|
170 | } |
---|