Functions | Variables
APDSingleGainPoints Namespace Reference

Functions

def New (cons, args)
 

Variables

list gs = []
 
 c1 = New(TCanvas,"c1","c1")
 
 c2 = New(TCanvas,"c2","c2")
 
 m100Histo = New(TH1F, "gain100","gain100",600,0,300)
 
 m150Histo = New(TH1F,"gain150","gain150",600,0,300)
 
 pixelRatio = New(TH1F,"pixelRatio","pixelRatio",400,0,3)
 
 FEBRatio = New(TH1F,"FEBRatio","FEBRatio",800,0,3)
 
 pswdloc = os.environ['NOVADBPWDFILE']
 
 pswdfile = open(pswdloc, "r")
 
 pswd = pswdfile.read()
 
string SQL = "dbname=nova_hardware host=ifdbprod.fnal.gov user=nova_reader password={} port=5432"
 
 connFL = psycopg2.connect(SQL)
 
 curFL = connFL.cursor()
 
 APDinstall_file = open("apd_installation.txt", "r")
 
 APDinstall_list = csv.reader(APDinstall_file)
 
 apdseqno = str(apdseqint)
 
 rows = curFL.fetchall()
 
list currentTable = [[0 for x in range(45)] for y in range(62)]
 
list gainTable = []
 
int rownumber = 0
 
list photoCurrent = []
 
list illumination = []
 
list voltageArray = []
 
list pixelGain = []
 
list averageGain = []
 
 resultsFile = open("APD_pixel_gain_V.csv", "w+")
 
int gainSum = 0
 
string csvoutfmt = '{}, '
 
 csvout
 
int voltageIndex = 0
 
int voltage100 = 0
 
float voltage150 = 1.02
 
int FEBGain100 = 0
 
int FEBGain150 = 0
 
tuple pixelgain100
 
tuple pixelgain150
 
 local
 
 banner
 

Function Documentation

def APDSingleGainPoints.New (   cons,
  args 
)

Definition at line 13 of file APDSingleGainPoints.py.

13 def New(cons, *args):
14  ret = cons(*args)
15  gs.append(ret)
16  return ret
17 

Variable Documentation

APDSingleGainPoints.APDinstall_file = open("apd_installation.txt", "r")

Definition at line 49 of file APDSingleGainPoints.py.

APDSingleGainPoints.APDinstall_list = csv.reader(APDinstall_file)

Definition at line 50 of file APDSingleGainPoints.py.

APDSingleGainPoints.apdseqno = str(apdseqint)

Definition at line 56 of file APDSingleGainPoints.py.

list APDSingleGainPoints.averageGain = []

Definition at line 85 of file APDSingleGainPoints.py.

APDSingleGainPoints.banner

Definition at line 227 of file APDSingleGainPoints.py.

APDSingleGainPoints.c1 = New(TCanvas,"c1","c1")

Definition at line 18 of file APDSingleGainPoints.py.

APDSingleGainPoints.c2 = New(TCanvas,"c2","c2")

Definition at line 20 of file APDSingleGainPoints.py.

APDSingleGainPoints.connFL = psycopg2.connect(SQL)

Definition at line 39 of file APDSingleGainPoints.py.

APDSingleGainPoints.csvout

Definition at line 114 of file APDSingleGainPoints.py.

string APDSingleGainPoints.csvoutfmt = '{}, '

Definition at line 112 of file APDSingleGainPoints.py.

APDSingleGainPoints.curFL = connFL.cursor()

Definition at line 45 of file APDSingleGainPoints.py.

list APDSingleGainPoints.currentTable = [[0 for x in range(45)] for y in range(62)]

Definition at line 67 of file APDSingleGainPoints.py.

float APDSingleGainPoints.FEBGain100 = 0

Definition at line 179 of file APDSingleGainPoints.py.

float APDSingleGainPoints.FEBGain150 = 0

Definition at line 180 of file APDSingleGainPoints.py.

APDSingleGainPoints.FEBRatio = New(TH1F,"FEBRatio","FEBRatio",800,0,3)

Definition at line 25 of file APDSingleGainPoints.py.

int APDSingleGainPoints.gainSum = 0

Definition at line 96 of file APDSingleGainPoints.py.

list APDSingleGainPoints.gainTable = []

Definition at line 68 of file APDSingleGainPoints.py.

list APDSingleGainPoints.gs = []

Definition at line 10 of file APDSingleGainPoints.py.

list APDSingleGainPoints.illumination = []

Definition at line 82 of file APDSingleGainPoints.py.

APDSingleGainPoints.local

Definition at line 227 of file APDSingleGainPoints.py.

APDSingleGainPoints.m100Histo = New(TH1F, "gain100","gain100",600,0,300)

Definition at line 22 of file APDSingleGainPoints.py.

APDSingleGainPoints.m150Histo = New(TH1F,"gain150","gain150",600,0,300)

Definition at line 23 of file APDSingleGainPoints.py.

list APDSingleGainPoints.photoCurrent = []

Definition at line 81 of file APDSingleGainPoints.py.

list APDSingleGainPoints.pixelGain = []

Definition at line 84 of file APDSingleGainPoints.py.

tuple APDSingleGainPoints.pixelgain100
Initial value:
1 = (pixelGain[pixel+32*(voltageIndex-1)]+
2  (pixelGain[32*voltageIndex+pixel]-pixelGain[32*(voltageIndex-1)+pixel])*
3  (voltage100-voltageArray[voltageIndex-1])/
4  (voltageArray[voltageIndex]-voltageArray[voltageIndex-1]))

Definition at line 182 of file APDSingleGainPoints.py.

tuple APDSingleGainPoints.pixelgain150
Initial value:
1 = (pixelGain[pixel+32*(voltageIndex-1)]+
2  (pixelGain[32*voltageIndex+pixel]-pixelGain[32*(voltageIndex-1)+pixel])*
3  (voltage150-voltageArray[voltageIndex-1])/
4  (voltageArray[voltageIndex]-voltageArray[voltageIndex-1]))

Definition at line 194 of file APDSingleGainPoints.py.

APDSingleGainPoints.pixelRatio = New(TH1F,"pixelRatio","pixelRatio",400,0,3)

Definition at line 24 of file APDSingleGainPoints.py.

APDSingleGainPoints.pswd = pswdfile.read()

Definition at line 34 of file APDSingleGainPoints.py.

APDSingleGainPoints.pswdfile = open(pswdloc, "r")

Definition at line 33 of file APDSingleGainPoints.py.

APDSingleGainPoints.pswdloc = os.environ['NOVADBPWDFILE']

Definition at line 32 of file APDSingleGainPoints.py.

APDSingleGainPoints.resultsFile = open("APD_pixel_gain_V.csv", "w+")

Definition at line 87 of file APDSingleGainPoints.py.

int APDSingleGainPoints.rownumber = 0

Definition at line 70 of file APDSingleGainPoints.py.

APDSingleGainPoints.rows = curFL.fetchall()

Definition at line 61 of file APDSingleGainPoints.py.

string APDSingleGainPoints.SQL = "dbname=nova_hardware host=ifdbprod.fnal.gov user=nova_reader password={} port=5432"

Definition at line 36 of file APDSingleGainPoints.py.

tuple APDSingleGainPoints.voltage100 = 0

Definition at line 160 of file APDSingleGainPoints.py.

float APDSingleGainPoints.voltage150 = 1.02

Definition at line 171 of file APDSingleGainPoints.py.

list APDSingleGainPoints.voltageArray = []

Definition at line 83 of file APDSingleGainPoints.py.

int APDSingleGainPoints.voltageIndex = 0

Definition at line 159 of file APDSingleGainPoints.py.