Variables | |
run = sys.argv[1] | |
conn = psycopg2.connect("dbname=lbne35t_prod host=ifdbrep.fnal.gov port=5440 user=lbne_reader password=dune35t") | |
cur = conn.cursor() | |
string | SQL = "select * from dune35t.run_summary where run=" |
row = cur.fetchone() | |
cfg = row[1] | |
runType = row[2] | |
comp = row[3] | |
tstart = str(row[4]).replace(" ","T")[0:19] | |
tstop = str(row[5]).replace(" ","T")[0:19] | |
dbjson.conn = psycopg2.connect("dbname=lbne35t_prod host=ifdbrep.fnal.gov port=5440 user=lbne_reader password=dune35t") |