Geometry kernels

Arm (GArm)

class mcramp.geom.GArm(idx=0, ctx=None)[source]

Geometry kernel for Arm component - does not store a real intersection.

Parameters
None

Notes

None

Methods

None

Banana (GBanana)

class mcramp.geom.GBanana(radius=0, height=0, mintheta=0, maxtheta=0, idx=0, ctx=None)[source]

Geometry kernel for ‘banana’ geometry. Intersects with the interior of the banana, i.e. first intersection must be at negative time for scattering to occur.

Parameters
radiusfloat

The radius of the banana

heightfloat

The height of the banana

minthetafloat

The minimum valid intersection angle with the banana

maxthetafloat

The maximum valid intersection angle with the banana

Notes

Intersection 1 :

Negative time intersection with the portion of the banana behind the neutron trajectory.

Intersection 2 :

Positive time intersection with the portion of the banana ahead of the neutron trajectory.

Methods

None

Box (GBox)

class mcramp.geom.GBox(width=0, height=0, depth=0, idx=0, ctx=None)[source]

Geometry kernel for ‘box’ geometry. Intersects with the exterior of the box, i.e. first intersection must be at positive time for scattering to occur.

Parameters
widthfloat

The width of the box

heightfloat

The height of the box

depthfloat

The depth of the box

Notes

Intersection 1 :

First point of intersection with the box geometry - ‘entering’ box.

Intersection 2 :

Second point of intersection with the box geometry - ‘exiting’ box.

Methods

None

Plane (GPlane)

class mcramp.geom.GPlane(width=0, height=0, idx=0, orientation='xy', ctx=None)[source]

Geometry kernel for ‘plane’ geometry.

Parameters
widthfloat

The width of the plane

heightfloat

The height of the plane

orientation{“xy”, “yz”}

The orientation of the plane. “xy” gives a plane normal to the z axis, “yz” gives a plane normal to the x axis.

Notes

Intersection 1 :

Point of intersection with the plane

Intersection 2 :

Same as Intersection 1.

Methods

None

Sphere (GSphere)

class mcramp.geom.GSphere(radius=0, idx=0, ctx=None)[source]

Geometry kernel for ‘sphere’ geometry. Intersects with the exterior of the sphere, i.e. first intersection time must be positive for scattering to occur.

Parameters
radiusfloat

The radius of the sphere

Notes

Intersection 1 :

First point of intersection with the sphere geometry - ‘entering’ sphere.

Intersection 2 :

Second point of intersection with the sphere geometry - ‘exiting’ sphere.

Methods

None