Open bdorney opened 5 years ago
The channel to strip mapping is not presently correct for v3 electronics, and in many cases it's hard coded to v2b mapping.
The channel-to-strip mapping should stop defaulting to the v2b mapping but should be determined in the following way:
--extChanMapping
To accomplish this I would propose the getMapping(...) function is adapted to use the db interface tools to determine the mapping.
This may require adding a function to extract the channel mapping from the DB and then getMapping(...) to use this function.
Here the mapping is v3 defaulted. But it is hard coded for HV3b_V1, V2, or V4 hybrids:
https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/78c88741fbe292f37476c79ffad108a137c1aa27/anaSBitReadout.py#L97-L102
Here an external mapping file can be provided but otherwise it will default to the v2b mapping:
https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/78c88741fbe292f37476c79ffad108a137c1aa27/anaUltraScurve.py#L293-L298
The mapping is defaulting to the v2b mapping:
https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/78c88741fbe292f37476c79ffad108a137c1aa27/anaUltraThreshold.py#L65-L70
The channel to strip mapping is not presented correctly for v3 detectors.
Brief summary of issue
The channel to strip mapping is not presently correct for v3 electronics, and in many cases it's hard coded to v2b mapping.
Types of issue
Expected Behavior
The channel-to-strip mapping should stop defaulting to the v2b mapping but should be determined in the following way:
--extChanMapping
),--extChanMapping
.To accomplish this I would propose the getMapping(...) function is adapted to use the db interface tools to determine the mapping.
This may require adding a function to extract the channel mapping from the DB and then getMapping(...) to use this function.
Current Behavior
anaSBitReadout.py
Here the mapping is v3 defaulted. But it is hard coded for HV3b_V1, V2, or V4 hybrids:
https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/78c88741fbe292f37476c79ffad108a137c1aa27/anaSBitReadout.py#L97-L102
anaUltraScurve.py
Here an external mapping file can be provided but otherwise it will default to the v2b mapping:
https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/78c88741fbe292f37476c79ffad108a137c1aa27/anaUltraScurve.py#L293-L298
anaUltraThreshold.py
The mapping is defaulting to the v2b mapping:
https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/78c88741fbe292f37476c79ffad108a137c1aa27/anaUltraThreshold.py#L65-L70
Context (for feature requests)
The channel to strip mapping is not presented correctly for v3 detectors.
Your Environment