Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
np
nptool
Commits
76b6bd83
Commit
76b6bd83
authored
12 years ago
by
matta
Browse files
Options
Downloads
Patches
Plain Diff
* Fixing geometry for Sharc (no PAD case)
parent
3055f6bc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NPSimulation/include/Sharc.hh
+10
-10
10 additions, 10 deletions
NPSimulation/include/Sharc.hh
NPSimulation/src/Sharc.cc
+3
-3
3 additions, 3 deletions
NPSimulation/src/Sharc.cc
with
13 additions
and
13 deletions
NPSimulation/include/Sharc.hh
+
10
−
10
View file @
76b6bd83
...
@@ -71,15 +71,17 @@ namespace SHARC
...
@@ -71,15 +71,17 @@ namespace SHARC
const
G4int
BOX_Wafer_Back_NumberOfStrip
=
16
;
const
G4int
BOX_Wafer_Back_NumberOfStrip
=
16
;
// Compute
// Compute
const
G4double
BOX_
Exposed_Length1
=
BOX_Wafer_Length
+
BOX_PCB_Slot1_Border
+
0.5
*
BOX_PCB_Slot1_Width
;
const
G4double
BOX_
LeftOver
=
BOX_PCB_Length
-
BOX_PCB_Border_ShortSide
-
BOX_Wafer_Length
-
BOX_PCB_Slot1_Border
-
BOX_PCB_Slot1_Width
;
const
G4double
BOX_
CenterOffset1
=
0.5
*
(
BOX_PCB_Length
-
BOX_Exposed
_Length
1
-
BOX_PCB_
Border_ShortSide
)
;
const
G4double
BOX_
Exposed_Length1
=
BOX_Wafer
_Length
+
BOX_PCB_
Slot1_Border
;
const
G4double
BOX_Wafer_Width_Offset
=
const
G4double
BOX_CenterOffset1
=
-
0.5
*
BOX_PCB_Length
+
BOX_PCB_Border_ShortSide
+
0.5
*
BOX_Exposed_Length1
;
BOX_PCB_Width
*
0.5
-
BOX_PCB_Border_LongSide
-
BOX_Wafer_Width
*
0.5
;
const
G4double
BOX_DetectorSpacing
=
0.5
*
BOX_Exposed_Length1
+
0.5
*
BOX_PCB_Slot1_Width
;
const
G4double
BOX_Wafer_Length_Offset
=
BOX_CenterOffset1
;
const
G4double
BOX_PCB_Slot1_Position
=
(
BOX_PCB_Slot1_Border
+
0.5
*
BOX_PCB_Slot1_Width
+
0.5
*
BOX_Wafer_Length
-
BOX_CenterOffset1
);
const
G4double
BOX_Wafer_Width_Offset
=
-
0.5
*
BOX_PCB_Width
+
BOX_PCB_Border_LongSide
+
0.5
*
BOX_Wafer_Width
;
const
G4double
BOX_Wafer_Length_Offset
=
-
0.5
*
BOX_PCB_Length
+
BOX_PCB_Border_ShortSide
+
0.5
*
BOX_Wafer_Length
;
const
G4double
BOX_PCB_Slot1_Position
=
0.5
*
BOX_PCB_Length
-
BOX_LeftOver
-
0.5
*
BOX_PCB_Slot1_Width
;
// PAD //
// PAD //
// PAD PCB
// PAD PCB
const
G4double
PAD_PCB_Width
=
61.10
*
mm
;
const
G4double
PAD_PCB_Width
=
61.10
*
mm
;
...
@@ -94,10 +96,8 @@ namespace SHARC
...
@@ -94,10 +96,8 @@ namespace SHARC
const
G4double
PAD_Wafer_DeadLayer_Thickness
=
0.1
*
um
;
const
G4double
PAD_Wafer_DeadLayer_Thickness
=
0.1
*
um
;
// Compute
// Compute
const
G4double
PAD_Wafer_Width_Offset
=
const
G4double
PAD_Wafer_Width_Offset
=
PAD_PCB_Width
/
2.
-
PAD_PCB_Border_LongSide
-
PAD_Wafer_Width
/
2.
;
PAD_PCB_Width
/
2.
-
PAD_PCB_Border_LongSide
-
PAD_Wafer_Width
/
2.
;
const
G4double
PAD_Wafer_Length_Offset
=
PAD_PCB_Length
/
2.
-
PAD_PCB_Border_ShortSide
-
PAD_Wafer_Length
/
2.
;
const
G4double
PAD_Wafer_Length_Offset
=
PAD_PCB_Length
/
2.
-
PAD_PCB_Border_ShortSide
-
PAD_Wafer_Length
/
2.
;
// Double stage box case (DSSD+PAD)
// Double stage box case (DSSD+PAD)
const
G4double
BOX_PCB_Slot2_Width
=
BOX_PCB_Thickness
+
PAD_PCB_Thickness
;
const
G4double
BOX_PCB_Slot2_Width
=
BOX_PCB_Thickness
+
PAD_PCB_Thickness
;
const
G4double
BOX_PCB_Slot2_Border
=
2.7
*
mm
;
const
G4double
BOX_PCB_Slot2_Border
=
2.7
*
mm
;
...
...
This diff is collapsed.
Click to expand it.
NPSimulation/src/Sharc.cc
+
3
−
3
View file @
76b6bd83
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* Last update : *
* Last update : *
*---------------------------------------------------------------------------*
*---------------------------------------------------------------------------*
* Decription: *
* Decription: *
* This class describe the S
H
arc Silicon array *
* This class describe the S
h
arc Silicon array *
* *
* *
*---------------------------------------------------------------------------*
*---------------------------------------------------------------------------*
* Comment: *
* Comment: *
...
@@ -378,7 +378,7 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
...
@@ -378,7 +378,7 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
G4ThreeVector
Box_Wafer_Offset
=
G4ThreeVector
Box_Wafer_Offset
=
G4ThreeVector
(
BOX_Wafer_Length_Offset
,
BOX_Wafer_Width_Offset
,
0
);
G4ThreeVector
(
BOX_Wafer_Length_Offset
,
BOX_Wafer_Width_Offset
,
0
);
G4SubtractionSolid
*
PCB1
=
new
G4SubtractionSolid
(
"PCB"
,
PCBFull
,
SlotShape
,
new
G4RotationMatrix
,
G4ThreeVector
(
-
BOX_PCB_Slot_Position
,
0
,
0.5
*
BOX_PCB_Thickness
));
G4SubtractionSolid
*
PCB1
=
new
G4SubtractionSolid
(
"PCB"
,
PCBFull
,
SlotShape
,
new
G4RotationMatrix
,
G4ThreeVector
(
BOX_PCB_Slot_Position
,
0
,
0.5
*
BOX_PCB_Thickness
));
G4SubtractionSolid
*
PCB
=
new
G4SubtractionSolid
(
"PCB"
,
PCB1
,
WaferShape
,
new
G4RotationMatrix
,
Box_Wafer_Offset
);
G4SubtractionSolid
*
PCB
=
new
G4SubtractionSolid
(
"PCB"
,
PCB1
,
WaferShape
,
new
G4RotationMatrix
,
Box_Wafer_Offset
);
...
@@ -469,7 +469,7 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
...
@@ -469,7 +469,7 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
// Distance of the PCB to the target
// Distance of the PCB to the target
G4ThreeVector
DetectorSpacing
=
G4ThreeVector
DetectorSpacing
=
-
G4ThreeVector
(
0
,
0
,
BOX_
Exposed_Length1
*
0.5
);
-
G4ThreeVector
(
0
,
0
,
BOX_
DetectorSpacing
);
// If a PAD is present, DSSD is not in the center of the Slot:
// If a PAD is present, DSSD is not in the center of the Slot:
G4ThreeVector
PAD_OFFSET
=-
G4ThreeVector
(
0.5
*
PAD_PCB_Thickness
,
0
,
0
);
G4ThreeVector
PAD_OFFSET
=-
G4ThreeVector
(
0.5
*
PAD_PCB_Thickness
,
0
,
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment