You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The numModulesX and numModulesY parameters from pimegaDetectorConfig aren't configured in the iocsh command definition, so they aren't passed to the registered function.
While the command can be fixed, we'd suggest having information about the geometric organization of detectors supplied by pimega-api, instead of having to pass them to the driver configuration function.
The text was updated successfully, but these errors were encountered:
Thanks for pointing that out! What do you think about we, at the moment, implement the fix in configpimegaDetectorCallFunc()?
we'd suggest having information about the geometric organization of detectors supplied by pimega-api
I think this is a good idea, but we'll need some time to evaluate the necessary changes in the pimega-api side to implement this refactoring, which is not a high priority at the moment.
We thought about adding two new members to the pimega struct, something like num_modules_x and ...y. It could then be set in pimega_new(), just like other variables (max_num_modules, master_module, etc).
maxSizeX/maxSizeY could also be provided by pimega-api.
That's a little less trivial, though still a good idea. The maxSize values have to be passed to the underlying ADDriver constructor, so they can't be accessible only after pimega_new has been called in the pimega driver constructor. Since the detector model is a parameter, we could have functions like int pimega_max_size_{x,y}(int detector_model);, which could be used without requiring an initialized pimega_t object.
The
numModulesX
andnumModulesY
parameters frompimegaDetectorConfig
aren't configured in the iocsh command definition, so they aren't passed to the registered function.ADPimega/pimegaApp/src/pimegaDetector.cpp
Lines 1240 to 1260 in 39b4354
ADPimega/pimegaApp/src/pimegaDetector.cpp
Lines 2759 to 2784 in 39b4354
While the command can be fixed, we'd suggest having information about the geometric organization of detectors supplied by
pimega-api
, instead of having to pass them to the driver configuration function.The text was updated successfully, but these errors were encountered: