We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b2ca6a commit 98ecb71Copy full SHA for 98ecb71
src/ReadoutEquipmentRORC.cxx
@@ -10,6 +10,7 @@
10
// or submit itself to any jurisdiction.
11
12
#include <Common/Timer.h>
13
+#include <ReadoutCard/CardFinder.h>
14
#include <ReadoutCard/ChannelFactory.h>
15
#include <ReadoutCard/DmaChannelInterface.h>
16
#include <ReadoutCard/Exception.h>
@@ -515,3 +516,12 @@ void ReadoutEquipmentRORC::finalCounters()
515
516
}
517
518
519
+int getPreferredROCNumaNode(ConfigFile& cfg, std::string name) {
520
+ try {
521
+ std::string cardId = cfg.getValue<std::string>(name + ".cardId");
522
+ return AliceO2::roc::findCard(cardId).numaNode;
523
+ }
524
+ catch (...) {
525
526
+ return -1;
527
+}
0 commit comments