This project is mirrored from https://github.com/mantidproject/mantid.git. Pull mirroring updated .
  1. 14 Oct, 2020 1 commit
  2. 08 Oct, 2020 13 commits
  3. 07 Oct, 2020 1 commit
  4. 06 Oct, 2020 6 commits
  5. 02 Oct, 2020 2 commits
  6. 30 Sep, 2020 2 commits
  7. 29 Sep, 2020 2 commits
  8. 28 Sep, 2020 3 commits
  9. 25 Sep, 2020 3 commits
  10. 29 Jul, 2020 1 commit
    • Danny Hindson's avatar
      Further work on adding mocking into MonteCarloAbsorption tests · f80f5654
      Danny Hindson authored
      Modified MonteCarloAbsorptionTest.h to add more unit tests, add
      integration tests that are based on scenarios with an analytic result
      and remove a couple of integration tests where good system test cover
      already in place
      Add one more test to SpareInstrumentTest to check the inverse square
      weighting
      f80f5654
  11. 07 Apr, 2020 1 commit
    • Giovanni Di Siena's avatar
      Replace boost::shared with std::shared · 11994bc3
      Giovanni Di Siena authored and Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony committed
      In places other substitutions have been made, e.g
      Clang does not yet specialize std::shared_ptr for T[]. Vector
      has been used instead. The operator[] methods were incorrectly
      marked const but returning a non-const reference - this has been fixed.
      Refs #25842
      11994bc3
  12. 25 Mar, 2020 1 commit
  13. 20 Mar, 2020 1 commit
  14. 05 Mar, 2020 1 commit
  15. 22 Jan, 2020 1 commit
    • Danny Hindson's avatar
      Incorporate review comments · 0ccc8ee8
      Danny Hindson authored
      Main change is change IObject::generatePointInObject to return boost::optional<V3D>
      instead of using an out parameter combined with a boolean return value
      0ccc8ee8
  16. 20 Jan, 2020 1 commit
    • Danny Hindson's avatar
      Improve sampling of scatter pts in absorption correction simulation · e2af417f
      Danny Hindson authored
      The sampling is now performed according to the volume of each part of
      the sample\environment that intersects the beam profile
      
      Following changes have been made:
      
      a) the function IObject::generatePointInObject has been modified so that it returns
      false rather than raising an exception if it fails to generate a point inside
      the object that is also in the active region. This is more efficient when it is
      being called with a maxAttempts value of 1 in an attempt to fairly sample the
      scatter points among the sample + environment components. This involved a change
      in IObject and various child classes (MeshObject, CSGObject, MeshObject2D, Container)
      
      b) the code that calls IObject::generatePointInObject and cycles through the
      various parts of the environment\sample has been moved from SampleEnvironment into
      MCInteractionVolume so that the sample can be included. There is a new function
      MCInteractionVolume::generatePoint that randomly generates a scatter point across the
      sample and environment components. Possible the SampleEnvironment class could be retired
      entirely and just replaced by a vector of IObject items attached to the sample.
      
      c) change CSGObject::generatePointInObject to stop calling the fallback method when the
      maxAttempts parameter equals 1. The fallback method always returns a point if the object's
      bounding box is inside the active area which doesn't produce the required sampling across
      the env components. This change has modified the random number sequences used in various
      tests - including the "sample only" tests
      
      d) added some logging to the simulation to show where the scatter points
      occurred. These show that for Pearl around 6% of the scatter points are
      in the sample which is less than the 50% assumption previously in the code
      
      e) Several changes to the unit tests (MCInteractionVolumeTest.h, MonteCarloAbsorptionTest.h,
      DirectILLSelfShieldingTest.py). The updated sampling means that the absorption corrections
      are slightly different than before for cases with a sample + environment.
      
      For DirectILLSelfShieldingTest, an extra parameter has been added to underlying algorithm
      (DirectILLSelfShielding) so that this test can continue to use 300 events per point while
      the ILLDirectGeometryReductionTest can use 5000 events per point
      
      f) some changes to system tests (ILLDirectGeometryReductionTest, complexShapeAbsorptions)
      
      The calculation used in ILLDirectGeometryReductionTest wasn't converged (changing the seed
      gave a ~25% change in the output) so have increased the number of events per point from 300
      to 5000. I didn't increase the number of events further because I didn't want to make the
      runtime of the system test (esp in debug mode) too large
      e2af417f