All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
HWChannelMapping Namespace Reference

Functions

def physical_loc
 
def PMTChannelIDFromPhysicalPMTPositionID
 
def PMTChannelIDFromDigitizerLabel
 

Variables

string queryUrl = "https://dbdata0vm.fnal.gov:9443/QE/hw/app/SQ/query"
 
tuple dataQuery = DataQuery(queryUrl)
 

Function Documentation

def HWChannelMapping.physical_loc (   ChannelID)

Definition at line 23 of file HWChannelMapping.py.

23 
24 def physical_loc (ChannelID):
25 
26  geo_loc = dataQuery.query("icarus_hardware_dev", "daq_channels", 'readout_board_id',
27  'channel_id:eq:'+str(ChannelID))
28 
29  Flange_ID = dataQuery.query("icarus_hardware_dev", "readout_boards",
30  'flange_id',
31  'readout_board_id:eq:'+str(geo_loc)[2:-6])
32 
33  geo_loc = dataQuery.query("icarus_hardware_dev", "flanges", 'flange_pos_at_chimney',
34  'flange_id:eq:'+str(Flange_ID)[2:-6])
35 
36  return str(geo_loc)[2:-6]
37 
38 
# for example..
def HWChannelMapping.PMTChannelIDFromDigitizerLabel (   digitizerlabel,
  digitizerchannel 
)

Definition at line 51 of file HWChannelMapping.py.

51 
52 def PMTChannelIDFromDigitizerLabel (digitizerlabel, digitizerchannel):
53  geo_loc = dataQuery.query("icarus_hardware_dev", "pmt_placements",
54  'channel_id',
55  ['digitizer_label:eq:'+str(digitizerlabel), 'digitizer_ch_number:eq:'+str(digitizerchannel)])
56 
57 
58  return str(geo_loc)[2:-6]
def PMTChannelIDFromDigitizerLabel
def HWChannelMapping.PMTChannelIDFromPhysicalPMTPositionID (   pmtid)

Definition at line 43 of file HWChannelMapping.py.

43 
45  geo_loc = dataQuery.query("icarus_hardware_dev", "pmt_placements",
46  'channel_id',
47  'pmt_id:eq:'+str(pmtid))
48 
49  return str(geo_loc)[2:-6]
50 
# Mapping between PMTChannelID (Larsoft) From Digitizer Label and Digitizer Channel
def PMTChannelIDFromPhysicalPMTPositionID

Variable Documentation

tuple HWChannelMapping.dataQuery = DataQuery(queryUrl)

Definition at line 20 of file HWChannelMapping.py.

string HWChannelMapping.queryUrl = "https://dbdata0vm.fnal.gov:9443/QE/hw/app/SQ/query"

Definition at line 15 of file HWChannelMapping.py.