draconyan
Public Member Functions | Public Attributes | List of all members
Draconyan.Draconyan Class Reference
Inheritance diagram for Draconyan.Draconyan:
Inheritance graph
[legend]
Collaboration diagram for Draconyan.Draconyan:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self)
 
def calc_beam_in_target (self)
 
def calc_beam_in_target_sb1 (self)
 
def calc_Ecm (self)
 
def calc_elastics (self)
 
def convert_fc4 (self)
 
def calc_IoverN_run (self)
 
def calc_R_run (self)
 
def calc_R_set (self)
 
def calc_R1_run (self)
 
def calc_R1_set (self)
 
def calc_set_averages (self)
 
def sort_set_runNumbers (self)
 
def calc_Sfactors (self)
 
def calc_sigmas (self)
 
def calc_stopping_powers (self)
 
def calc_target_densities (self)
 
def calc_transmissions (self)
 
def calc_wgs (self)
 
def calc_yields (self)
 
def determine_nuTarget (self)
 
def find_run_number (self, number)
 
def find_set
 
def initialise_sets (self)
 
def plot_individual_IoverN (self)
 
def plot_individual_IoverN1 (self)
 
def plot_individual_Rs (self)
 
def plot_individual_R1s (self)
 
def plot_yields (self)
 
def plot_wg_coinc (self)
 
def read_geantdata (self)
 
def read_input_file
 
def read_recoildata (self)
 
def read_rundata (self)
 
def read_runs_from_file_step1 (self)
 
def read_sbdata (self)
 
def read_sets_from_file_step2 (self)
 
def return_run_list (self)
 
def sort_sets_by_Ecm (self)
 
def write_file_step3 (self)
 
def write_runfile_step1 (self)
 
def write_setfile_step2 (self)
 

Public Attributes

 step
 
 qProj
 
 stoppingFactor
 
 mcpEff
 
 mcpTrans
 
 deltaE
 
 deltaP
 
 dataFileName
 
 sbFileName
 
 geantFileName
 
 recoilFileName
 
 setFileName
 
 runFileName
 
 targetLength
 
 sets
 
 runs
 
 upperLimitSwitch
 
 nuTarget
 
 dEnergy
 
 dPressure
 
 dFc4
 
 projectile
 
 target
 

Detailed Description

Main analysis class with functions to read and write files and manage runs and sets.

General setup from DraconyanIn.dat. Most variables have default values.
String representation of projectile and target has to be in name format given in nubtab03.asc

Member Function Documentation

def Draconyan.Draconyan.calc_beam_in_target (   self)
Calls calc_beam_in_target for all sets.
def Draconyan.Draconyan.calc_beam_in_target_sb1 (   self)
Calls calc_beam_in_target for all sets.
def Draconyan.Draconyan.calc_Ecm (   self)
Calls \'calc_Ecm\' for all runs and sets.
def Draconyan.Draconyan.calc_elastics (   self)
Calculates elastics for SB0 and SB1 both Rutherford corrected (R, R1) and not corrected (IoverN, IoverN1).

To calculate only the normalisation factor R, use calc_R_set()
def Draconyan.Draconyan.calc_IoverN_run (   self)
Calls calc_IoverN and IoverN1 for all runs.
def Draconyan.Draconyan.calc_R1_run (   self)
Calls calc_R1 for all runs.
def Draconyan.Draconyan.calc_R1_set (   self)
Calls calc_R1 for all sets.

Normalisation factor R1 based on SB1 data. Not actually used for normalisation, use R (calc_R_set()) based on SB0 for that.
To calculate both R and R1, and the ratios FC4/SBx, call calc_elastics().
def Draconyan.Draconyan.calc_R_run (   self)
Calls calc_R for all runs.
def Draconyan.Draconyan.calc_R_set (   self)
Calls calc_R for all sets.

For normalisation, this is sufficient. To analyse the elastics also using SB1, call calc_elastics().
def Draconyan.Draconyan.calc_set_averages (   self)
Calls calc_averages for all sets.
def Draconyan.Draconyan.calc_Sfactors (   self)
Calls calc_Sfactors for all sets.

calc_sigmas has to be calles first.
def Draconyan.Draconyan.calc_sigmas (   self)
Calls calc_sigma for all sets.
def Draconyan.Draconyan.calc_stopping_powers (   self)
Calls calc_stopping_power for all sets.
def Draconyan.Draconyan.calc_target_densities (   self)
Calls calc_target_density for all sets.
def Draconyan.Draconyan.calc_transmissions (   self)
Calls calc_transmission for all sets.
def Draconyan.Draconyan.calc_wgs (   self)
Calls calc_wg for all sets.
def Draconyan.Draconyan.calc_yields (   self)
Calls calc_yield for all sets.
def Draconyan.Draconyan.convert_fc4 (   self)
Calls convert_fc4 for all runs.
def Draconyan.Draconyan.find_run_number (   self,
  number 
)
Returns the run by runNumber, if not found, returns 0.
def Draconyan.Draconyan.find_set (   self,
  Ein,
  pTar,
  dE = 0.5,
  dP = 0.5 
)
Finds a set of runs based on energy and pressure.

\'Ein\' is the incoming beam energy in keV/u, \'pTar\' the target pressure in torr
\'dE\' and \'dP\' are the maximum deviations in energy and pressure allowed to be considered the same set.
def Draconyan.Draconyan.initialise_sets (   self)
Sort runs into sets depending on incoming beam energy and presure.

\'deltaE\' and \'deltaP\' are the maximum deviations in energy (keV/u) and pressure (torr) for a run to be considered as belonging to a set.
def Draconyan.Draconyan.plot_individual_IoverN (   self)
Plots FC4/SB0 for all runs.

Requires matplotlib
Can only run if running from the beginning, i.e. step = 0
def Draconyan.Draconyan.plot_individual_IoverN1 (   self)
Plots FC4/SB0 for all runs.

Requires matplotlib
Can only run if running from the beginning, i.e. step = 0
def Draconyan.Draconyan.plot_individual_R1s (   self)
Plots normalisation factor R for all runs.

Requires matplotlib
Can only run if running from the beginning, i.e. step = 0
def Draconyan.Draconyan.plot_individual_Rs (   self)
Plots normalisation factor R for all runs.

Requires matplotlib
Can only run if running from the beginning, i.e. step = 0
def Draconyan.Draconyan.plot_wg_coinc (   self)
Plots wgs for all sets

Requires matplotlib.
def Draconyan.Draconyan.plot_yields (   self)
Plots yields for all sets

Requires matplotlib.
def Draconyan.Draconyan.read_geantdata (   self)
Read GEANT transmission and BGO efficiency data from file.

Format:
Ein[keV/u]   pTar[T]    transm  +/-    BGOeff  +/-
def Draconyan.Draconyan.read_recoildata (   self)
Read recoil data from file.

Format:
Ein[keV/u]   pTar[T]    singles    coincidences
def Draconyan.Draconyan.read_rundata (   self)
Reads run data from file.

Format:
run    Ein     Eout    pressure      FC4before [eA]    FC4after [eA]    target  +/-  separator    +/-    CSF     +/-
and creates objects of type Run.
def Draconyan.Draconyan.read_sbdata (   self)
Read SB and lt data from file.

Format:
Run    SB0   +/-   SB1   +/-   lt_HI  +/-   lt_BGO   +/-    SB0start/s   +/-     SB0end/s    +/-    SB1start/s   +/-     SB1end/s    +/- 
def Draconyan.Draconyan.sort_set_runNumbers (   self)
Sorts run numbers in all sets.
def Draconyan.Draconyan.sort_sets_by_Ecm (   self)
Sort sets by cm energy for nicer plots.
def Draconyan.Draconyan.write_file_step3 (   self)
Write file for sets with the results.

Creates output file DraconyanOut_results.dat with yields and cross sections
def Draconyan.Draconyan.write_runfile_step1 (   self)
Write overview file for runs.

Creates output files DraconianOut_runs.dat with the normalisation data
def Draconyan.Draconyan.write_setfile_step2 (   self)
Write overview file for sets.

Creates output files DraconianOut_sets.dat with the normalisation data.
This format is used in the file needed when starting with step 1

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