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
e5681843
Commit
e5681843
authored
7 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix compiler error
parent
6be5ede5
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
examples/DDDB/src/plugins/DDDBExecutor.cpp
+13
-14
13 additions, 14 deletions
examples/DDDB/src/plugins/DDDBExecutor.cpp
with
13 additions
and
14 deletions
examples/DDDB/src/plugins/DDDBExecutor.cpp
+
13
−
14
View file @
e5681843
...
@@ -165,18 +165,21 @@ static long load_xml_dddb(Detector& description, int argc, char** argv) {
...
@@ -165,18 +165,21 @@ static long load_xml_dddb(Detector& description, int argc, char** argv) {
Path
path
=
sys_id
;
Path
path
=
sys_id
;
sys_id
=
path
.
normalize
().
c_str
();
sys_id
=
path
.
normalize
().
c_str
();
xml
::
UriReader
*
resolver
=
0
;
if
(
!
loader_name
.
empty
()
)
{
DDDBReader
*
rdr
=
(
DDDBReader
*
)
dd4hep
::
PluginService
::
Create
<
void
*>
(
loader_name
,(
const
char
*
)
0
);
rdr
->
setMatch
(
match
);
rdr
->
setDirectory
(
path
.
parent_path
().
c_str
());
if
(
iov_start
>=
0
&&
iov_end
>=
0
)
{
rdr
->
property
(
"ValidityLower"
).
set
(
iov_start
);
rdr
->
property
(
"ValidityUpper"
).
set
(
iov_end
);
}
resolver
=
rdr
;
}
/// Install helper
/// Install helper
{
{
description
.
apply
(
"DDDB_InstallHelper"
,
0
,
0
);
const
void
*
args
[]
=
{
resolver
,
0
};
}
description
.
apply
(
"DDDB_InstallHelper"
,
1
,
(
char
**
)
args
);
DDDBHelper
*
helper
=
description
.
extension
<
DDDBHelper
>
();
DDDBReader
*
resolver
=
0
;
if
(
!
loader_name
.
empty
()
)
{
resolver
=
(
DDDBReader
*
)
dd4hep
::
PluginService
::
Create
<
void
*>
(
loader_name
,(
const
char
*
)
0
);
resolver
->
setMatch
(
match
);
resolver
->
setDirectory
(
path
.
parent_path
().
c_str
());
helper
->
setXmlReader
(
resolver
);
}
}
/// Execute config plugins without arguments
/// Execute config plugins without arguments
...
@@ -202,10 +205,6 @@ static long load_xml_dddb(Detector& description, int argc, char** argv) {
...
@@ -202,10 +205,6 @@ static long load_xml_dddb(Detector& description, int argc, char** argv) {
/// Process XML
/// Process XML
if
(
!
sys_id
.
empty
()
)
{
if
(
!
sys_id
.
empty
()
)
{
printout
(
INFO
,
"DDDBExecutor"
,
"+++ Processing DDDB: %s"
,
sys_id
.
c_str
());
printout
(
INFO
,
"DDDBExecutor"
,
"+++ Processing DDDB: %s"
,
sys_id
.
c_str
());
if
(
iov_start
>=
0
&&
iov_end
>=
0
)
{
resolver
->
property
(
"ValidityLower"
).
set
(
iov_start
);
resolver
->
property
(
"ValidityUpper"
).
set
(
iov_end
);
}
const
void
*
args
[]
=
{
0
,
sys_id
.
c_str
(),
"/"
,
&
event_time
,
0
};
const
void
*
args
[]
=
{
0
,
sys_id
.
c_str
(),
"/"
,
&
event_time
,
0
};
result
=
description
.
apply
(
"DDDB_Loader"
,
4
,
(
char
**
)
args
);
result
=
description
.
apply
(
"DDDB_Loader"
,
4
,
(
char
**
)
args
);
check_result
(
result
);
check_result
(
result
);
...
...
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