Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Davide Di Croce
athena
Commits
2ce51671
Commit
2ce51671
authored
1 year ago
by
Riccardo Maria Bianchi
Committed by
Melissa Yexley
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Complete the filter on DetectorManagers
parent
a75f6b56
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DetectorDescription/GeoModel/GeoModelStandalone/GeoExporter/src/GeoExporter.cxx
+32
-4
32 additions, 4 deletions
...oModel/GeoModelStandalone/GeoExporter/src/GeoExporter.cxx
with
32 additions
and
4 deletions
DetectorDescription/GeoModel/GeoModelStandalone/GeoExporter/src/GeoExporter.cxx
+
32
−
4
View file @
2ce51671
...
...
@@ -214,28 +214,49 @@ if ( !(user_detmanagerslist.empty()) ) {
if
(
!
(
managersList
.
empty
())
)
{
for
(
auto
const
&
mm
:
managersList
)
{
// get the DetectorManager
const
GeoVDetectorManager
*
manager
=
theExpt
->
getManager
(
mm
);
// get the name of the DetectorManager
std
::
string
detManName
=
manager
->
getName
();
std
::
cout
<<
"
\n\t
DetectorManager: "
<<
detManName
<<
std
::
endl
;
// get the DetManager's TreeTops
unsigned
int
nTreetops
=
manager
->
getNumTreeTops
();
std
::
cout
<<
mm
<<
"
\t
- n.Treetops: "
<<
nTreetops
<<
std
::
endl
;
if
(
nTreetops
>
0
&&
user_detmanagerslist
.
contains
(
QString
::
fromStdString
(
detManName
))
)
{
// // Add a dummy PhysVol to contain the TreeTops of the DetectorManager
// volTop->add(createTheWorld());
for
(
unsigned
int
i
=
0
;
i
<
nTreetops
;
++
i
)
{
PVConstLink
treetop
(
manager
->
getTreeTop
(
i
));
// mainTopPhysVol->add( const_cast<GeoVPhysVol*>(&(*treetop)));
// get treetop's volume
const
GeoVPhysVol
*
vol
=
&
(
*
treetop
);
volTop
->
add
(
const_cast
<
GeoVPhysVol
*>
(
vol
));
// get volume's transform
// NOTE: we use getDefX() to get the transform without any alignment
GeoTransform
*
volXf
=
new
GeoTransform
(
vol
->
getDefX
()
);
// get volume's logvol's name
std
::
string
volName
=
vol
->
getLogVol
()
->
getName
();
std
::
cout
<<
"
\t\t
treetop: "
<<
volName
<<
std
::
endl
;
// Add to the main volume a GeoNameTag with the name of the DetectorManager
volTop
->
add
(
new
GeoNameTag
(
detManName
));
// add to the main PhysVol
volTop
->
add
(
volXf
);
volTop
->
add
(
const_cast
<
GeoVPhysVol
*>
(
vol
));
// DEBUG: dive into the Treetop
if
(
"BeamPipe"
==
detManName
)
{
GeoVolumeCursor
av
(
treetop
);
while
(
!
av
.
atEnd
())
{
std
::
cout
<<
i
<<
" - name: "
<<
av
.
getName
()
<<
"
\n
"
;
std
::
cout
<<
"
\t\t
treetop n."
<<
i
<<
" -
child
name: "
<<
av
.
getName
()
<<
"
\n
"
;
av
.
next
();
// increment volume cursor.
}
// end while
}
...
...
@@ -250,12 +271,19 @@ if ( !(user_detmanagerslist.empty()) ) {
while
(
!
av
.
atEnd
())
{
std
::
string
volname
=
av
.
getName
();
std
::
cout
<<
"
\t
*
volume name
:"
<<
volname
<<
std
::
endl
;
std
::
cout
<<
"
\t
*
relevant NameTag
:"
<<
volname
<<
std
::
endl
;
av
.
next
();
// increment volume cursor.
}
// }
// GeoVolumeCursor av2(volTop);
// while (!av2.atEnd()) {
// std::cout << "\t\t- child name: " << av2.getName() << "\n";
// av2.next(); // increment volume cursor.
// }
std
::
cout
<<
"Creating the SQLite DB file..."
<<
std
::
endl
;
QString
fileName
=
"geometry"
;
if
(
!
(
user_detdescrtag
.
isEmpty
())
)
{
...
...
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