Functions | Variables
wirecell.util.wires.dune Namespace Reference

Functions

def flatten_cclsm (mat=chip_channel_layer_spot_matrix)
 

Variables

 chip_channel_layer_spot_matrix
 
 ApaFaceParams = namedtuple("ApaFaceParams", ["nlayers", "nboards"]);
 
 ApaBoardParams = namedtuple("ApaBoardParams", ["nchips", "nchanperchip"])
 
 ApaDaqParams = namedtuple("ApaDaqParams", ["nwibs", "nconnperwib"])
 
 ApaParams = namedtuple("ApaParams", ["nfaces", "face", "board", "daq"])
 
 default_apa_params
 

Detailed Description

This module generates a DUNE connectivity graph.

Function Documentation

def wirecell.util.wires.dune.flatten_cclsm (   mat = chip_channel_layer_spot_matrix)
Flatten an ASIC channel X number matrix to a dictionary keyed by
(plane letter, local wire attachment number (1-48 or 1-40).  Value
is a tuple (ichip, ich) with ichip:{1-8} and ich:{1-16}

Definition at line 48 of file dune.py.

48 def flatten_cclsm(mat = chip_channel_layer_spot_matrix):
49  '''
50  Flatten an ASIC channel X number matrix to a dictionary keyed by
51  (plane letter, local wire attachment number (1-48 or 1-40). Value
52  is a tuple (ichip, ich) with ichip:{1-8} and ich:{1-16}
53  '''
54  ret = dict()
55  for ichip, row in enumerate(mat):
56  for ich, cell in enumerate(row):
57  cell = tuple(cell)
58  ret[cell] = (ichip+1, ich+1)
59  return ret
60 
61 
def flatten_cclsm(mat=chip_channel_layer_spot_matrix)
Definition: dune.py:48
auto enumerate(Iterables &&...iterables)
Range-for loop helper tracking the number of iteration.
Definition: enumerate.h:69

Variable Documentation

wirecell.util.wires.dune.ApaBoardParams = namedtuple("ApaBoardParams", ["nchips", "nchanperchip"])

Definition at line 63 of file dune.py.

wirecell.util.wires.dune.ApaDaqParams = namedtuple("ApaDaqParams", ["nwibs", "nconnperwib"])

Definition at line 64 of file dune.py.

wirecell.util.wires.dune.ApaFaceParams = namedtuple("ApaFaceParams", ["nlayers", "nboards"]);

Definition at line 62 of file dune.py.

wirecell.util.wires.dune.ApaParams = namedtuple("ApaParams", ["nfaces", "face", "board", "daq"])

Definition at line 65 of file dune.py.

wirecell.util.wires.dune.chip_channel_layer_spot_matrix
Initial value:
1 = numpy.array([
2  [('u', 19), ('u', 17), ('u', 15), ('u', 13), ('u', 11), ('v', 19),
3  ('v', 17), ('v', 15), ('v', 13), ('v', 11), ('w', 23), ('w', 21),
4  ('w', 19), ('w', 17), ('w', 15), ('w', 13)],
5  [('u', 9), ('u', 7), ('u', 5), ('u', 3), ('u', 1), ('v', 9),
6  ('v', 7), ('v', 5), ('v', 3), ('v', 1), ('w', 11), ('w', 9),
7  ('w', 7), ('w', 5), ('w', 3), ('w', 1)],
8  [('w', 14), ('w', 16), ('w', 18), ('w', 20), ('w', 22), ('w', 24),
9  ('v', 12), ('v', 14), ('v', 16), ('v', 18), ('v', 20), ('u', 12),
10  ('u', 14), ('u', 16), ('u', 18), ('u', 20)],
11  [('w', 2), ('w', 4), ('w', 6), ('w', 8), ('w', 10), ('w', 12),
12  ('v', 2), ('v', 4), ('v', 6), ('v', 8), ('v', 10), ('u', 2),
13  ('u', 4), ('u', 6), ('u', 8), ('u', 10)],
14  [('u', 29), ('u', 27), ('u', 25), ('u', 23), ('u', 21), ('v', 29),
15  ('v', 27), ('v', 25), ('v', 23), ('v', 21), ('w', 35), ('w', 33),
16  ('w', 31), ('w', 29), ('w', 27), ('w', 25)],
17  [('u', 39), ('u', 37), ('u', 35), ('u', 33), ('u', 31), ('v', 39),
18  ('v', 37), ('v', 35), ('v', 33), ('v', 31), ('w', 47), ('w', 45),
19  ('w', 43), ('w', 41), ('w', 39), ('w', 37)],
20  [('w', 26), ('w', 28), ('w', 30), ('w', 32), ('w', 34), ('w', 36),
21  ('v', 22), ('v', 24), ('v', 26), ('v', 28), ('v', 30), ('u', 22),
22  ('u', 24), ('u', 26), ('u', 28), ('u', 30)],
23  [('w', 38), ('w', 40), ('w', 42), ('w', 44), ('w', 46), ('w', 48),
24  ('v', 32), ('v', 34), ('v', 36), ('v', 38), ('v', 40), ('u', 32),
25  ('u', 34), ('u', 36), ('u', 38), ('u', 40)]], dtype=object)

Definition at line 22 of file dune.py.

wirecell.util.wires.dune.default_apa_params
Initial value:
2  nfaces = 2,
3  face = ApaFaceParams(3, 10),
4  board = ApaBoardParams(8, 16),
5  daq = ApaDaqParams(5, 4)
6 )

Definition at line 67 of file dune.py.