Author Topic: Secondary fluorescence and bremsstrahlung contribution file  (Read 155 times)


  • Student
  • *
  • Posts: 1
Secondary fluorescence and bremsstrahlung contribution file
« on: March 31, 2020, 12:54:53 am »
Dear all,

Recently I have started to work using DTSA-II (and Monte) through scripts. So far I'm getting familiar with the code and have made great progress. However, I have some problems with getting the results (and saving to separate files). I've saved the spectra to .msa files, but I'm interested in saving the background contrubution of secondary fluorescence and bremsstrahlung to separate files. Is this possible, and how can I do it?
Thank you. Greetings. 
« Last Edit: March 31, 2020, 08:25:58 am by John Donovan »


  • Moderator
  • Professor
  • *****
  • Posts: 37
Re: Secondary fluorescence and bremsstrahlung contubution file
« Reply #1 on: March 31, 2020, 01:10:32 pm »
    It can be done through the scripting interface.  The trick is creating a detector for each separate stream of data (Char, Brem, Brem Secondary, Char Secondary).  The scripting interface in mcSimulate3 is designed to connect many different types of detectors (Voxellated, PhiRhoZ, Generation Images, EDS-like) to the source of x-ray production (Char, Brem etc.) through the XRayTransport3 class which takes the x-rays from the generation point to the detector through any intervening material.

   What you will want to do is to add more EDS-like detectors.  Currently the (one) EDS detector is passed into mcSimulate3.base.  The current implementation of detectors only allows a detector to accumulate one spectrum.  You'll have to create multiple identical detectors (using File->Preferences) and hook each one up separately to the source you want to measure.  Sources can go into multiple detectors so it is possible to collect arbitrary combinations of mechanisms.   You'll need to modify mcSimulate3.base or something similar to handle multiple detectors.  The code in this function should provide all the hints you need to accomplish this.