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
LXeWLSSlab.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file LXeWLSSlab.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 "
LXeWLSSlab.hh
"
32
#include "
LXeWLSFiber.hh
"
33
34
#include "
globals.hh
"
35
#include "
G4LogicalSkinSurface.hh
"
36
#include "
G4LogicalBorderSurface.hh
"
37
#include "
G4SystemOfUnits.hh
"
38
39
G4LogicalVolume
*
LXeWLSSlab::fScintSlab_log
=
nullptr
;
40
41
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
42
43
LXeWLSSlab::LXeWLSSlab
(
G4RotationMatrix
*pRot,
44
const
G4ThreeVector
&tlate,
45
G4LogicalVolume
*pMotherLogical,
46
G4bool
pMany,
47
G4int
pCopyNo,
48
LXeDetectorConstruction
*
c
)
49
:
G4PVPlacement
(pRot,tlate,
50
new
G4LogicalVolume
(new
G4Box
(
"temp"
,1,1,1),
51
G4Material
::GetMaterial(
"Vacuum"
),
52
"temp"
,0,0,0),
53
"Slab"
,pMotherLogical,pMany,pCopyNo),fConstructor(c)
54
{
55
CopyValues
();
56
57
G4double
slab_x =
fScint_x
/2.;
58
G4double
slab_y =
fScint_y
/2.;
59
60
G4Box
* ScintSlab_box =
new
G4Box
(
"Slab"
,slab_x,slab_y,
fSlab_z
);
61
62
fScintSlab_log
63
=
new
G4LogicalVolume
(ScintSlab_box,
64
G4Material::GetMaterial
(
"Polystyrene"
),
65
"Slab"
,0,0,0);
66
67
G4double
spacing = 2*slab_y/
fNfibers
;
68
69
G4RotationMatrix
* rm =
new
G4RotationMatrix
();
70
rm->
rotateY
(90*
deg
);
71
72
//Place fibers
73
for
(
G4int
i=0;i<
fNfibers
;i++){
74
G4double
Y
=-(spacing)*(fNfibers-1)*0.5 + i*spacing;
75
new
LXeWLSFiber
(rm,
G4ThreeVector
(0.,Y,0.),
fScintSlab_log
,
false
,0,
76
fConstructor
);
77
}
78
79
SetLogicalVolume
(
fScintSlab_log
);
80
}
81
82
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
83
84
void
LXeWLSSlab::CopyValues
(){
85
86
fScint_x
=
fConstructor
->
GetScintX
();
87
fScint_y
=
fConstructor
->
GetScintY
();
88
fScint_z
=
fConstructor
->
GetScintZ
();
89
fNfibers
=
fConstructor
->
GetNFibers
();
90
fSlab_z
=
fConstructor
->
GetSlabZ
();
91
}
geant4
tree
geant4-10.6-release
examples
extended
optical
LXe
src
LXeWLSSlab.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:08
using
1.8.2 with
ECCE GitHub integration