17 return StatusCode::SUCCESS;
25 std::vector<float> edge_scores;
31 std::vector<Ort::Value> gInputTensor;
36 std::vector<float> gOutputData;
37 std::vector<Ort::Value> gOutputTensor;
42 for(
auto&
v : edge_scores) {
46 for (
size_t i = 0;
i < edges.size();
i++) {
47 edges[
i]->setEdgeScore(edge_scores[
i]);
50 return StatusCode::SUCCESS;
55 std::vector<float> gNodeFeatures;
57 for(
const auto& hit :
hits) {
58 std::map<std::string, float> features;
59 features[
"r"] = hit->getR();
60 features[
"phi"] = hit->getPhi();
61 features[
"z"] = hit->getZ();
62 features[
"eta"] = hit->getEta();
63 features[
"cluster_r_1"] = hit->getCluster1R();
64 features[
"cluster_phi_1"] = hit->getCluster1Phi();
65 features[
"cluster_z_1"] = hit->getCluster1Z();
66 features[
"cluster_eta_1"] = hit->getCluster1Eta();
67 features[
"cluster_r_2"] = hit->getCluster2R();
68 features[
"cluster_phi_2"] = hit->getCluster2Phi();
69 features[
"cluster_z_2"] = hit->getCluster2Z();
70 features[
"cluster_eta_2"] = hit->getCluster2Eta();
73 gNodeFeatures.push_back(
83 std::vector<int64_t> rowIndices;
84 std::vector<int64_t> colIndices;
85 std::vector<int64_t> edgesList(edges.size() * 2);
87 for(
const auto& edge : edges) {
88 rowIndices.push_back(edge->getEdgeIndex1());
89 colIndices.push_back(edge->getEdgeIndex2());
92 std::copy(rowIndices.begin(), rowIndices.end(), edgesList.begin());
93 std::copy(colIndices.begin(), colIndices.end(), edgesList.begin() + edges.size());
100 std::vector<float> gEdgeFeatures;
102 for(
const auto& edge : edges) {
103 gEdgeFeatures.push_back(edge->getEdgeDR());
104 gEdgeFeatures.push_back(edge->getEdgeDPhi());
105 gEdgeFeatures.push_back(edge->getEdgeDZ());
106 gEdgeFeatures.push_back(edge->getEdgeDEta());
107 gEdgeFeatures.push_back(edge->getEdgePhiSlope());
108 gEdgeFeatures.push_back(edge->getEdgeRPhiSlope());
111 return gEdgeFeatures;