Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Reference Detector
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
Container registry
Model registry
Operate
Terraform modules
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
EIC
detectors
Reference Detector
Commits
fc1a1034
Commit
fc1a1034
authored
4 years ago
by
Jihee Kim
Browse files
Options
Downloads
Patches
Plain Diff
Fixed material and more commented
parent
4b5aa240
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2
Central Barrel Solenoid
Pipeline
#7434
failed
4 years ago
Stage: config
Stage: build
Stage: docs
Stage: test
Stage: finalize
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cb_Solenoid.xml
+5
-6
5 additions, 6 deletions
cb_Solenoid.xml
materials.xml
+1
-1
1 addition, 1 deletion
materials.xml
src/cb_Solenoid.cpp
+3
-5
3 additions, 5 deletions
src/cb_Solenoid.cpp
with
9 additions
and
12 deletions
cb_Solenoid.xml
+
5
−
6
View file @
fc1a1034
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
<constant
name=
"tracker_region_rmax"
value=
"6 * m"
/>
<constant
name=
"tracker_region_rmax"
value=
"6 * m"
/>
<constant
name=
"cb_Solenoid_ID"
value=
"1"
/>
<constant
name=
"cb_Solenoid_ID"
value=
"1"
/>
<constant
name=
"cb_Solenoid_rmin"
value=
"0.0 * cm"
/>
<constant
name=
"cb_Solenoid_rmin"
value=
"0.0 * cm"
/>
<!-- Central Barrel Solenoid Inner diameter -->
<constant
name=
"cb_Solenoid_rmax"
value=
"137.0 * cm"
/>
<constant
name=
"cb_Solenoid_rmax"
value=
"137.0 * cm"
/>
<!-- Central Barrel Solenoid Outer diameter -->
<constant
name=
"cb_Solenoid_z"
value=
"400.0 * cm"
/>
<constant
name=
"cb_Solenoid_z"
value=
"400.0 * cm"
/>
<!-- Central Barrel Solenoid Size in Z direction -->
<constant
name=
"cb_Solenoid_shift"
value=
"0.0 * cm"
/>
<constant
name=
"cb_Solenoid_shift"
value=
"0.0 * cm"
/>
</define>
</define>
...
@@ -51,9 +51,8 @@
...
@@ -51,9 +51,8 @@
<comment>
<comment>
Central Barrel Solenoid Magnet
Central Barrel Solenoid Magnet
</comment>
</comment>
<!-- TODO: Add material -->
<detector
id=
"cb_Solenoid_ID"
name=
"cb_Solenoid"
type=
"cb_Solenoid"
insideTrackingVolume=
"false"
vis=
"cb_SolenoidVis"
>
<detector
id=
"cb_Solenoid_ID"
name=
"cb_Solenoid"
type=
"cb_Solenoid"
insideTrackingVolume=
"false"
vis=
"cb_SolenoidVis"
>
<material
name=
"
Steel235"
/
>
<material
name=
"
Vacuum"
/>
<!-- G4_Galactic --
>
<dimensions
rmin=
"cb_Solenoid_rmin"
rmax=
"cb_Solenoid_rmax"
z=
"cb_Solenoid_z"
delta=
"cb_Solenoid_shift"
/>
<dimensions
rmin=
"cb_Solenoid_rmin"
rmax=
"cb_Solenoid_rmax"
z=
"cb_Solenoid_z"
delta=
"cb_Solenoid_shift"
/>
</detector>
</detector>
</detectors>
</detectors>
...
@@ -61,7 +60,7 @@
...
@@ -61,7 +60,7 @@
<plugins>
<plugins>
</plugins>
</plugins>
<!-- TODO: Define field -->
<!-- TODO: Define field
using field map
-->
<fields>
<fields>
<field
type=
"solenoid"
name=
"GlobalSolenoid"
inner_field=
"1.5 * tesla"
outer_field=
"0.5*tesla"
<field
type=
"solenoid"
name=
"GlobalSolenoid"
inner_field=
"1.5 * tesla"
outer_field=
"0.5*tesla"
zmin=
"100.0 * cm"
zmax=
"100.0 * cm"
inner_radius=
"100.0 * cm"
outer_radius=
"100.0 * cm"
/>
zmin=
"100.0 * cm"
zmax=
"100.0 * cm"
inner_radius=
"100.0 * cm"
outer_radius=
"100.0 * cm"
/>
...
...
This diff is collapsed.
Click to expand it.
materials.xml
+
1
−
1
View file @
fc1a1034
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</material>
</material>
<!-- We model vakuum just as very thin air -->
<!-- We model vakuum just as very thin air -->
<material
name=
"Vacuum"
>
<material
name=
"Vacuum"
>
<D
type=
"density"
unit=
"g/cm3"
value=
"
0.0000000001
"
/>
<D
type=
"density"
unit=
"g/cm3"
value=
"
1.e-25
"
/>
<fraction
n=
"0.754"
ref=
"N"
/>
<fraction
n=
"0.754"
ref=
"N"
/>
<fraction
n=
"0.234"
ref=
"O"
/>
<fraction
n=
"0.234"
ref=
"O"
/>
<fraction
n=
"0.012"
ref=
"Ar"
/>
<fraction
n=
"0.012"
ref=
"Ar"
/>
...
...
This diff is collapsed.
Click to expand it.
src/cb_Solenoid.cpp
+
3
−
5
View file @
fc1a1034
...
@@ -12,12 +12,10 @@ static Ref_t createDetector(Detector& desc, xml_h handle, SensitiveDetector sens
...
@@ -12,12 +12,10 @@ static Ref_t createDetector(Detector& desc, xml_h handle, SensitiveDetector sens
int
detID
=
detElem
.
id
();
int
detID
=
detElem
.
id
();
xml
::
Component
dims
=
detElem
.
dimensions
();
xml
::
Component
dims
=
detElem
.
dimensions
();
double
SizeZ
=
dims
.
z
();
// Size in Z direction
double
SizeZ
=
dims
.
z
();
// Size in Z direction
double
ROut
=
dims
.
rmax
();
// Outer diameter
double
ROut
=
dims
.
rmax
();
// Outer diameter
double
RIn
=
dims
.
rmin
();
// Inner diameter
double
RIn
=
dims
.
rmin
();
// Inner diameter
double
ShiftZ
=
dims
.
delta
();
double
ShiftZ
=
dims
.
delta
();
// TODO: Material
//Material mat = desc.material("Steel235");
Material
mat
=
desc
.
material
(
detElem
.
materialStr
());
Material
mat
=
desc
.
material
(
detElem
.
materialStr
());
Tube
cb_Solenoid_GVol_Solid
(
RIn
,
ROut
,
SizeZ
/
2.
,
0.
,
360
*
deg
);
Tube
cb_Solenoid_GVol_Solid
(
RIn
,
ROut
,
SizeZ
/
2.
,
0.
,
360
*
deg
);
...
...
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