ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
LXeWLSFiber.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file LXeWLSFiber.cc
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
//
29
//
30
//
31
#include "
LXeWLSFiber.hh
"
32
#include "
globals.hh
"
33
#include "
G4LogicalSkinSurface.hh
"
34
#include "
G4LogicalBorderSurface.hh
"
35
#include "
G4SystemOfUnits.hh
"
36
37
G4LogicalVolume
*
LXeWLSFiber::fClad2_log
=
nullptr
;
38
39
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
40
41
LXeWLSFiber::LXeWLSFiber
(
G4RotationMatrix
*pRot,
42
const
G4ThreeVector
&tlate,
43
G4LogicalVolume
*pMotherLogical,
44
G4bool
pMany,
45
G4int
pCopyNo,
46
LXeDetectorConstruction
*
c
)
47
:
G4PVPlacement
(pRot,tlate,
48
new
G4LogicalVolume
(new
G4Box
(
"temp"
,1,1,1),
49
G4Material
::GetMaterial(
"Vacuum"
),
50
"temp"
,0,0,0),
51
"Cladding2"
,pMotherLogical,pMany,pCopyNo),fConstructor(c)
52
{
53
CopyValues
();
54
55
// The Fiber
56
//
57
G4Tubs
* fiber_tube =
58
new
G4Tubs
(
"Fiber"
,
fFiber_rmin
,
fFiber_rmax
,
fFiber_z
,
fFiber_sphi
,
fFiber_ephi
);
59
60
G4LogicalVolume
* fiber_log =
61
new
G4LogicalVolume
(fiber_tube,
G4Material::GetMaterial
(
"PMMA"
),
62
"Fiber"
,0,0,0);
63
64
// Cladding (first layer)
65
//
66
G4Tubs
* clad1_tube =
67
new
G4Tubs
(
"Cladding1"
,
fClad1_rmin
,
fClad1_rmax
,
fClad1_z
,
fClad1_sphi
,
68
fClad1_ephi
);
69
70
G4LogicalVolume
* clad1_log =
71
new
G4LogicalVolume
(clad1_tube,
G4Material::GetMaterial
(
"Pethylene1"
),
72
"Cladding1"
,0,0,0);
73
74
// Cladding (second layer)
75
//
76
G4Tubs
* clad2_tube =
77
new
G4Tubs
(
"Cladding2"
,
fClad2_rmin
,
fClad2_rmax
,
fClad2_z
,
fClad2_sphi
,
78
fClad2_ephi
);
79
80
fClad2_log
=
81
new
G4LogicalVolume
(clad2_tube,
G4Material::GetMaterial
(
"Pethylene2"
),
82
"Cladding2"
,0,0,0);
83
84
new
G4PVPlacement
(0,
G4ThreeVector
(0.,0.,0.),fiber_log,
85
"Fiber"
, clad1_log,
false
,0);
86
new
G4PVPlacement
(0,
G4ThreeVector
(0.,0.,0.),clad1_log,
87
"Cladding1"
,
fClad2_log
,
false
,0);
88
89
SetLogicalVolume
(
fClad2_log
);
90
}
91
92
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
93
94
void
LXeWLSFiber::CopyValues
(){
95
96
fFiber_rmin
= 0.00*
cm
;
97
fFiber_rmax
= 0.10*
cm
;
98
fFiber_z
=
fConstructor
->
GetScintX
()/2;
99
fFiber_sphi
= 0.00*
deg
;
100
fFiber_ephi
= 360.*
deg
;
101
102
fClad1_rmin
= 0.;
// fFiber_rmax;
103
fClad1_rmax
=
fFiber_rmax
+ 0.015*
fFiber_rmax
;
104
105
fClad1_z
=
fFiber_z
;
106
fClad1_sphi
=
fFiber_sphi
;
107
fClad1_ephi
=
fFiber_ephi
;
108
109
fClad2_rmin
= 0.;
//fClad1_rmax;
110
fClad2_rmax
=
fClad1_rmax
+ 0.015*
fFiber_rmax
;
111
112
fClad2_z
=
fFiber_z
;
113
fClad2_sphi
=
fFiber_sphi
;
114
fClad2_ephi
=
fFiber_ephi
;
115
116
}
geant4
tree
geant4-10.6-release
examples
extended
optical
LXe
src
LXeWLSFiber.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:08
using
1.8.2 with
ECCE GitHub integration