KARL paper: some comments on Referee 1

This commit is contained in:
2025-01-16 12:19:25 +01:00
parent f4e9a38cd5
commit 72fea1c804
2 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ where $N^+$ and $N^-$ are the number of particles crossing the faces in positive
\section{Description of the implementation}
\label{sec:implementation}
For the simulation, we decided to use C++ as a programming language for several reasons. First, it can be used for object oriented programming. This makes the code easier to read, because the classes were closely modelled after their physical representation. Secondly, the accuracy of the simulation relies on high statistics. Thus, many particle decays need to be simulated, which requires a fast calculation. For the same reason, we decided to employ parallel calculation, see section~\ref{ssec:parallelization}.
For the simulation, we decided to use C++ as a programming language for several reasons. First, it can be used for object oriented programming. This makes the code easier to read, because the classes were closely modelled after their physical representation. Secondly, the accuracy of the simulation relies on high statistics. Thus, many particle decays need to be simulated, which requires a fast calculation.\changed{C++ combines object orientation and fast execution and is widely used and well standardized.} For the same reason, we decided to employ parallel calculation, see section~\ref{ssec:parallelization}.
There are three basic building blocks of the simulation. First, the simulation itself is treated as a class, which is responsible for initialization of the simulation environment, see section~\ref{ssec:initialization} and guiding through the flow of the simulation, see Figure~\ref{fig:simulation_flow}. Second, the particle class, which represents the simulated physical particles through their physical position, velocity and type of specie. Third, the specie class, which encapsulates the general behavior of each particle type (\changed{e.g.} electrons) in the simulation.
+14 -15
View File
@@ -18,15 +18,13 @@ In this work, a new Monte Carlo code is presented that permits the calculation o
I have no doubt that KATRIN is a very important experiment, which may require the
development of specific pieces of software. However, as a reader of this journal, what I would expect is code that is general enough to be useful for different applications. This can only be achieved if the details about the code are understandable. However, in my opinion, this is not the case with the present manuscript. The text is generally obscure, with sentences and messages that seem to me to be understood only by the authors. Much of the manuscript describes peculiarities of the code that are of no help to the ordinary reader. In addition, I think it is important to point out several major drawbacks:
1. <done>F: The physics underlying the simulations is not laid out in detail, and concepts that seem relevant are not clearly explained.</done>
1. <done>F: The physics underlying the simulations is not laid out in detail, and concepts that seem relevant are not clearly explained.</done><br>
<reply>We have tried to outline the basic concepts and underlying assumptions in the introduction. Along with other changes laid outer later we have attempted to streamline the reasoning of the article </reply>
2. <done>F: The advantages of this new code with respect to others Monte Carlo codes already available and which could allow the same quantities to be obtained are not discussed. A more or less systematic comparison with the results obtained with these other Monte Carlo codes is missing. These comparisons have been included neither in this manuscript nor in the authors’ article in J. Inst (Ref. [7]), which is continually used as a reference for this work.</done>
2. <done>F: The advantages of this new code with respect to others Monte Carlo codes already available and which could allow the same quantities to be obtained are not discussed. A more or less systematic comparison with the results obtained with these other Monte Carlo codes is missing. These comparisons have been included neither in this manuscript nor in the authors’ article in J. Inst (Ref. [7]), which is continually used as a reference for this work.</done><br>
<reply>We have included a section on the comparison with Monte Carlo codes that address the same physical setup. Unfortunately there is only a handful of codes that do something remotely similar to what we have done here. One could discuss e.g. the application of code frameworks like GEANT for these calculations, but to our understanding the effort to fit our problem into GEANT is about as complex as developing a new code. Should there be other codes out there which we have not taken into consideration we would be grateful for a hint. We would then add further benchmarks. </reply>
3. <done>I find it particularly inappropriate, and unusual, not to analyze in detail different examples that show the advantages of the code presented here. The authors restrict to a single case in which only the elastic scattering is tested. If only this scattering is tested, how the authors can state that this permit to ensure that the whole code can be considered correct?</done>
3. <done>I find it particularly inappropriate, and unusual, not to analyze in detail different examples that show the advantages of the code presented here. The authors restrict to a single case in which only the elastic scattering is tested. If only this scattering is tested, how the authors can state that this permit to ensure that the whole code can be considered correct?</done><br>
<reply>The paper has now an extensive list of tests of the different processes which are implemented in the code. Together with the expanded discussion of the processes this should allow for a thorough verification and reproduction of the results. </reply>
Apart from that, I have pointed out several drawbacks, which I list below.
@@ -35,23 +33,24 @@ Apart from that, I have pointed out several drawbacks, which I list below.
Consequently, I do not recommend publication of this manuscript.
1. Abstract.
- <note>?</note>: What is described in the Abstract is exactly the same simulation logic of any Monte Carlo code that simulates the particle transport in a medium. I should expect some information concerning the actual novelties of the new code.
- <done>: What is described in the Abstract is exactly the same simulation logic of any Monte Carlo code that simulates the particle transport in a medium. I should expect some information concerning the actual novelties of the new code.</done><br>
<reply>The abstract has been reformulated avoiding any repetition of standard Monte Carlo techniques.</reply>
- <cs>C: “The code is parallelized using ... terminator, interaction types, movers and initialization.” This is difficult to understand and refers to details that are too specific.<br>Some of the comments are also obvious: the input of a program is expected to provide information about the simulation that the program is to carry out. What is the “resolution of the simulation domain”? What are the “user defined species”? What are the terminator and the movers?</cs>
1. <fs>F: Again, most of the information provided in sections 2 and 3 refer to the standard logic followed by all Monte Carlo codes simulating radiation-matter interaction that I know. A clear description of the novelties of the new code should be done making the corresponding comparisons with other available Monte Carlo codes that would be unable to do the same work.</fs>
1. <done>F: Again, most of the information provided in sections 2 and 3 refer to the standard logic followed by all Monte Carlo codes simulating radiation-matter interaction that I know. A clear description of the novelties of the new code should be done making the corresponding comparisons with other available Monte Carlo codes that would be unable to do the same work. </done><br>
<reply>We have tried to sharpen the profile of sections 2 and 3. The comparison to other codes is done in a later section. As outlined before in this reply we are not aware of any publicly available code which solves the problem of tritium interactions.</reply>
2. <cs>C: Concerning equation (1): What is an “interaction partner”? Where is entering the drift velocity of the neutral gas? What are the predefined functions used to calculate the cross sections?</cs>
3. <cs>C: Equation (2) is not the most efficient way to calculate the “moved distance”. You should use d = −λmfp ·log η because this saves a division. In addition, and concerning the comment just after this equation, it is worth noting that the number of collisions in a given path length follows a Poisson distribution, but distances moved are distributed exponentially.</cs> <note> Changed; would not be a bottleneck in any case; poisson stuff also rephrased </note>
4. <note>?</note>: Figure 2, without dimensions and no further explanations, seems to me not much
useful.
1. <note>?</note> First paragraph of section 3: I should say that the characteristics mentioned are not exclusive of C++ and that, in my opinion, any modern programming language could
do the job.
1. Some information about details of the simulation would be akcnowledged.
4. <done> Figure 2, without dimensions and no further explanations, seems to me not much useful.<done><br><reply>We believe the sketch gives some insight into the grid used for the source. The content could be spelled out also but the graphic representation seems more self-explanatory. </reply>
5. <done> First paragraph of section 3: I should say that the characteristics mentioned are not exclusive of C++ and that, in my opinion, any modern programming language could do the job.</done><br>
<reply>C++ is not the only choice, but when looking for a fast, object-oriented language which is widely used it is in our view the first choice. We have clarified this.</reply>
6. Some information about details of the simulation would be acknowledged.
- As an example I mention: “The movement itself is subdivided into in smaller steps. How big are these steps or how are they defined?
- <note>?</note>: But the question is more general. There are not details about elements that are usual in any Monte Carlo simulation of the transport of particles in materials: absorption
energies, tracking parameters, simulation geometry construction and management,
etc.
1. <cs>C: In figure 3, a red line indicates an “ideal scaling”. This is not mentioned at all in the text: what is its purpose?</cs>
2. <csfs>F, C: Figure 4 shows data and a fit of them. No information of the function used for the fit is given, no information about the values of the best fit parameters is given, and no <note> information about the goodness of the fit </note> is given. In addition, no information about the details of the simulations carried out is given. The figure caption informs that the uncertainties have been calculated from a total of six simulations. Apart from the small and “strange” number (why not 5 or 3 or 10), there is no information about the number of histories simulated in each run and the simulation parameters chosen.</csfs>
1. <fs>F: A comparison with other codes for the spectra shown in figure 5 lacks in order to judge the advantages of the new code. Here there is no information about the simulations geometry (dimensions, materials, compositions, densities, ...) and about the simulation carried out. Concerning the spectra in this figure, the last sentence of the section says: “The spectrum shows very clearly that all processes for the particles interact in a non-trivial manner. It is therefore necessary to use a sophisticated tool like KARL to simulate their behaviour inside the KATRIN source. Apart from the fact that the sentence is not correct (it seems that something lacks), I have difficulties to understand how the spectra shown actually provide the information about all interaction processes as stated.</fs>
2. <csfs>F, C: Throughout the text, the reader is made to go back and forth in the reading, with continuous references to different sections (previous and subsequent), making it a practically impossible task.</csfs>
1. <fs>F: A comparison with other codes for the spectra shown in figure 5 lacks in order to judge the advantages of the new code. Here there is no information about the simulations geometry (dimensions, materials, compositions, densities, ...) and about the simulation carried out. Concerning the spectra in this figure, the last sentence of the section says: “The spectrum shows very clearly that all processes for the particles interact in a non-trivial manner. It is therefore necessary to use a sophisticated tool like KARL to simulate their behavior inside the KATRIN source. Apart from the fact that the sentence is not correct (it seems that something lacks), I have difficulties to understand how the spectra shown actually provide the information about all interaction processes as stated.</fs>
2. <done>Throughout the text, the reader is made to go back and forth in the reading, with continuous references to different sections (previous and subsequent), making it a practically impossible task.</done><br><reply>After re-arranging the paper we have also redacted the crosslinks which should drastically increase the readability</reply>
3. <fs>F: In addition, there is a continuous reference to the Ph. D. thesis of one of the authors and to the paper above mentioned when some, may be relevant, details of the simulation should be provide. As an example, the paragraph “In some cases, there is not enough data ... ”, in pg.14 when elastic scattering is described, does not explain nothing and mentions things like “external simulations” that are incomprehensible.</fs>
4. <done>C: In modern physics texts, vector quantities are usually written in boldface instead of using an arrow on top of the symbol.</done> <note> irrelevant change; not colorcoded in the text </note>
4. <done>C: In modern physics texts, vector quantities are usually written in boldface instead of using an arrow on top of the symbol.</done><br> <reply>We have adapted the bold style, but we would like to point that we have followed the journal style without any changes for the vector style. </reply>