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 | // ******************************************************************** |
---|
27 | // * * |
---|
28 | // * cosmicray_charging advanced example for Geant4 * |
---|
29 | // * (adapted simulation of test-mass charging in the LISA mission) * |
---|
30 | // * * |
---|
31 | // * Henrique Araujo (h.araujo@imperial.ac.uk) & Peter Wass * |
---|
32 | // * Imperial College London * |
---|
33 | // * * |
---|
34 | // * LISADetectorConstruction class * |
---|
35 | // * * |
---|
36 | // ******************************************************************** |
---|
37 | // |
---|
38 | // HISTORY |
---|
39 | // 22/02/2004: migrated from LISA-V04 |
---|
40 | // 08/12/2005: removed compilation warnings |
---|
41 | // |
---|
42 | // ******************************************************************** |
---|
43 | |
---|
44 | |
---|
45 | // ************************************************************************** |
---|
46 | // Colours and VisAttributes |
---|
47 | //*************************************************************************** |
---|
48 | |
---|
49 | |
---|
50 | // edge colour attributes |
---|
51 | G4VisAttributes* white_vat; |
---|
52 | white_vat = new G4VisAttributes( G4Colour(1.0, 1.0, 1.0)); |
---|
53 | G4VisAttributes* grey_vat; |
---|
54 | grey_vat = new G4VisAttributes( G4Colour(0.5, 0.5, 0.5)); |
---|
55 | G4VisAttributes* black_vat; |
---|
56 | black_vat = new G4VisAttributes( G4Colour(0.0, 0.0, 0.0)); |
---|
57 | G4VisAttributes* red_vat; |
---|
58 | red_vat = new G4VisAttributes( G4Colour(1.0, 0.0, 0.0)); |
---|
59 | G4VisAttributes* orange_vat; |
---|
60 | orange_vat = new G4VisAttributes( G4Colour(1.0, 0.5, 0.0)); |
---|
61 | G4VisAttributes* yellow_vat; |
---|
62 | yellow_vat = new G4VisAttributes( G4Colour(1.0, 1.0, 0.0)); |
---|
63 | G4VisAttributes* gold_vat; |
---|
64 | gold_vat = new G4VisAttributes( G4Colour(.75, .75, 0.0)); |
---|
65 | G4VisAttributes* green_vat; |
---|
66 | green_vat = new G4VisAttributes( G4Colour(0.0, 1.0, 0.0)); |
---|
67 | G4VisAttributes* lgreen_vat; |
---|
68 | lgreen_vat = new G4VisAttributes( G4Colour(0.0, .75, 0.0)); |
---|
69 | G4VisAttributes* cyan_vat; |
---|
70 | cyan_vat = new G4VisAttributes( G4Colour(0.0, 1.0, 1.0)); |
---|
71 | G4VisAttributes* lblue_vat; |
---|
72 | lblue_vat = new G4VisAttributes( G4Colour(0.0, 0.0, .75)); |
---|
73 | G4VisAttributes* blue_vat; |
---|
74 | blue_vat = new G4VisAttributes( G4Colour(0.0, 0.0, 1.0)); |
---|
75 | G4VisAttributes* magenta_vat; |
---|
76 | magenta_vat = new G4VisAttributes(G4Colour(1.0, 0.0, 1.0)); |
---|
77 | |
---|
78 | // solid colour attributes |
---|
79 | G4VisAttributes* sol_white_vat = new G4VisAttributes(G4Colour(1.0,1.0,1.0)); |
---|
80 | sol_white_vat->SetForceSolid(true); |
---|
81 | G4VisAttributes* sol_grey_vat = new G4VisAttributes(G4Colour(0.5,0.5,0.5)); |
---|
82 | sol_grey_vat->SetForceSolid(true); |
---|
83 | G4VisAttributes* sol_dgrey_vat = new G4VisAttributes(G4Colour(.25,.25,.25)); |
---|
84 | sol_dgrey_vat->SetForceSolid(true); |
---|
85 | G4VisAttributes* sol_black_vat = new G4VisAttributes(G4Colour(0.0,0.0,0.0)); |
---|
86 | sol_black_vat->SetForceSolid(true); |
---|
87 | G4VisAttributes* sol_red_vat = new G4VisAttributes(G4Colour(1.0,0.0,0.0)); |
---|
88 | sol_red_vat->SetForceSolid(true); |
---|
89 | G4VisAttributes* sol_green_vat = new G4VisAttributes(G4Colour(0.0,1.0,0.0)); |
---|
90 | sol_green_vat->SetForceSolid(true); |
---|
91 | G4VisAttributes* sol_lgreen_vat = new G4VisAttributes(G4Colour(0.0,.75,0.0)); |
---|
92 | sol_lgreen_vat->SetForceSolid(true); |
---|
93 | G4VisAttributes* sol_lblue_vat = new G4VisAttributes(G4Colour(0.0,0.0,.75)); |
---|
94 | sol_lblue_vat->SetForceSolid(true); |
---|
95 | G4VisAttributes* sol_cyan_vat = new G4VisAttributes(G4Colour(0.0,1.0,1.0)); |
---|
96 | sol_cyan_vat->SetForceSolid(true); |
---|
97 | G4VisAttributes* sol_blue_vat = new G4VisAttributes(G4Colour(0.0,0.0,1.0)); |
---|
98 | sol_blue_vat->SetForceSolid(true); |
---|
99 | G4VisAttributes* sol_gold_vat = new G4VisAttributes(G4Colour(.75,.75,0.0)); |
---|
100 | sol_gold_vat->SetForceSolid(true); |
---|
101 | G4VisAttributes* sol_yellow_vat = new G4VisAttributes(G4Colour(1.0,1.0,0.0)); |
---|
102 | sol_yellow_vat->SetForceSolid(true); |
---|
103 | G4VisAttributes* sol_orange_vat = new G4VisAttributes(G4Colour(1.0,0.5,0.0)); |
---|
104 | sol_orange_vat->SetForceSolid(true); |
---|
105 | |
---|
106 | |
---|
107 | //***************************************************************************** |
---|