Skip to content

Commit

Permalink
Merge branch 'main' into track_hits
Browse files Browse the repository at this point in the history
  • Loading branch information
ShujieL authored Jan 23, 2024
2 parents 4e62ab2 + 9fd0a3f commit 8290bb5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions edm4eic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,18 @@ components:
declaration: "
Cov6f() : covariance{} {}\n
Cov6f(std::array<float, 21> vcov) : covariance{vcov}{}\n
float& operator()(unsigned i, unsigned j) {\n
if(i > j) {\n
std::swap(i, j);\n
}\n
return covariance[i + 1 + (j + 1) * (j) / 2 - 1];\n
}\n
float operator()(unsigned i, unsigned j) const {\n
if(i > j) {\n
std::swap(i, j);\n
}\n
return covariance[i + 1 + (j + 1) * (j) / 2 - 1];\n
}\n
float& operator()(unsigned i, unsigned j) {\n
if(i > j) {\n
std::swap(i, j);\n
}\n
return covariance[i + 1 + (j + 1) * (j) / 2 - 1];\n
}\n
"

## A point along a track
Expand Down

0 comments on commit 8290bb5

Please sign in to comment.