Skip to content

Commit

Permalink
TRestAxionSolarXYZFlux. Fixing compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jgalan committed Sep 11, 2023
1 parent ee57b39 commit d2e3d9b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions inc/TRestAxionSolarFlux.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ class TRestAxionSolarFlux : public TRestMetadata {
virtual Double_t GetTotalFlux(Double_t mass = 0) = 0;

/// It defines how to generate Monte Carlo energy and radius values to reproduce the flux
virtual std::pair<Double_t, Double_t> GetRandomEnergyAndRadius(TVector2 eRange = TVector2(-1, -1),
Double_t mass = 0) = 0;
virtual std::pair<Double_t, Double_t> GetRandomEnergyAndRadius(TVector2 eRange = TVector2(-1, -1)) = 0;

/// It returns an energy integrated spectrum in cm-2 s-1 keV-1
virtual TH1F* GetEnergySpectrum(Double_t m = 0) = 0;
Expand Down
3 changes: 1 addition & 2 deletions inc/TRestAxionSolarHiddenPhotonFlux.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ class TRestAxionSolarHiddenPhotonFlux : public TRestAxionSolarFlux {
Double_t IntegrateFluxInRange(TVector2 eRange = TVector2(-1, -1), Double_t mass = 0) override;

/// It defines how to generate Monte Carlo energy and radius values to reproduce the flux
std::pair<Double_t, Double_t> GetRandomEnergyAndRadius(TVector2 eRange = TVector2(-1, -1),
Double_t mass = 0) override;
std::pair<Double_t, Double_t> GetRandomEnergyAndRadius(TVector2 eRange = TVector2(-1, -1)) override;

/// It defines how to read the solar tables at the inhereted class for a given mass in eV
Bool_t LoadTables(Double_t mass) override;
Expand Down
3 changes: 1 addition & 2 deletions inc/TRestAxionSolarQCDFlux.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ class TRestAxionSolarQCDFlux : public TRestAxionSolarFlux {
Double_t IntegrateFluxInRange(TVector2 eRange = TVector2(-1, -1), Double_t mass = 0) override;

/// It defines how to generate Monte Carlo energy and radius values to reproduce the flux
std::pair<Double_t, Double_t> GetRandomEnergyAndRadius(TVector2 eRange = TVector2(-1, -1),
Double_t mass = 0) override;
std::pair<Double_t, Double_t> GetRandomEnergyAndRadius(TVector2 eRange = TVector2(-1, -1)) override;

/// It defines how to read the solar tables at the inhereted class
Bool_t LoadTables(Double_t mass = 0) override;
Expand Down
3 changes: 1 addition & 2 deletions src/TRestAxionSolarQCDFlux.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,7 @@ Double_t TRestAxionSolarQCDFlux::IntegrateFluxInRange(TVector2 eRange, Double_t
/// \brief It returns a random solar radius position and energy according to the
/// flux distributions defined inside the solar tables loaded in the class
///
std::pair<Double_t, Double_t> TRestAxionSolarQCDFlux::GetRandomEnergyAndRadius(TVector2 eRange,
Double_t mass) {
std::pair<Double_t, Double_t> TRestAxionSolarQCDFlux::GetRandomEnergyAndRadius(TVector2 eRange) {
std::pair<Double_t, Double_t> result = {0, 0};
if (!AreTablesLoaded()) return result;
Double_t rnd = fRandom->Rndm();
Expand Down

0 comments on commit d2e3d9b

Please sign in to comment.