Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eicd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
eicd
Commits
33d6d456
Commit
33d6d456
authored
Aug 23, 2022
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
remove eicd::Vector?f reference
parent
07ec573e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#35827
failed
Aug 23, 2022
Stage: config
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/include/eicd/vector_utils_legacy.h
+20
-20
20 additions, 20 deletions
utils/include/eicd/vector_utils_legacy.h
with
20 additions
and
20 deletions
utils/include/eicd/vector_utils_legacy.h
+
20
−
20
View file @
33d6d456
...
...
@@ -105,61 +105,61 @@ template <class V> double projection(const V& v, const V& v1) {
}
// namespace eicd
inline
e
icd
::
Vector2f
operator
+
(
const
e
icd
::
Vector2f
&
v1
,
const
e
icd
::
Vector2f
&
v2
)
{
using
ValueType
=
decltype
(
eicd
::
vector_x
(
e
icd
::
Vector2f
()));
inline
e
dm4hep
::
Vector2f
operator
+
(
const
e
dm4hep
::
Vector2f
&
v1
,
const
e
dm4hep
::
Vector2f
&
v2
)
{
using
ValueType
=
decltype
(
eicd
::
vector_x
(
e
dm4hep
::
Vector2f
()));
const
ValueType
x
=
eicd
::
vector_x
(
v1
)
+
eicd
::
vector_x
(
v2
);
const
ValueType
y
=
eicd
::
vector_y
(
v1
)
+
eicd
::
vector_y
(
v2
);
return
{
x
,
y
};
}
inline
e
icd
::
Vector3f
operator
+
(
const
e
icd
::
Vector3f
&
v1
,
const
e
icd
::
Vector3f
&
v2
)
{
using
ValueType
=
decltype
(
eicd
::
vector_x
(
e
icd
::
Vector3f
()));
inline
e
dm4hep
::
Vector3f
operator
+
(
const
e
dm4hep
::
Vector3f
&
v1
,
const
e
dm4hep
::
Vector3f
&
v2
)
{
using
ValueType
=
decltype
(
eicd
::
vector_x
(
e
dm4hep
::
Vector3f
()));
const
ValueType
x
=
eicd
::
vector_x
(
v1
)
+
eicd
::
vector_x
(
v2
);
const
ValueType
y
=
eicd
::
vector_y
(
v1
)
+
eicd
::
vector_y
(
v2
);
const
ValueType
z
=
eicd
::
vector_z
(
v1
)
+
eicd
::
vector_z
(
v2
);
return
{
x
,
y
,
z
};
}
inline
double
operator
*
(
const
e
icd
::
Vector2f
&
v1
,
const
e
icd
::
Vector2f
&
v2
)
{
inline
double
operator
*
(
const
e
dm4hep
::
Vector2f
&
v1
,
const
e
dm4hep
::
Vector2f
&
v2
)
{
return
eicd
::
vector_x
(
v1
)
*
eicd
::
vector_x
(
v2
)
+
eicd
::
vector_y
(
v1
)
*
eicd
::
vector_y
(
v2
);
}
inline
double
operator
*
(
const
e
icd
::
Vector3f
&
v1
,
const
e
icd
::
Vector3f
&
v2
)
{
inline
double
operator
*
(
const
e
dm4hep
::
Vector3f
&
v1
,
const
e
dm4hep
::
Vector3f
&
v2
)
{
return
eicd
::
vector_x
(
v1
)
*
eicd
::
vector_x
(
v2
)
+
eicd
::
vector_y
(
v1
)
*
eicd
::
vector_y
(
v2
)
+
eicd
::
vector_z
(
v1
)
*
eicd
::
vector_z
(
v2
);
}
inline
e
icd
::
Vector2f
operator
*
(
const
double
d
,
const
e
icd
::
Vector2f
&
v
)
{
using
ValueType
=
decltype
(
eicd
::
vector_x
(
e
icd
::
Vector2f
()));
inline
e
dm4hep
::
Vector2f
operator
*
(
const
double
d
,
const
e
dm4hep
::
Vector2f
&
v
)
{
using
ValueType
=
decltype
(
eicd
::
vector_x
(
e
dm4hep
::
Vector2f
()));
const
ValueType
x
=
d
*
eicd
::
vector_x
(
v
);
const
ValueType
y
=
d
*
eicd
::
vector_y
(
v
);
return
{
x
,
y
};
}
inline
e
icd
::
Vector3f
operator
*
(
const
double
d
,
const
e
icd
::
Vector3f
&
v
)
{
using
ValueType
=
decltype
(
eicd
::
vector_x
(
e
icd
::
Vector3f
()));
inline
e
dm4hep
::
Vector3f
operator
*
(
const
double
d
,
const
e
dm4hep
::
Vector3f
&
v
)
{
using
ValueType
=
decltype
(
eicd
::
vector_x
(
e
dm4hep
::
Vector3f
()));
const
ValueType
x
=
d
*
eicd
::
vector_x
(
v
);
const
ValueType
y
=
d
*
eicd
::
vector_y
(
v
);
const
ValueType
z
=
d
*
eicd
::
vector_z
(
v
);
return
{
x
,
y
,
z
};
}
inline
e
icd
::
Vector2f
operator
*
(
const
e
icd
::
Vector2f
&
v
,
const
double
d
)
{
inline
e
dm4hep
::
Vector2f
operator
*
(
const
e
dm4hep
::
Vector2f
&
v
,
const
double
d
)
{
return
d
*
v
;
}
inline
e
icd
::
Vector3f
operator
*
(
const
e
icd
::
Vector3f
&
v
,
const
double
d
)
{
inline
e
dm4hep
::
Vector3f
operator
*
(
const
e
dm4hep
::
Vector3f
&
v
,
const
double
d
)
{
return
d
*
v
;
}
inline
e
icd
::
Vector2f
operator
-
(
const
e
icd
::
Vector2f
&
v1
,
const
e
icd
::
Vector2f
&
v2
)
{
inline
e
dm4hep
::
Vector2f
operator
-
(
const
e
dm4hep
::
Vector2f
&
v1
,
const
e
dm4hep
::
Vector2f
&
v2
)
{
return
v1
+
(
-
1.
*
v2
);
}
inline
e
icd
::
Vector3f
operator
-
(
const
e
icd
::
Vector3f
&
v1
,
const
e
icd
::
Vector3f
&
v2
)
{
inline
e
dm4hep
::
Vector3f
operator
-
(
const
e
dm4hep
::
Vector3f
&
v1
,
const
e
dm4hep
::
Vector3f
&
v2
)
{
return
v1
+
(
-
1.
*
v2
);
}
inline
e
icd
::
Vector2f
operator
/
(
const
e
icd
::
Vector2f
&
v
,
const
double
d
)
{
inline
e
dm4hep
::
Vector2f
operator
/
(
const
e
dm4hep
::
Vector2f
&
v
,
const
double
d
)
{
return
(
1.
/
d
)
*
v
;
}
inline
e
icd
::
Vector3f
operator
/
(
const
e
icd
::
Vector3f
&
v
,
const
double
d
)
{
inline
e
dm4hep
::
Vector3f
operator
/
(
const
e
dm4hep
::
Vector3f
&
v
,
const
double
d
)
{
return
(
1.
/
d
)
*
v
;
}
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment