Skip to content

Commit

Permalink
Update ATLAS to volume injection
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkamp1 committed Feb 15, 2024
1 parent bdf4755 commit e705381
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resources/Examples/Example1/DIS_ATLAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@
primary_physical_distributions["direction"] = direction_distribution

# position distribution
muon_range_func = LI.distributions.LeptonDepthFunction()
position_distribution = LI.distributions.ColumnDepthPositionDistribution(
600, 600.0, muon_range_func, set(controller.GetDetectorModelTargets()[0])
)
tilecal_location = LI.math.Vector3D([0,0,6371234])
tilecal_rotaiton = LI.math.Quaternion(LI.math.Vector3D([0,1.57,0]))
tilecal_placement = LI.geometry.Placement(tilecal_location,
tilecal_rotaiton)
tilecal = LI.geometry.Cylinder(tilecal_placement,3.82,2.30,12.3)
position_distribution = LI.distributions.CylinderVolumePositionDistribution(tilecal)
primary_injection_distributions["position"] = position_distribution

# SetProcesses
Expand Down

0 comments on commit e705381

Please sign in to comment.