Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project Juggler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
Project Juggler
Commits
713ccfbc
Commit
713ccfbc
authored
Apr 25, 2022
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes to PodioDataSvc, made while debugging memory leak but unrelated
parent
d697ca03
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!416
Minor fixes to PodioDataSvc, made while debugging memory leak but unrelated
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
JugBase/src/PodioDataSvc.cpp
+12
-7
12 additions, 7 deletions
JugBase/src/PodioDataSvc.cpp
JugBase/src/components/EICDataSvc.h
+3
-3
3 additions, 3 deletions
JugBase/src/components/EICDataSvc.h
JugBase/src/components/PodioInput.cpp
+2
-2
2 additions, 2 deletions
JugBase/src/components/PodioInput.cpp
with
17 additions
and
12 deletions
JugBase/src/PodioDataSvc.cpp
+
12
−
7
View file @
713ccfbc
...
...
@@ -10,6 +10,7 @@
#include
"TTree.h"
/// Service initialization
StatusCode
PodioDataSvc
::
initialize
()
{
// Nothing to do: just call base class initialisation
StatusCode
status
=
DataSvc
::
initialize
();
...
...
@@ -39,12 +40,12 @@ StatusCode PodioDataSvc::initialize() {
}
return
status
;
}
/// Service reinitialization
StatusCode
PodioDataSvc
::
reinitialize
()
{
// Do nothing for this service
return
StatusCode
::
SUCCESS
;
}
/// Service finalization
StatusCode
PodioDataSvc
::
finalize
()
{
m_cnvSvc
=
nullptr
;
// release
DataSvc
::
finalize
().
ignore
();
...
...
@@ -91,16 +92,20 @@ void PodioDataSvc::setCollectionIDs(podio::CollectionIDTable* collectionIds) {
/// Standard Constructor
PodioDataSvc
::
PodioDataSvc
(
const
std
::
string
&
name
,
ISvcLocator
*
svc
)
:
DataSvc
(
name
,
svc
),
m_collectionIDs
(
new
podio
::
CollectionIDTable
())
{
m_eventDataTree
=
new
TTree
(
"events"
,
"Events tree"
);
}
/// Standard Destructor
PodioDataSvc
::~
PodioDataSvc
()
=
default
;
PodioDataSvc
::~
PodioDataSvc
()
{
delete
m_collectionIDs
;
}
StatusCode
PodioDataSvc
::
readCollection
(
const
std
::
string
&
collectionName
,
int
collectionID
)
{
podio
::
CollectionBase
*
collection
(
nullptr
);
m_provider
.
get
(
collectionID
,
collection
);
if
(
collection
->
isSubsetCollection
())
{
return
StatusCode
::
SUCCESS
;
}
auto
*
wrapper
=
new
DataWrapper
<
podio
::
CollectionBase
>
;
const
int
id
=
m_collectionIDs
->
add
(
collectionName
);
collection
->
setID
(
id
);
...
...
This diff is collapsed.
Click to expand it.
JugBase/src/components/EICDataSvc.h
+
3
−
3
View file @
713ccfbc
// SPDX-License-Identifier: LGPL-3.0-or-later
// Copyright (C) 2022 Whitney Armstrong
#ifndef JUGBASE_
FC
CDATASVC_H
#define JUGBASE_
FC
CDATASVC_H
#ifndef JUGBASE_
EI
CDATASVC_H
#define JUGBASE_
EI
CDATASVC_H
#include
"JugBase/PodioDataSvc.h"
...
...
@@ -15,4 +15,4 @@ public:
/// Standard Destructor
virtual
~
EICDataSvc
();
};
#endif // JUGBASE_
FC
CDATASVC_H
#endif // JUGBASE_
EI
CDATASVC_H
This diff is collapsed.
Click to expand it.
JugBase/src/components/PodioInput.cpp
+
2
−
2
View file @
713ccfbc
...
...
@@ -20,7 +20,7 @@ StatusCode PodioInput::initialize() {
return
StatusCode
::
FAILURE
;
}
// check whether we have the Podio
Evt
Svc active
// check whether we have the Podio
Data
Svc active
m_podioDataSvc
=
dynamic_cast
<
PodioDataSvc
*>
(
evtSvc
().
get
());
if
(
m_podioDataSvc
==
nullptr
)
{
return
StatusCode
::
FAILURE
;
...
...
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