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
b55287b1
Commit
b55287b1
authored
8 years ago
by
Markus Frank
Browse files
Options
Downloads
Patches
Plain Diff
Add more segmentation handle implementations
parent
e9aa54dd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
DDCore/include/DD4hep/CartesianGridXY.h
+4
-1
4 additions, 1 deletion
DDCore/include/DD4hep/CartesianGridXY.h
DDCore/src/CartesianGridXY.cpp
+3
-8
3 additions, 8 deletions
DDCore/src/CartesianGridXY.cpp
DDCore/src/Segmentations.cpp
+2
-1
2 additions, 1 deletion
DDCore/src/Segmentations.cpp
with
9 additions
and
10 deletions
DDCore/include/DD4hep/CartesianGridXY.h
+
4
−
1
View file @
b55287b1
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#define DD4HEP_DDCORE_CARTESIANGRIDXY_H 1
#define DD4HEP_DDCORE_CARTESIANGRIDXY_H 1
// Framework include files
// Framework include files
#include
"DD4hep/
Segmentation
s.h"
#include
"DD4hep/
Object
s.h"
/// Namespace for the AIDA detector description toolkit
/// Namespace for the AIDA detector description toolkit
namespace
DD4hep
{
namespace
DD4hep
{
...
@@ -26,6 +26,9 @@ namespace DD4hep {
...
@@ -26,6 +26,9 @@ namespace DD4hep {
/// Namespace for the geometry part of the AIDA detector description toolkit
/// Namespace for the geometry part of the AIDA detector description toolkit
namespace
Geometry
{
namespace
Geometry
{
// Forward declarations
class
Segmentation
;
/// Implementation class for the grid XY segmentation.
/// Implementation class for the grid XY segmentation.
/**
/**
* \author M.Frank
* \author M.Frank
...
...
This diff is collapsed.
Click to expand it.
DDCore/src/CartesianGridXY.cpp
+
3
−
8
View file @
b55287b1
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
//==========================================================================
//==========================================================================
// Framework include files
// Framework include files
#include
"DD4hep/Handle.inl"
#include
"DD4hep/Segmentations.h"
#include
"DD4hep/Segmentations.h"
#include
"DD4hep/CartesianGridXY.h"
#include
"DD4hep/CartesianGridXY.h"
#include
"DDSegmentation/CartesianGridXY.h"
#include
"DDSegmentation/CartesianGridXY.h"
...
@@ -20,12 +19,8 @@
...
@@ -20,12 +19,8 @@
// C/C++ include files
// C/C++ include files
using
namespace
std
;
using
namespace
std
;
using
namespace
DD4hep
;
using
namespace
DD4hep
::
Geometry
;
using
namespace
DD4hep
::
Geometry
;
/// Instantiate handle functions
DD4HEP_INSTANTIATE_HANDLE_UNNAMED
(
CartesianGridXY
::
Object
);
/// Copy Constructor from segmentation base object
/// Copy Constructor from segmentation base object
CartesianGridXY
::
CartesianGridXY
(
const
Segmentation
&
e
)
:
Handle
<
Object
>
()
CartesianGridXY
::
CartesianGridXY
(
const
Segmentation
&
e
)
:
Handle
<
Object
>
()
{
{
...
@@ -38,9 +33,9 @@ Position CartesianGridXY::position(const CellID& id) const {
...
@@ -38,9 +33,9 @@ Position CartesianGridXY::position(const CellID& id) const {
}
}
/// determine the cell ID based on the position
/// determine the cell ID based on the position
CellID
CartesianGridXY
::
cellID
(
const
Position
&
local
,
DD4hep
::
CellID
CartesianGridXY
::
cellID
(
const
Position
&
local
,
const
Position
&
global
,
const
Position
&
global
,
const
VolumeID
&
volID
)
const
const
VolumeID
&
volID
)
const
{
{
return
access
()
->
cellID
(
local
,
global
,
volID
);
return
access
()
->
cellID
(
local
,
global
,
volID
);
}
}
...
...
This diff is collapsed.
Click to expand it.
DDCore/src/Segmentations.cpp
+
2
−
1
View file @
b55287b1
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
// Framework include files
// Framework include files
#include
"DD4hep/Segmentations.h"
#include
"DD4hep/Segmentations.h"
#include
"DD4hep/InstanceCount.h"
#include
"DD4hep/InstanceCount.h"
#include
"DD4hep/Handle.inl"
#include
"DD4hep/Printout.h"
#include
"DD4hep/Printout.h"
#include
"DD4hep/Handle.inl"
// C/C++ include files
// C/C++ include files
#include
<iostream>
#include
<iostream>
...
@@ -172,6 +172,7 @@ namespace DD4hep {
...
@@ -172,6 +172,7 @@ namespace DD4hep {
}
/* End namespace DD4hep */
}
/* End namespace DD4hep */
#define IMPLEMENT_SEGMENTATION_HANDLE(X) \
#define IMPLEMENT_SEGMENTATION_HANDLE(X) \
DD4HEP_INSTANTIATE_HANDLE_UNNAMED(DDSegmentation::X); \
namespace DD4hep { namespace Geometry { \
namespace DD4hep { namespace Geometry { \
template DDSegmentation::X* \
template DDSegmentation::X* \
Segmentation::get<DDSegmentation::X>(const Object* obj); }}
Segmentation::get<DDSegmentation::X>(const Object* obj); }}
...
...
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