Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Li Zhihao
CEPCSW
Commits
d9f258d9
Commit
d9f258d9
authored
4 years ago
by
zoujh@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
Update DataSvc in step with interface changes
parent
35e11a87
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FWCore/FWCore/PodioDataSvc.h
+1
-1
1 addition, 1 deletion
FWCore/FWCore/PodioDataSvc.h
FWCore/src/PodioDataSvc.cpp
+3
-3
3 additions, 3 deletions
FWCore/src/PodioDataSvc.cpp
with
4 additions
and
4 deletions
FWCore/FWCore/PodioDataSvc.h
+
1
−
1
View file @
d9f258d9
...
...
@@ -37,7 +37,7 @@ public:
using
DataSvc
::
registerObject
;
/// Overriding standard behaviour of evt service
/// Register object with the data store.
virtual
StatusCode
registerObject
(
const
std
::
string
&
fullPath
,
DataObject
*
pObject
)
final
;
virtual
StatusCode
registerObject
(
std
::
string_view
parentPath
,
std
::
string
_view
fullPath
,
DataObject
*
pObject
)
override
final
;
StatusCode
readCollection
(
const
std
::
string
&
collectionName
,
int
collectionID
);
...
...
This diff is collapsed.
Click to expand it.
FWCore/src/PodioDataSvc.cpp
+
3
−
3
View file @
d9f258d9
...
...
@@ -101,10 +101,10 @@ StatusCode PodioDataSvc::readCollection(const std::string& collName, int collect
collection
->
setID
(
id
);
wrapper
->
setData
(
collection
);
m_readCollections
.
emplace_back
(
std
::
make_pair
(
collName
,
collection
));
return
DataSvc
::
registerObject
(
collName
,
wrapper
);
return
DataSvc
::
registerObject
(
"/Event"
,
"/"
+
collName
,
wrapper
);
}
StatusCode
PodioDataSvc
::
registerObject
(
const
std
::
string
&
fullPath
,
DataObject
*
pObject
)
{
StatusCode
PodioDataSvc
::
registerObject
(
std
::
string_view
parentPath
,
std
::
string
_view
fullPath
,
DataObject
*
pObject
)
{
DataWrapperBase
*
wrapper
=
dynamic_cast
<
DataWrapperBase
*>
(
pObject
);
if
(
wrapper
!=
nullptr
)
{
podio
::
CollectionBase
*
coll
=
wrapper
->
collectionBase
();
...
...
@@ -116,5 +116,5 @@ StatusCode PodioDataSvc::registerObject(const std::string& fullPath, DataObject*
m_collections
.
emplace_back
(
std
::
make_pair
(
shortPath
,
coll
));
}
}
return
DataSvc
::
registerObject
(
fullPath
,
pObject
);
return
DataSvc
::
registerObject
(
parentPath
,
fullPath
,
pObject
);
}
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