Skip to main content

get_hid_vid_maps

Function get_hid_vid_maps 

Source
pub fn get_hid_vid_maps() -> Option<(HashMap<u32, u64>, HashMap<u32, u64>)>
Expand description

Map the detector ids (“hardware” ids) to volume ids as used in the simulation

Get the map first and then query it

m = gondola.db.get_hid_vid_maps() 
print (m[0][160]) # volume id for paddle 160

§Returns:

  • tuple (dict,dict) : Two maps, the first for the tof, the second for the tracker