Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zdcLG
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Daniel R. MacLean
zdcLG
Commits
990c6c2f
Commit
990c6c2f
authored
3 years ago
by
Chad Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Reduced SD thicknesses to avoid counting bounces off light guide walls adjacent to the SD
parent
72ebb0a5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DetectorConstruction.cc
+4
-4
4 additions, 4 deletions
src/DetectorConstruction.cc
with
4 additions
and
4 deletions
src/DetectorConstruction.cc
+
4
−
4
View file @
990c6c2f
...
@@ -72,7 +72,7 @@ DetectorConstruction::DetectorConstruction()
...
@@ -72,7 +72,7 @@ DetectorConstruction::DetectorConstruction()
m_pmtPos
(
new
G4ThreeVector
(
28.5
*
mm
,
35.0
*
mm
,
-
7.5
*
mm
)
),
m_pmtPos
(
new
G4ThreeVector
(
28.5
*
mm
,
35.0
*
mm
,
-
7.5
*
mm
)
),
m_rotation
(
new
G4RotationMatrix
()
),
m_rotation
(
new
G4RotationMatrix
()
),
m_pmtDia
(
10.5
*
mm
),
m_pmtDia
(
10.5
*
mm
),
m_PMTthickness
(
0.
25
*
mm
),
m_PMTthickness
(
0.
001
*
mm
),
m_ConstructionHasBeenDone
(
false
),
m_ConstructionHasBeenDone
(
false
),
m_UsingCADmodel
(
true
),
m_UsingCADmodel
(
true
),
m_logicWorld
(
0
),
m_logicWorld
(
0
),
...
@@ -269,7 +269,7 @@ void DetectorConstruction::BuildDefaultLG( ){
...
@@ -269,7 +269,7 @@ void DetectorConstruction::BuildDefaultLG( ){
* Make the PMT logical volume and Sensitvie Detector
* Make the PMT logical volume and Sensitvie Detector
*/
*/
void
DetectorConstruction
::
BuildPMT
(){
void
DetectorConstruction
::
BuildPMT
(){
G4SDManager
*
SDman
=
G4SDManager
::
GetSDMpointer
();
G4SDManager
*
SDman
=
G4SDManager
::
GetSDMpointer
();
m_SDnames
.
push_back
(
"MyPMT"
);
m_SDnames
.
push_back
(
"MyPMT"
);
PMTSD
*
PMT
=
new
PMTSD
(
m_SDnames
.
back
(),
false
);
// isIntermediate set to false. This is the final detector
PMTSD
*
PMT
=
new
PMTSD
(
m_SDnames
.
back
(),
false
);
// isIntermediate set to false. This is the final detector
...
@@ -300,7 +300,7 @@ void DetectorConstruction::BuildPMT(){
...
@@ -300,7 +300,7 @@ void DetectorConstruction::BuildPMT(){
m_SDnames
.
push_back
(
"IntSD1"
);
m_SDnames
.
push_back
(
"IntSD1"
);
PMT
=
new
PMTSD
(
m_SDnames
.
back
(),
true
);
// isIntermediate set to true
PMT
=
new
PMTSD
(
m_SDnames
.
back
(),
true
);
// isIntermediate set to true
SDman
->
AddNewDetector
(
PMT
);
SDman
->
AddNewDetector
(
PMT
);
m_solidIntSD
.
push_back
(
new
G4Box
(
"soldIntSD1"
,
20.00
*
mm
,
0.1
*
mm
,
2.00
*
mm
)
);
m_solidIntSD
.
push_back
(
new
G4Box
(
"soldIntSD1"
,
20.00
*
mm
,
0.
00
1
*
mm
,
2.00
*
mm
)
);
m_logicIntSD
.
push_back
(
new
G4LogicalVolume
(
m_solidIntSD
.
back
(),
materials
->
Air
,
"logicIntSD1"
)
);
m_logicIntSD
.
push_back
(
new
G4LogicalVolume
(
m_solidIntSD
.
back
(),
materials
->
Air
,
"logicIntSD1"
)
);
m_logicIntSD
.
back
()
->
SetVisAttributes
(
VisAtt_PMT
);
m_logicIntSD
.
back
()
->
SetVisAttributes
(
VisAtt_PMT
);
m_logicIntSD
.
back
()
->
SetSensitiveDetector
(
PMT
);
m_logicIntSD
.
back
()
->
SetSensitiveDetector
(
PMT
);
...
@@ -311,7 +311,7 @@ void DetectorConstruction::BuildPMT(){
...
@@ -311,7 +311,7 @@ void DetectorConstruction::BuildPMT(){
m_SDnames
.
push_back
(
"IntSD2"
);
m_SDnames
.
push_back
(
"IntSD2"
);
PMT
=
new
PMTSD
(
m_SDnames
.
back
(),
true
);
// isIntermediate set to true
PMT
=
new
PMTSD
(
m_SDnames
.
back
(),
true
);
// isIntermediate set to true
SDman
->
AddNewDetector
(
PMT
);
SDman
->
AddNewDetector
(
PMT
);
m_solidIntSD
.
push_back
(
new
G4Box
(
"soldIntSD2"
,
50.00
*
mm
,
0.1
*
mm
,
1.00
*
mm
)
);
m_solidIntSD
.
push_back
(
new
G4Box
(
"soldIntSD2"
,
50.00
*
mm
,
0.
00
1
*
mm
,
1.00
*
mm
)
);
m_logicIntSD
.
push_back
(
new
G4LogicalVolume
(
m_solidIntSD
.
back
(),
materials
->
Air
,
"logicIntSD2"
)
);
m_logicIntSD
.
push_back
(
new
G4LogicalVolume
(
m_solidIntSD
.
back
(),
materials
->
Air
,
"logicIntSD2"
)
);
m_logicIntSD
.
back
()
->
SetVisAttributes
(
VisAtt_PMT
);
m_logicIntSD
.
back
()
->
SetVisAttributes
(
VisAtt_PMT
);
m_logicIntSD
.
back
()
->
SetSensitiveDetector
(
PMT
);
m_logicIntSD
.
back
()
->
SetSensitiveDetector
(
PMT
);
...
...
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