Closed bdorney closed 6 years ago
Since if a key is set in an rpc request and is not used nothing bad happens. However for general maintenance the above branches would need to be modified.
To avoid a person feeling as though they "wasted" time working on something, I would caution against making any "maintenance" changes on the listed branches
To avoid a person feeling as though they "wasted" time working on something, I would caution against making any "maintenance" changes on the listed branches
At some point I thought we where going to have a copy/paste into the appropriate HwManager
class in cmsgemos
. But yes I see the point, upstream changes don't need to be corrected in those listed branches.
Closed by #50
Brief summary of issue
We can reduce complexity by removing the rpc request key
ohVfatMaskArray
in several functions invfat3.h/cpp
andcalibration_routines.h/cpp
and anywhere else it shows up, you can find occurrences via:Types of issue
Note this would not necessarily be a breaking change for following branches:
xhal::legacyPreBoost
,cmsgemos::generic-amc-release-v3-short-term-rpc
, andvfatqc::rpc-playground
.Since if a key is set in an rpc request and is not used nothing bad happens. However for general maintenance the above branches would need to be modified.
Expected Behavior
Instead in each function where
ohVfatMaskArray
is needed, it could be dropped and replaced withgetOHVFATMaskLocal(...)
:https://github.com/cms-gem-daq-project/ctp7_modules/blob/a87d951df725e3477ae6f13fd8f1aeb7480c150d/src/amc.cpp#L445-L456
And then the function depicted under
Current Behavior
below would become:Thus reducing complexity.
Current Behavior
Currently the
ohVfatMaskArray
is sent as a key in the RPC message. e.g.:https://github.com/cms-gem-daq-project/ctp7_modules/blob/a87d951df725e3477ae6f13fd8f1aeb7480c150d/src/vfat3.cpp#L111-L125
This occurs in several RPC functions. It could be dropped entirely
Context (for feature requests)
One less "fiddly" bit a developer has to set; tool for automatic discovery exists, might as well use it.
Most importantly in the calibration suite it would reduce the number of rpc messages that need to be sent improving speed of some routines.
Also it's a simple fix a new comer could do.