11 from DataLoader3
import DataLoader, DataQuery
15 queryUrl =
"https://dbdata0vm.fnal.gov:9443/QE/hw/app/SQ/query"
16 print(
"\n Hello! Welcome to DataQuery form ICARUS Hardware Database: \n")
25 geo_loc = dataQuery.query(
"icarus_hardware_dev",
"daq_channels",
'readout_board_id',
26 'channel_id:eq:'+str(ChannelID))
28 Flange_ID = dataQuery.query(
"icarus_hardware_dev",
"readout_boards",
30 'readout_board_id:eq:'+str(geo_loc)[2:-6])
32 geo_loc = dataQuery.query(
"icarus_hardware_dev",
"flanges",
'flange_pos_at_chimney',
33 'flange_id:eq:'+str(Flange_ID)[2:-6])
35 return str(geo_loc)[2:-6]
44 geo_loc = dataQuery.query(
"icarus_hardware_dev",
"pmt_placements",
46 'pmt_id:eq:'+str(pmtid))
48 return str(geo_loc)[2:-6]
52 geo_loc = dataQuery.query(
"icarus_hardware_dev",
"pmt_placements",
54 [
'digitizer_label:eq:'+str(digitizerlabel),
'digitizer_ch_number:eq:'+str(digitizerchannel)])
57 return str(geo_loc)[2:-6]
59 print (PMTChannelIDFromPhysicalPMTPositionID (333))
60 print (PMTChannelIDFromDigitizerLabel (
"EE-BOT-B", 10))
do one_file $F done echo for F in find $TOP name CMakeLists txt print
def PMTChannelIDFromDigitizerLabel
def PMTChannelIDFromPhysicalPMTPositionID