gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
DirectDetection.cpp File Reference

Routines for direct detection couplings and likelihoods. More...

Include dependency graph for DirectDetection.cpp:

Go to the source code of this file.

Namespaces

 Gambit
 TODO: see if we can use this one:
 
 Gambit::DarkBit
 

Macros

#define DDCALC_RESULT(EXPERIMENT, TYPE, NAME)
 Defines a prototypical DDCalc result extractor. More...
 
#define DDCALC_BIN(EXPERIMENT, TYPE, NAME)
 
#define DD_EX(EXPERIMENT)
 Defines functions to perform the DDCalc internal rate calculations, and extract the results and log likelihoods, for the designated experiment. More...
 

Functions

void Gambit::DarkBit::DD_couplings_DarkSUSY_DS5 (DM_nucleon_couplings &result)
 Get direct detection couplings from initialized DarkSUSY 5. More...
 
void Gambit::DarkBit::DD_couplings_DarkSUSY_MSSM (DM_nucleon_couplings &result)
 Get direct detection couplings from DarkSUSY 6 initialized with MSSM module. More...
 
void Gambit::DarkBit::DD_couplings_MicrOmegas (DM_nucleon_couplings &result)
 Get direct detection couplings from initialized MicrOmegas. More...
 
void Gambit::DarkBit::sigma_SI_p_simple (double &result)
 Simple calculator of the spin-independent WIMP-proton cross-section. More...
 
void Gambit::DarkBit::sigma_SI_n_simple (double &result)
 Simple calculator of the spin-independent WIMP-neutron cross-section. More...
 
void Gambit::DarkBit::sigma_SD_p_simple (double &result)
 Simple calculator of the spin-dependent WIMP-proton cross-section. More...
 
void Gambit::DarkBit::sigma_SD_n_simple (double &result)
 Simple calculator of the spin-dependent WIMP-neutron cross-section. More...
 
void Gambit::DarkBit::sigma_SI_vnqn (map_intpair_dbl &result)
 Calculation of SI and SD cross sections at a reference momentum q0 for the fermionic Higgs portal models. More...
 
void Gambit::DarkBit::sigma_SD_vnqn (map_intpair_dbl &result)
 

Detailed Description

Routines for direct detection couplings and likelihoods.


Authors (add name and date if you modify):

Author
Christopher Savage (chris.nosp@m.@sav.nosp@m.age.n.nosp@m.ame)
Date
2014 Oct
2015 Jan, Feb, June
Author
Jonathan Cornell (jcorn.nosp@m.ell@.nosp@m.ucsc..nosp@m.edu)
Date
2015 Mar
Author
Felix Kahlhoefer (felix.nosp@m..kah.nosp@m.lhoef.nosp@m.er@d.nosp@m.esy.d.nosp@m.e)
Date
2016 August
Author
Pat Scott (p.sco.nosp@m.tt@i.nosp@m.mperi.nosp@m.al.a.nosp@m.c.uk)
Date
2015–2018
Author
Sebastian Wild (sebas.nosp@m.tian.nosp@m..wild.nosp@m.@des.nosp@m.y.de)
Date
2017 October, November
Author
Ankit Beniwal (ankit.nosp@m..ben.nosp@m.iwal@.nosp@m.adel.nosp@m.aide..nosp@m.edu..nosp@m.au)
Date
2018 August
Author
Torsten Bringmann (torst.nosp@m.en.b.nosp@m.ringm.nosp@m.ann@.nosp@m.fys.u.nosp@m.io.n.nosp@m.o)
Date
2019 May
Author
Sanjay Bloor (sanja.nosp@m.y.bl.nosp@m.oor12.nosp@m.@imp.nosp@m.erial.nosp@m..ac..nosp@m.uk)
Date
2020 Feb

Definition in file DirectDetection.cpp.

Macro Definition Documentation

◆ DD_EX

#define DD_EX (   EXPERIMENT)
Value:
/* Calculations */ \
void CAT(EXPERIMENT,_Calc)(bool &result) \
{ \
using namespace Pipes::CAT(EXPERIMENT,_Calc); \
BEreq::DD_CalcRates(BEreq::DD_Experiment(STRINGIFY(EXPERIMENT))); \
result = true; \
} \
/* Results */ \
DDCALC_RESULT(EXPERIMENT, int, Events) \
DDCALC_RESULT(EXPERIMENT, double, Background) \
DDCALC_RESULT(EXPERIMENT, double, Signal) \
DDCALC_RESULT(EXPERIMENT, double, SignalSI) \
DDCALC_RESULT(EXPERIMENT, double, SignalSD) \
DDCALC_RESULT(EXPERIMENT, int, Bins) \
DDCALC_RESULT(EXPERIMENT, double, LogLikelihood) \
DDCALC_BIN(EXPERIMENT, int, Events) \
DDCALC_BIN(EXPERIMENT, double, Background) \
DDCALC_BIN(EXPERIMENT, double, Signal) \
#define STRINGIFY(X)
Definition: stringify.hpp:29
#define CAT(X, Y)
Concatenate macro arguments for 2-7 arguments.
Definition: cats.hpp:22

Defines functions to perform the DDCalc internal rate calculations, and extract the results and log likelihoods, for the designated experiment.

Definition at line 405 of file DirectDetection.cpp.

◆ DDCALC_BIN

#define DDCALC_BIN (   EXPERIMENT,
  TYPE,
  NAME 
)
Value:
void CAT_3(EXPERIMENT,_GetBin,NAME)(std::vector<double> &result) \
{ \
using namespace Pipes::CAT_3(EXPERIMENT,_GetBin,NAME); \
result.clear(); \
int nbins; \
nbins = BEreq::DD_Bins(BEreq::DD_Experiment(STRINGIFY(EXPERIMENT))); \
for (int ibin=1;ibin<=nbins;ibin++) { \
result.push_back( \
BEreq::CAT(DD_Bin,NAME)(BEreq::DD_Experiment(STRINGIFY(EXPERIMENT)),ibin)); } \
}
#define STRINGIFY(X)
Definition: stringify.hpp:29
#define CAT_3(X, Y, Z)
Definition: cats.hpp:25
#define CAT(X, Y)
Concatenate macro arguments for 2-7 arguments.
Definition: cats.hpp:22

Definition at line 391 of file DirectDetection.cpp.

◆ DDCALC_RESULT

#define DDCALC_RESULT (   EXPERIMENT,
  TYPE,
  NAME 
)
Value:
void CAT_3(EXPERIMENT,_Get,NAME)(TYPE &result) \
{ \
using namespace Pipes::CAT_3(EXPERIMENT,_Get,NAME); \
TYPE temp_result = BEreq::CAT(DD_,NAME)(BEreq::DD_Experiment(STRINGIFY(EXPERIMENT))); \
if (Utils::isnan(temp_result)) \
{ \
/* DarkBit_error().raise(LOCAL_INFO, "Got NaN value from DDCalc."); */ \
/* TODO: Raise a proper error here -- NaNs should be fixed. */ \
invalid_point().raise("Got NaN value from DDCalc! This need fixing!"); \
} \
result = temp_result; \
}
#define STRINGIFY(X)
Definition: stringify.hpp:29
#define CAT_3(X, Y, Z)
Definition: cats.hpp:25
#define CAT(X, Y)
Concatenate macro arguments for 2-7 arguments.
Definition: cats.hpp:22

Defines a prototypical DDCalc result extractor.

Definition at line 377 of file DirectDetection.cpp.