wschreyer / PENTrack

PENTrack - a simulation tool for ultra-cold neutrons, protons and electrons
GNU General Public License v2.0
8 stars 20 forks source link

Simtype 8 and 9 require a source and geometry file to be specified in geometry.in #26

Closed ssc5 closed 8 years ago

ssc5 commented 9 years ago

Simtypes 8 and 9 give 3D tables of the differential and integrated MR diffuse reflection probabilities and should not require any geometry file to be specified (similar to a B field cut). However, in the current implementation a neutron is created and used to call the TNeutron::getMRProb function to obtain these probabilities.

The creation of the neutron requires a TGeometry object to be specified, which means at least one file under the [GEOMETRY] and [SOURCE] must be specified to run these simtypes. It should be possible to create an artificial geometry so that the neutron object can be created and used to call the getMRProb function without having to specify a STL file in geometry.in.