Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
3a508de3
Commit
3a508de3
authored
8 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- fixed include for fabs
parent
4a084160
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDSegmentation/src/TiledLayerGridXY.cpp
+3
-2
3 additions, 2 deletions
DDSegmentation/src/TiledLayerGridXY.cpp
with
3 additions
and
2 deletions
DDSegmentation/src/TiledLayerGridXY.cpp
+
3
−
2
View file @
3a508de3
...
...
@@ -11,6 +11,7 @@
#include
<algorithm>
#include
<sstream>
#include
<stdexcept>
#include
<cmath>
namespace
DD4hep
{
namespace
DDSegmentation
{
...
...
@@ -58,11 +59,11 @@ Vector3D TiledLayerGridXY::position(const CellID& cID) const {
// check the integer cell boundary in x,
if
(
(
_layerDimX
.
size
()
!=
0
&&
_layerIndex
<=
_layerDimX
.
size
()
)
&&
(
_fractCellSizeXPerLayer
.
size
()
!=
0
&&
_layerIndex
<=
_fractCellSizeXPerLayer
.
size
()
)
&&
(
fabs
(
cellPosition
.
X
)
>
(
_layerDimX
.
at
(
_layerIndex
-
1
)
-
_fractCellSizeXPerLayer
.
at
(
_layerIndex
-
1
)
))
&&
(
std
::
fabs
(
cellPosition
.
X
)
>
(
_layerDimX
.
at
(
_layerIndex
-
1
)
-
_fractCellSizeXPerLayer
.
at
(
_layerIndex
-
1
)
))
)
{
// and correct the fraction cell center position in x.
cellPosition
.
X
=
cellPosition
.
X
/
fabs
(
cellPosition
.
X
)
cellPosition
.
X
=
cellPosition
.
X
/
std
::
fabs
(
cellPosition
.
X
)
*
(
_layerDimX
.
at
(
_layerIndex
-
1
)
-
_fractCellSizeXPerLayer
.
at
(
_layerIndex
-
1
)
/
2.0
)
;
}
}
else
{
...
...
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