Functions | Variables
APDGainPoints 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(Location[2])
 
 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 APDGainPoints.New (   cons,
  args 
)

Definition at line 13 of file APDGainPoints.py.

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

Variable Documentation

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

Definition at line 49 of file APDGainPoints.py.

APDGainPoints.APDinstall_list = csv.reader(APDinstall_file)

Definition at line 50 of file APDGainPoints.py.

APDGainPoints.apdseqno = str(Location[2])

Definition at line 54 of file APDGainPoints.py.

list APDGainPoints.averageGain = []

Definition at line 84 of file APDGainPoints.py.

APDGainPoints.banner

Definition at line 224 of file APDGainPoints.py.

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

Definition at line 18 of file APDGainPoints.py.

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

Definition at line 20 of file APDGainPoints.py.

APDGainPoints.connFL = psycopg2.connect(SQL)

Definition at line 39 of file APDGainPoints.py.

APDGainPoints.csvout

Definition at line 113 of file APDGainPoints.py.

string APDGainPoints.csvoutfmt = '{}, '

Definition at line 111 of file APDGainPoints.py.

APDGainPoints.curFL = connFL.cursor()

Definition at line 45 of file APDGainPoints.py.

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

Definition at line 66 of file APDGainPoints.py.

float APDGainPoints.FEBGain100 = 0

Definition at line 178 of file APDGainPoints.py.

float APDGainPoints.FEBGain150 = 0

Definition at line 179 of file APDGainPoints.py.

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

Definition at line 25 of file APDGainPoints.py.

int APDGainPoints.gainSum = 0

Definition at line 95 of file APDGainPoints.py.

list APDGainPoints.gainTable = []

Definition at line 67 of file APDGainPoints.py.

list APDGainPoints.gs = []
list APDGainPoints.illumination = []

Definition at line 81 of file APDGainPoints.py.

APDGainPoints.local

Definition at line 224 of file APDGainPoints.py.

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

Definition at line 22 of file APDGainPoints.py.

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

Definition at line 23 of file APDGainPoints.py.

list APDGainPoints.photoCurrent = []

Definition at line 80 of file APDGainPoints.py.

list APDGainPoints.pixelGain = []

Definition at line 83 of file APDGainPoints.py.

tuple APDGainPoints.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 181 of file APDGainPoints.py.

tuple APDGainPoints.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 192 of file APDGainPoints.py.

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

Definition at line 24 of file APDGainPoints.py.

APDGainPoints.pswd = pswdfile.read()

Definition at line 34 of file APDGainPoints.py.

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

Definition at line 33 of file APDGainPoints.py.

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

Definition at line 32 of file APDGainPoints.py.

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

Definition at line 86 of file APDGainPoints.py.

int APDGainPoints.rownumber = 0

Definition at line 69 of file APDGainPoints.py.

APDGainPoints.rows = curFL.fetchall()

Definition at line 60 of file APDGainPoints.py.

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

Definition at line 36 of file APDGainPoints.py.

tuple APDGainPoints.voltage100 = 0

Definition at line 159 of file APDGainPoints.py.

float APDGainPoints.voltage150 = 1.02

Definition at line 170 of file APDGainPoints.py.

list APDGainPoints.voltageArray = []

Definition at line 82 of file APDGainPoints.py.

int APDGainPoints.voltageIndex = 0

Definition at line 158 of file APDGainPoints.py.