Variables
ConvertToSnowGlobesInput Namespace Reference

Variables

 parser = OptionParser()
 
 help
 
 action
 
 type
 
 dest
 
 default
 
 options
 
 args
 
float PARSEC = 30.857e17
 
int STAR_DISTANCE = options.distance*1000
 
int LUMI_MAG = 1
 
int SPHERE_SUFACE_AREA = 4
 
string data_file_name = "./data/%s_fluxes.root"
 
 data_file = ROOT.TFile.Open(data_file_name)
 
dictionary histograms = {}
 
 time_bins = utils.GetBins(histograms[0].GetXaxis())
 
 energy_bins = utils.GetBins(histograms[0].GetYaxis())
 
bool delta = False
 
 this_delta = t-energy_bins[i - 1]
 
 n_time_units = int(math.ceil((max(time_bins)) / options.dT))
 
list time_points = [0.]
 
list time_tables = []
 
 min_time_bin = histograms[0].GetXaxis().FindBin(time_points[i_time - 1])
 
 max_time_bin = histograms[0].GetXaxis().FindBin(time_points[i_time])
 
list bin_fractions = []
 
list bin_widths = []
 
 lower_limit = histograms[0].GetXaxis().GetBinLowEdge(time_bin)
 
 upper_limit = histograms[0].GetXaxis().GetBinUpEdge(time_bin)
 
tuple spanned_fraction
 
int sum_time = 0
 
 energy = histograms[0].GetYaxis().GetBinCenter(energy_bin)
 
 energy_width = histograms[0].GetYaxis().GetBinWidth(energy_bin)
 
int nu_e_fluence = 0
 
int anti_nu_e_fluence = 0
 
int nu_x_fluence = 0
 
bool write_dat_files = True
 
string file_name = "out/SN_fluence_%s_%i_kPc_dT_%.1f_ms_mb_%i.dat"
 
 file = open(file_name, "w")
 

Variable Documentation

ConvertToSnowGlobesInput.action

Definition at line 15 of file ConvertToSnowGlobesInput.py.

tuple ConvertToSnowGlobesInput.anti_nu_e_fluence = 0

Definition at line 186 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.args

Definition at line 39 of file ConvertToSnowGlobesInput.py.

list ConvertToSnowGlobesInput.bin_fractions = []

Definition at line 144 of file ConvertToSnowGlobesInput.py.

list ConvertToSnowGlobesInput.bin_widths = []

Definition at line 145 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.data_file = ROOT.TFile.Open(data_file_name)

Definition at line 59 of file ConvertToSnowGlobesInput.py.

Referenced by getSpectra_ForFitting(), and MakePlots().

string ConvertToSnowGlobesInput.data_file_name = "./data/%s_fluxes.root"

Definition at line 57 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.default

Definition at line 18 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.delta = False

Definition at line 90 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.dest

Definition at line 17 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.energy = histograms[0].GetYaxis().GetBinCenter(energy_bin)

Definition at line 182 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.energy_bins = utils.GetBins(histograms[0].GetYaxis())

Definition at line 86 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.energy_width = histograms[0].GetYaxis().GetBinWidth(energy_bin)

Definition at line 183 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.file = open(file_name, "w")

Definition at line 214 of file ConvertToSnowGlobesInput.py.

string ConvertToSnowGlobesInput.file_name = "out/SN_fluence_%s_%i_kPc_dT_%.1f_ms_mb_%i.dat"
ConvertToSnowGlobesInput.help

Definition at line 14 of file ConvertToSnowGlobesInput.py.

dictionary ConvertToSnowGlobesInput.histograms = {}

Definition at line 62 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.lower_limit = histograms[0].GetXaxis().GetBinLowEdge(time_bin)
int ConvertToSnowGlobesInput.LUMI_MAG = 1

Definition at line 53 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.max_time_bin = histograms[0].GetXaxis().FindBin(time_points[i_time])

Definition at line 134 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.min_time_bin = histograms[0].GetXaxis().FindBin(time_points[i_time - 1])

Definition at line 133 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.n_time_units = int(math.ceil((max(time_bins)) / options.dT))

Definition at line 109 of file ConvertToSnowGlobesInput.py.

tuple ConvertToSnowGlobesInput.nu_e_fluence = 0

Definition at line 185 of file ConvertToSnowGlobesInput.py.

tuple ConvertToSnowGlobesInput.nu_x_fluence = 0

Definition at line 187 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.options

Definition at line 39 of file ConvertToSnowGlobesInput.py.

float ConvertToSnowGlobesInput.PARSEC = 30.857e17

Definition at line 51 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.parser = OptionParser()

Definition at line 12 of file ConvertToSnowGlobesInput.py.

tuple ConvertToSnowGlobesInput.spanned_fraction
Initial value:
1 = ((upper_limit - lower_limit) /
2  histograms[0].GetXaxis().GetBinWidth(time_bin))
correl_xv GetXaxis() -> SetDecimals()

Definition at line 162 of file ConvertToSnowGlobesInput.py.

int ConvertToSnowGlobesInput.SPHERE_SUFACE_AREA = 4

Definition at line 54 of file ConvertToSnowGlobesInput.py.

int ConvertToSnowGlobesInput.STAR_DISTANCE = options.distance*1000

Definition at line 52 of file ConvertToSnowGlobesInput.py.

int ConvertToSnowGlobesInput.sum_time = 0

Definition at line 174 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.this_delta = t-energy_bins[i - 1]

Definition at line 96 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.time_bins = utils.GetBins(histograms[0].GetXaxis())

Definition at line 83 of file ConvertToSnowGlobesInput.py.

list ConvertToSnowGlobesInput.time_points = [0.]

Definition at line 114 of file ConvertToSnowGlobesInput.py.

list ConvertToSnowGlobesInput.time_tables = []

Definition at line 121 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.type

Definition at line 16 of file ConvertToSnowGlobesInput.py.

ConvertToSnowGlobesInput.upper_limit = histograms[0].GetXaxis().GetBinUpEdge(time_bin)

Definition at line 158 of file ConvertToSnowGlobesInput.py.

bool ConvertToSnowGlobesInput.write_dat_files = True

Definition at line 206 of file ConvertToSnowGlobesInput.py.