icemc
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
Primaries Class Reference

Functions you need to generate a primary interaction including cross sections and picking charged current/neutral current and flavor Primaries. More...

#include <Primaries.h>

Public Member Functions

double pickY (Settings *settings1, double pnu, int nu_nubar, int currentint)
 pick inelasticity y according to chosen model More...
 
double Getyweight (double pnu, double y, int nu_nubar, int currentint)
 in case you choose y from a flat distribution, this is the weight you should give it according to Connolly et al. (2011) More...
 
 Primaries ()
 constructor More...
 
 ~Primaries ()
 *primary1 must be manually deleted in icemc for deconstructor to actually be called. More...
 
int GetSigma (double pnu, double &sigma, double &len_int_kgm2, Settings *settings1, int nu_nubar, int currentint)
 Neutrino-nucleon cross-sections using model chosen. More...
 
string GetNuFlavor ()
 pick a neutrino type, flavor ratio 1:1:1 More...
 

Public Attributes

double A_low [4]
 Table V of Connolly et al. for use in Eq. 16. Same for any nu_nubar and current type. More...
 
double A0_high [2][2]
 Table V of Connolly et al. for use in Eq. 16. More...
 
double A1_high [2][2]
 Table V of Connolly et al. for use in Eq. 16. More...
 
double A2_high [2][2]
 Table V of Connolly et al. for use in Eq. 16. More...
 
double A3_high [2][2]
 Table V of Connolly et al. for use in Eq. 16. More...
 
double b0
 Eq. 17 of Connolly et al. More...
 
double b1
 Eq. 17 of Connolly et al. More...
 
TF1 * m_fy [2][2]
 
TF1 * m_fsigma [2][2]
 
double c0 [2][2]
 Table V of Connolly et al. for Eq. 7. More...
 
double c1 [2][2]
 Table V of Connolly et al. for Eq. 7. More...
 
double c2 [2][2]
 Table V of Connolly et al. for Eq. 7. More...
 
double c3 [2][2]
 Table V of Connolly et al. for Eq. 7. More...
 
double c4 [2][2]
 Table V of Connolly et al. for Eq. 7. More...
 
double mine [NSIGMAS]
 minimum energy for cross section parametrizations, in eV More...
 
double maxe [NSIGMAS]
 minimum energy for cross section parametrizations, in eV More...
 

Static Public Attributes

static constexpr int NSIGMAS =2
 

Private Attributes

TRandom3 Rand3
 
TH2D * m_hsigma
 plot of cross section vs. log(E/GeV) More...
 
TCanvas * m_csigma
 canvas More...
 
Ym_myY
 
int run_old_code
 

Detailed Description

Functions you need to generate a primary interaction including cross sections and picking charged current/neutral current and flavor Primaries.

Constructor & Destructor Documentation

◆ Primaries()

Primaries::Primaries ( )

constructor

◆ ~Primaries()

Primaries::~Primaries ( )

*primary1 must be manually deleted in icemc for deconstructor to actually be called.

destructor

Member Function Documentation

◆ GetNuFlavor()

string Primaries::GetNuFlavor ( )

pick a neutrino type, flavor ratio 1:1:1

◆ GetSigma()

int Primaries::GetSigma ( double  pnu,
double &  sigma,
double &  len_int_kgm2,
Settings settings1,
int  nu_nubar,
int  currentint 
)

Neutrino-nucleon cross-sections using model chosen.

◆ Getyweight()

double Primaries::Getyweight ( double  pnu,
double  y,
int  nu_nubar,
int  currentint 
)

in case you choose y from a flat distribution, this is the weight you should give it according to Connolly et al. (2011)

◆ pickY()

double Primaries::pickY ( Settings settings1,
double  pnu,
int  nu_nubar,
int  currentint 
)

pick inelasticity y according to chosen model

Member Data Documentation

◆ A0_high

double Primaries::A0_high[2][2]

Table V of Connolly et al. for use in Eq. 16.

◆ A1_high

double Primaries::A1_high[2][2]

Table V of Connolly et al. for use in Eq. 16.

◆ A2_high

double Primaries::A2_high[2][2]

Table V of Connolly et al. for use in Eq. 16.

◆ A3_high

double Primaries::A3_high[2][2]

Table V of Connolly et al. for use in Eq. 16.

◆ A_low

double Primaries::A_low[4]

Table V of Connolly et al. for use in Eq. 16. Same for any nu_nubar and current type.

◆ b0

double Primaries::b0

Eq. 17 of Connolly et al.

◆ b1

double Primaries::b1

Eq. 17 of Connolly et al.

◆ c0

double Primaries::c0[2][2]

Table V of Connolly et al. for Eq. 7.

◆ c1

double Primaries::c1[2][2]

Table V of Connolly et al. for Eq. 7.

◆ c2

double Primaries::c2[2][2]

Table V of Connolly et al. for Eq. 7.

◆ c3

double Primaries::c3[2][2]

Table V of Connolly et al. for Eq. 7.

◆ c4

double Primaries::c4[2][2]

Table V of Connolly et al. for Eq. 7.

◆ m_csigma

TCanvas* Primaries::m_csigma
private

canvas

◆ m_fsigma

TF1* Primaries::m_fsigma[2][2]

◆ m_fy

TF1* Primaries::m_fy[2][2]

◆ m_hsigma

TH2D* Primaries::m_hsigma
private

plot of cross section vs. log(E/GeV)

◆ m_myY

Y* Primaries::m_myY
private

◆ maxe

double Primaries::maxe[NSIGMAS]

minimum energy for cross section parametrizations, in eV

◆ mine

double Primaries::mine[NSIGMAS]

minimum energy for cross section parametrizations, in eV

◆ NSIGMAS

constexpr int Primaries::NSIGMAS =2
static

number of possible cross section models 0=Gandhi et al. 1=Connolly et al. 2011

◆ Rand3

TRandom3 Primaries::Rand3
private

◆ run_old_code

int Primaries::run_old_code
private

The documentation for this class was generated from the following files: