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
64e1412c
Commit
64e1412c
authored
12 years ago
by
matta
Browse files
Options
Downloads
Patches
Plain Diff
* More progress in sharc
parent
870368f5
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
+5
-3
5 additions, 3 deletions
NPSimulation/include/Sharc.hh
NPSimulation/src/Sharc.cc
+39
-43
39 additions, 43 deletions
NPSimulation/src/Sharc.cc
with
44 additions
and
46 deletions
NPSimulation/include/Sharc.hh
+
5
−
3
View file @
64e1412c
...
...
@@ -83,9 +83,11 @@ namespace SHARC
const
G4double
QQQ_PCB_Thickness
=
2
*
mm
;
// QQQ Wafer
const
G4double
QQQ_Wafer_Outer_Radius
=
0
*
mm
;
const
G4double
QQQ_Wafer_Inner_Radius
=
0
*
mm
;
const
G4double
QQQ_Wafer_Thickness
=
0
*
mm
;
const
G4double
QQQ_Wafer_Outer_Radius
=
42.63
*
mm
;
const
G4double
QQQ_Wafer_Inner_Radius
=
7.8
*
mm
;
const
G4double
QQQ_Wafer_Thickness
=
100
*
um
;
const
G4double
QQQ_Wafer_Starting_Phi
=
8
*
deg
;
const
G4double
QQQ_Wafer_Stopping_Phi
=
162
*
deg
;
const
G4int
QQQ_Wafer_Front_NumberOfStrip
=
16
;
const
G4int
QQQ_Wafer_Back_NumberOfStrip
=
16
;
...
...
This diff is collapsed.
Click to expand it.
NPSimulation/src/Sharc.cc
+
39
−
43
View file @
64e1412c
...
...
@@ -24,9 +24,8 @@
#include
<cmath>
#include
<limits>
//G4 Geometry object
#include
"G4Trd.hh"
#include
"G4Box.hh"
#include
"G4T
rap
.hh"
#include
"G4T
ubs
.hh"
//G4 sensitive
#include
"G4SDManager.hh"
...
...
@@ -432,66 +431,63 @@ void Sharc::ConstructQQQDetector(G4LogicalVolume* world)
// create the Box
// Make the a single detector geometry
G4Box
*
BoxDetector
=
new
G4Box
(
"BoxDetector"
,
BOX_PCB_Length
/
2.
,
BOX_PCB_Width
/
2.
,
BOX_PCB_Thickness
/
2.
);
G4Box
*
PCBFull
=
new
G4Box
(
"PCBFull"
,
BOX_PCB_Length
/
2.
,
BOX_PCB_Width
/
2.
,
BOX_PCB_Thickness
/
2.
);
G4Box
*
WaferShape
=
new
G4Box
(
"WaferShape"
,
BOX_Wafer_Length
/
2.
,
BOX_Wafer_Width
/
2.
,
BOX_PCB_Thickness
/
2.
+
0.1
*
mm
);
G4Box
*
Wafer
=
new
G4Box
(
"Wafer"
,
BOX_Wafer_Length
/
2.
,
BOX_Wafer_Width
/
2.
,
BOX_Wafer_Thickness
/
2.
);
G4Box
*
SlotShape
=
new
G4Box
(
"SlotShape"
,
BOX_PCB_Slot_Width
/
2.
,
BOX_PCB_Width
/
2.
+
0.1
*
mm
,
BOX_PCB_Slot_Deepness
);
G4ThreeVector
Box_Wafer_Offset
=
G4ThreeVector
(
BOX_Wafer_Length_Offset
,
BOX_Wafer_Width_Offset
,
0
);
G4SubtractionSolid
*
PCB1
=
new
G4SubtractionSolid
(
"PCB1"
,
PCBFull
,
WaferShape
,
new
G4RotationMatrix
,
Box_Wafer_Offset
);
G4SubtractionSolid
*
PCB
=
new
G4SubtractionSolid
(
"PCB"
,
PCB1
,
SlotShape
,
new
G4RotationMatrix
,
G4ThreeVector
(
-
BOX_PCB_Slot_Position
,
0
,
BOX_PCB_Slot_Deepness
));
G4Tubs
*
QQQDetector
=
new
G4Tubs
(
"QQQDetector"
,
QQQ_PCB_Inner_Radius
,
QQQ_PCB_Outer_Radius
,
QQQ_PCB_Thickness
/
2.
,
0.
,
M_PI
/
2.
);
G4Tubs
*
PCBFull
=
new
G4Tubs
(
"PCBFull"
,
QQQ_PCB_Inner_Radius
,
QQQ_PCB_Outer_Radius
,
QQQ_PCB_Thickness
/
2.
,
0.
,
M_PI
/
2.
);
G4Tubs
*
WaferShape
=
new
G4Tubs
(
"WaferShape"
,
QQQ_Wafer_Inner_Radius
,
QQQ_Wafer_Outer_Radius
,
QQQ_PCB_Thickness
/
2.
+
0.1
*
mm
,
QQQ_Wafer_Starting_Phi
,
QQQ_Wafer_Stopping_Phi
/
2.
);
G4Tubs
*
Wafer
=
new
G4Tubs
(
"Wafer"
,
QQQ_Wafer_Inner_Radius
,
QQQ_Wafer_Outer_Radius
,
QQQ_Wafer_Thickness
/
2.
,
QQQ_Wafer_Starting_Phi
,
QQQ_Wafer_Stopping_Phi
/
2.
);
G4SubtractionSolid
*
PCB
=
new
G4SubtractionSolid
(
"PCB"
,
PCBFull
,
WaferShape
,
new
G4RotationMatrix
,
G4ThreeVector
(
0
,
0
,
0
));
// Master Volume
G4LogicalVolume
*
logic
Box
Detector
=
new
G4LogicalVolume
(
Box
Detector
,
m_MaterialVacuum
,
"logic
Box
Detector"
,
0
,
0
,
0
);
logic
Box
Detector
->
SetVisAttributes
(
G4VisAttributes
::
Invisible
);
G4LogicalVolume
*
logic
QQQ
Detector
=
new
G4LogicalVolume
(
QQQ
Detector
,
m_MaterialVacuum
,
"logic
QQQ
Detector"
,
0
,
0
,
0
);
logic
QQQ
Detector
->
SetVisAttributes
(
G4VisAttributes
::
Invisible
);
// Sub Volume PCB
G4LogicalVolume
*
logicPCB
=
new
G4LogicalVolume
(
PCB
,
m_MaterialPCB
,
"logicPCB"
,
0
,
0
,
0
);
logicPCB
->
SetVisAttributes
(
PCBVisAtt
);
// Sub Volume Wafer
/*
// Sub Volume Wafer
G4LogicalVolume* logicWafer =
new G4LogicalVolume(Wafer,m_MaterialSilicon,"logicWafer", 0, 0, 0);
logicWafer
->
SetVisAttributes
(
SiliconVisAtt
);
logicWafer->SetVisAttributes(SiliconVisAtt);
*/
// Place the sub volume in the master volume
new
G4PVPlacement
(
new
G4RotationMatrix
(
0
,
0
,
0
),
G4ThreeVector
(
0
,
0
,
0
),
logicPCB
,
"
Box
_PCB"
,
logic
Box
Detector
,
false
,
0
);
logicPCB
,
"
QQQ
_PCB"
,
logic
QQQ
Detector
,
false
,
0
);
new
G4PVPlacement
(
new
G4RotationMatrix
(
0
,
0
,
0
),
/*
new G4PVPlacement(new G4RotationMatrix(0,0,0),
Box_Wafer_Offset,
logicWafer
,
"Box_Wafer"
,
logicBoxDetector
,
false
,
0
);
logicWafer,"Box_Wafer",logicBoxDetector,false,0);
*/
// Place the master volume in the world
new
G4PVPlacement
(
new
G4RotationMatrix
(
0
,
0
,
0
),
G4ThreeVector
(
0
,
0
,
100
),
logic
Box
Detector
,
"
Box_Wafer
"
,
world
,
false
,
0
);
logic
QQQ
Detector
,
"
QQQ
"
,
world
,
false
,
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