Skip to content

Commit 867a4af

Browse files
committed
TRestAxionField updating documentation
1 parent b680476 commit 867a4af

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

Diff for: src/TRestAxionField.cxx

+28-7
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
/// GammaTransmissionProbability that allows to calculate the axion-photon
3636
/// probability using different strategies.
3737
///
38-
/// \section constant Calculating axion-photon probability in a constant field.
38+
/// ## Calculating axion-photon probability in a constant field.
3939
///
40-
/// ### In vacuum
40+
/// ### 1. In vacuum
4141
///
4242
/// For calculations inside a constant magnetic field one may simply
4343
/// invoke the following code which will launch the calculation in *vacuum*,
@@ -74,7 +74,7 @@
7474
/// field.GammaTransmissionProbability( 0.01 );
7575
/// \endcode
7676
///
77-
/// ### In a buffer gas medium
77+
/// ### 2. In a buffer gas medium
7878
///
7979
/// The axion-photon probability can also be calculated in the sin of a
8080
/// gaseous medium. For that we need to assign a buffer gas instance containing
@@ -95,7 +95,14 @@
9595
/// field.GammaTransmissionProbability( 0.1 );
9696
/// \endcode
9797
///
98-
/// \section non-constant Calculating axion-photon probability in an unhomogeneous field.
98+
/// Once we have assigned a buffer gas to the class we may return back to the
99+
/// vacuum state by just assigning a nullptr to the gas.
100+
///
101+
/// \code
102+
/// field.AssignBufferGas(nullptr);
103+
/// \endcode
104+
///
105+
/// ## Calculating axion-photon probability in an unhomogeneous field.
99106
///
100107
/// There are two main strategies presently implemented inside this class to integrate
101108
/// the axion field along an unhomogeneous magnetic field. The first one uses a simple
@@ -168,6 +175,20 @@
168175
/// Where the later call will return a `std::pair` with the probability and its
169176
/// corresponding error.
170177
///
178+
/// ## Determining density steps for continuous scanning
179+
///
180+
/// A method may be used to determine the masses and gas densities to achieve
181+
/// a continuous scanning TRestAxionField::GetMassDensityScanning. This method
182+
/// will place a new mass or gas density setting at FWHM/2 till it reaches
183+
/// the maximum axion mass specified in the argument.
184+
///
185+
/// The following code recovers the axion masses and density settings required
186+
/// for a continuous scan till 0.2eV.
187+
///
188+
/// \code
189+
/// std::pair <Double_t,Double_t> aField.GetMassDensityScanning( "He", 0.2 );
190+
/// \endcode
191+
///
171192
///--------------------------------------------------------------------------
172193
///
173194
/// RESTsoft - Software for Rare Event Searches with TPCs
@@ -176,9 +197,12 @@
176197
///
177198
/// 2019-March: First concept and implementation of TRestAxionField class.
178199
/// Javier Galan
200+
/// 2023-December: Implementing methods to recover the axion mass scanning nodes
201+
/// Fran Candon
179202
///
180203
/// \class TRestAxionField
181204
/// \author Javier Galan
205+
/// \author Fran Candon
182206
///
183207
/// <hr>
184208
///
@@ -209,9 +233,6 @@ TRestAxionField::~TRestAxionField() {}
209233
///////////////////////////////////////////////
210234
/// \brief Initialization of TRestAxionField class
211235
///
212-
/// It sets the default real precision to be used with mpfr types. Now it is 30 digits.
213-
/// So that we can still calculate numbers such as : 1.0 - 1.e-30
214-
///
215236
void TRestAxionField::Initialize() {
216237
fBufferGas = NULL;
217238

0 commit comments

Comments
 (0)