-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from rest-for-physics/jgalan_hotfix
GSL Integration implementation, TRestAxionMagneticField ReMap feature and HOT bug fix.
- Loading branch information
Showing
15 changed files
with
711 additions
and
196 deletions.
There are no files selected for viewing
Submodule data
updated
4 files
+ − | magneticField/Mentink_202401.bin | |
+ − | magneticField/Mentink_202401_cutoff.bin | |
+4 −0 | magneticField/README.md | |
+10 −0 | magneticField/fields.rml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#include "TCanvas.h" | ||
#include "TGraph.h" | ||
#include "TLatex.h" | ||
#include "TLegend.h" | ||
#include "TLine.h" | ||
#include "TRestAxionBufferGas.h" | ||
#include "TRestAxionField.h" | ||
//******************************************************************************************************* | ||
//*** Description: This script will launch the integration of the axion-field with given parameters. | ||
//*** It allows to test different magnetic field cell sizes, for a given mass that can be off-resonance | ||
//*** for dm different from zero, and a given maximum tolerance or error for the integration routine. | ||
//*** | ||
//*** The macro sets the TRestAxionField under debug mode to print the different results on screen. | ||
//*** | ||
//*** -------------- | ||
//*** Usage: restManager FieldIntegrationTests [sX=10] [sX=10] [sZ=10] [dm=0.01] [tolerance=0.1] [Ea=4.2] | ||
//*** -------------- | ||
//*** | ||
//*** Author: Javier Galan | ||
//******************************************************************************************************* | ||
int REST_Axion_FieldIntegrationTests(Double_t sX = 10, Double_t sY = 10, Double_t sZ = 50, Double_t dm = 0.01, | ||
Double_t tolerance = 0.1, Double_t Ea = 4.2) { | ||
/// Setting up magnetic field and track to evaluate | ||
TRestAxionMagneticField magneticField("fields.rml", "babyIAXO_HD"); | ||
|
||
for (size_t n = 0; n < magneticField.GetNumberOfVolumes(); n++) | ||
magneticField.ReMap(n, TVector3(sX, sY, sZ)); | ||
magneticField.SetTrack(TVector3(-110, -110, -11000), TVector3(0.01, 0.01, 1)); | ||
magneticField.PrintMetadata(); | ||
|
||
/// Setting up the gas | ||
TRestAxionBufferGas* gas = new TRestAxionBufferGas(); | ||
gas->SetGasDensity("He", 3.267069078540181e-10); | ||
gas->PrintMetadata(); | ||
Double_t ma = gas->GetPhotonMass(Ea); | ||
|
||
/// Setting up the axion-field and assign gas and magnetic field. | ||
TRestAxionField* ax = new TRestAxionField(); | ||
ax->AssignBufferGas(gas); | ||
ax->AssignMagneticField(&magneticField); | ||
ax->SetAxionEnergy(Ea); | ||
|
||
/// Enable debugging mode in axion-field | ||
ax->SetDebug(true); | ||
|
||
std::pair<double, double> prob = | ||
ax->GammaTransmissionFieldMapProbability(Ea, ma - dm, tolerance, 100, 25); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.