Variables
geo2elec Namespace Reference

Variables

 conn = psycopg2.connect("dbname=nova_hardware host=ifdbprod.fnal.gov user=nova_reader port=5432")
 
 cur = conn.cursor()
 
string SQL = "select CAST(btrim(location1, 'DIBLK:') AS INT), CAST(btrim(position1, 'DCM:') AS INT), CAST(btrim(port1,'PRT:') AS INT) from public.feb_comm_cables where location2='BLK:{}' and position2='PLN:{}' and port2='POS:{}';"
 
 rows = cur.fetchall()
 
 diblock = row[0]
 print "ROW IS " print row More...
 
 dcm = row[1]
 
 prt = row[2]
 

Variable Documentation

geo2elec.conn = psycopg2.connect("dbname=nova_hardware host=ifdbprod.fnal.gov user=nova_reader port=5432")

Definition at line 6 of file geo2elec.py.

geo2elec.cur = conn.cursor()

Definition at line 11 of file geo2elec.py.

geo2elec.dcm = row[1]

Definition at line 32 of file geo2elec.py.

geo2elec.diblock = row[0]

print "ROW IS " print row

Definition at line 31 of file geo2elec.py.

Referenced by comi::DataCheck.analyze(), comi::FEBFlash.analyze(), calib::MuonTrackHits.beginJob(), dprf::ChannelPlots.beginRun(), calib::DriftResponseCalc.beginRun(), calib::PCHitsList.CellHitToPCHit(), nova::dbi::RunHistory::DCM.DCM(), om::PlotClickHandler.DCMutcInfo(), DCSPlotMaker(), novaddt::ContainedSlice.defineContainmentRegion(), daqchannelmap::NearDetDAQChannelMap.encodeDChan(), daqchannelmap::FarDetDAQChannelMap.encodeDChan(), daqchannelmap::TestBeamDAQChannelMap.encodeDChan(), daqchannelmap::NearDetDAQChannelMap.encodeLChan(), daqchannelmap::FarDetDAQChannelMap.encodeLChan(), daqchannelmap::TestBeamDAQChannelMap.encodeLChan(), om::PlotClickHandler.FEButcInfo(), mcdatadaq::DAQSimulator.fillMicroSlices(), DataCheck::HardwareStatusCheck.filter(), calib::MuonTrackHits.filter(), calib::DriftResponseCalc.GetChanID(), daqchannelmap::NearDetDAQChannelMap.getDiBlockType(), rawp::CheckDAQChannelMap.getLimits(), mcdatadaq::DAQSimulator.getNanoSliceOrder(), daqchannelmap::DAQChannelMapBaseOLD.getNumberOfPlanesBeforeDiblock(), daqchannelmap::DAQChannelMapBaseOLD.getNumberOfPlanesInDiblock(), daqchannelmap::DAQChannelMapOLD.getPlaneViewOffline(), DataCheck::HardwareStatusCheck.globalDCMNumber(), om::PlotClickHandler.HwDCMHistogramInfo(), om::PlotClickHandler.HwDetDoubleClick(), om::PlotClickHandler.HwDetHistogramInfo(), om::PlotClickHandler.HwPCHistogramInfoX(), om::PlotClickHandler.HwPCHistogramInfoY(), calib::AbsCache.LoadFromVldDatabase(), nova::dbi::RunHistory.LoadHardwareInfo(), mcdatadaq::NanoSliceOrder.print(), mcdatadaq::DAQSimulator.print(), daqchannelmap::DAQChannelMapOLD.print(), daqchannelmap::DAQChannelMapOLD.printOffline(), novaddt::OnlineUnpack.ProcessRawEvent_(), daq2raw::OnlineUnpack.ProcessRawEvent_(), evd::RawDataDrawer.RawDigitHardware(), calib::TimingCache.ReadEpochsFromCSV(), calib::DriftCorrection.respondToCloseOutputFiles(), RunCalibration(), DAQChannelMapTests.testBasicChannelGetOnline(), DAQChannelMapTests.testDiBlockLookups(), DAQChannelMapTests.testPlaneLookupsOffline(), DAQChannelMapTests.testViewLookups(), DAQChannelMapTests.testViewLookupsOffline(), and rawp::CheckDAQChannelMap.Update().

geo2elec.prt = row[2]

Definition at line 33 of file geo2elec.py.

Referenced by diffapdhv(), and plotapdhv().

geo2elec.rows = cur.fetchall()

Definition at line 26 of file geo2elec.py.

string geo2elec.SQL = "select CAST(btrim(location1, 'DIBLK:') AS INT), CAST(btrim(position1, 'DCM:') AS INT), CAST(btrim(port1,'PRT:') AS INT) from public.feb_comm_cables where location2='BLK:{}' and position2='PLN:{}' and port2='POS:{}';"

Definition at line 20 of file geo2elec.py.