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
910c6b7a
Commit
910c6b7a
authored
9 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
updated doxygen for detector data structs and usage in convertToGear)
parent
a32f91d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DDRec/include/DDRec/DetectorData.h
+30
-18
30 additions, 18 deletions
DDRec/include/DDRec/DetectorData.h
DDRec/src/convertToGear.cc
+1
-1
1 addition, 1 deletion
DDRec/src/convertToGear.cc
with
31 additions
and
19 deletions
DDRec/include/DDRec/DetectorData.h
+
30
−
18
View file @
910c6b7a
...
@@ -28,7 +28,7 @@ namespace DD4hep {
...
@@ -28,7 +28,7 @@ namespace DD4hep {
/** Simple data structure with key parameters for
/** Simple data structure with key parameters for
* reconstruction of a cylindrical TPC with a pad plane that
* reconstruction of a cylindrical TPC with a pad plane that
* is symmetrically populated with
one
size pads.
* is symmetrically populated with
fixed
size
d
pads.
* ( Can be used to instantiate a gear::TPCParameter object
* ( Can be used to instantiate a gear::TPCParameter object
* with a FixedPadSizeDiskLayout )
* with a FixedPadSizeDiskLayout )
*
*
...
@@ -37,17 +37,29 @@ namespace DD4hep {
...
@@ -37,17 +37,29 @@ namespace DD4hep {
* @version $Id: $
* @version $Id: $
*/
*/
struct
FixedPadSizeTPCStruct
{
struct
FixedPadSizeTPCStruct
{
/// half length of the TPC
double
zHalf
;
double
zHalf
;
/// inner radius of the TPC
double
rMin
;
double
rMin
;
/// outer radius of the TPC
double
rMax
;
double
rMax
;
/// driftLength in z (half length of active volume)
double
driftLength
;
double
driftLength
;
/// inner r of active volume
double
rMinReadout
;
double
rMinReadout
;
/// outer r of active volume
double
rMaxReadout
;
double
rMaxReadout
;
/// thickness of the inner wall (field cage)
double
innerWallThickness
;
double
innerWallThickness
;
/// thickness of the outer wall (field cage)
double
outerWallThickness
;
double
outerWallThickness
;
/// pad height of readout rows
double
padHeight
;
double
padHeight
;
/// fixed pad width ( at middle of row)
double
padWidth
;
double
padWidth
;
/// maximum number of rows
double
maxRow
;
double
maxRow
;
/// gap between pads
double
padGap
;
double
padGap
;
};
};
typedef
StructExtension
<
FixedPadSizeTPCStruct
>
FixedPadSizeTPCData
;
typedef
StructExtension
<
FixedPadSizeTPCStruct
>
FixedPadSizeTPCData
;
...
@@ -259,7 +271,8 @@ namespace DD4hep {
...
@@ -259,7 +271,8 @@ namespace DD4hep {
/** Simple data structure defining a layered calorimeter layout for
/** Simple data structure defining a layered calorimeter layout for
* reconstruction.
* reconstruction. The implicit assumption is that the shape
* of the calorimter in the x-y-plane is a regular polygon.
*
*
* @author F.Gaede, CERN/DESY
* @author F.Gaede, CERN/DESY
* @date Nov, 05 2014
* @date Nov, 05 2014
...
@@ -279,31 +292,30 @@ namespace DD4hep {
...
@@ -279,31 +292,30 @@ namespace DD4hep {
/// extent of the calorimeter in the r-z-plane [ rmin, rmax, zmin, zmax ] in mm.
/// extent of the calorimeter in the r-z-plane [ rmin, rmax, zmin, zmax ] in mm.
double
extent
[
4
]
;
double
extent
[
4
]
;
/** the order of the rotational symmetry at the outside:
/** the order of the rotational symmetry at the outside, e.g.
* 8 for an octagonal barrel calorimeter
* 8 for an octagonal barrel calorimeter.
* 2 for an endcap calorimeter
* 1 for a standalone prototype
* 0 for an idealized cylindrical calorimeter.
*/
*/
int
outer_symmetry
;
int
outer_symmetry
;
/** the order of the rotational symmetry at the inside:
/** the order of the rotational symmetry at the inside, e.g.
* 8 for an octagonal barrel calorimeter
* 4 for an endcap with a rectangular cout out at the inside.
* 2 for an endcap calorimeter
* 1 for a standalone prototype
* 0 for an idealized cylindrical calorimeter.
*/
*/
int
inner_symmetry
;
int
inner_symmetry
;
/** Angle of the experimental hall floor with the inner face closest to it
/** Angle between the normal to the first outer face of the
* inner_phi0=0 corresponds to a face parallel to the floor
* calorimeter and the x-axis, where the first face is defined
* to be the one with the smallest positve angle.
* Example:
* outer_phi0=0 corresponds to the first face beeing vertical and
* thus the bottom face being parallel to the floor for a
* symmetry that is a multiple of 4.
*/
double
outer_phi0
;
/** Same as outer_phi for the first inner face.
*/
*/
double
inner_phi0
;
double
inner_phi0
;
/** Angle of the experimental hall floor with the outer face closest to it
* outer_phi0=0 corresponds to a face parallel to the floor
*/
double
outer_phi0
;
/** Azimuthal angle of the first module in barrel layout
/** Azimuthal angle of the first module in barrel layout
* DEPRECATED! PLEASE POPULATE INNER/OUTER PHI0 INSTEAD
* DEPRECATED! PLEASE POPULATE INNER/OUTER PHI0 INSTEAD
...
...
This diff is collapsed.
Click to expand it.
DDRec/src/convertToGear.cc
+
1
−
1
View file @
910c6b7a
...
@@ -29,7 +29,7 @@ int main(int argc, char** argv ){
...
@@ -29,7 +29,7 @@ int main(int argc, char** argv ){
if
(
argc
<
3
)
{
if
(
argc
<
3
)
{
std
::
cout
<<
" usage: convertToGear plugin compact.xml [gear_file.xml]"
<<
std
::
endl
std
::
cout
<<
" usage: convertToGear plugin compact.xml [gear_file.xml]"
<<
std
::
endl
<<
" plugin: name of a plugin with a signature
\"
long int (LCDD*, int, char**)
\"
\n
"
<<
" plugin: name of a plugin with a signature
\"
long int (LCDD*, int, char**)
\"
\n
"
<<
"
or
\"
default
\"
"
<<
std
::
endl
;
<<
"
e.g. GearForILD (same as 'default'), GearForCLIC, ...
"
<<
std
::
endl
;
exit
(
1
)
;
exit
(
1
)
;
}
}
...
...
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