Class WireOverlap

Class Documentation

class WireOverlap

calculates and stores possible wire intersections

Author
Taritree Wongjirad
Date
Rcs
2020/07/22 16:53

contact: taritree.wongjirad@tufts.edu

Public Static Functions

std::vector<std::vector<int>> getOverlappingWires(int sourceplane, int targetplane, int source_wire)

given a wire on source plane, return set of wires overlapping in the two other planes

Return
nested vector with outer index being the plane {target,other}, the inner vector is a list of wire IDs from each plane
Parameters
  • sourceplane: The index of the source plane. {0:U,1:V,2:Y}
  • targetplane: The index of the target plane. {0:U,1:V,2:Y}
  • source_wire: The index of the wire in the source plane.

Protected Functions

WireOverlap()
virtual ~WireOverlap()

Protected Static Functions

void _build()

determine which wires overlap with one another

Is never called directly. Run once getOverlappingWires is called.

Protected Static Attributes

bool _isbuilt = false

flag indicating information in class has been build

std::vector<std::vector<int>> _wire_targetoverlap

[6] refers to flow direction, outer vector is source plane, inner vector is list of target wire numbers

std::vector<std::vector<int>> _wire_otheroverlap

[6] refers to flow direction, outer vector is source plane, outer vector is list of target wire numbers

std::map<std::pair<int, int>, int> _planeflow2mapindex

map from (source,target) plane to flow index for _wire_targetoverlap[X] and _wire_otheroverlap[X]