-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Gaudi::Functional, add examples and adapt PodioInput to use Gaudi::Functional #129
Changes from 66 commits
dbc4808
dbfe999
3c40628
f74c865
28a35c1
bdbcf73
ae4f679
3d88081
26e08e8
b2b50da
40a9af3
a03296a
66b454e
a3d616d
a9b050f
2db8c79
a8ef480
673044a
30578ab
6f8910e
5d7fa0c
4ce096c
31e5855
38cb3b1
ac42a85
06b611d
1fc6d10
45a2080
f703cc8
4861d11
69d1bf2
a7235df
f462c8c
3774a90
acf7d53
26d8281
e86829d
fe718e7
d6d0331
64df3c1
65a2573
545a75b
80f48c8
638f7e5
cb6139f
57f7c2b
da2107e
5294aab
51890e0
f58bc21
5b0d022
9e79c83
8ae87a3
b5840e8
89b29ee
f5a5040
f185ca3
4e3ee36
cbf9987
716c5c4
6849e50
8baed4b
39d560c
b80a6cb
bda0c3c
86750a4
550d7c8
4d03256
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (c) 2014-2023 Key4hep-Project. | ||
* | ||
* This file is part of Key4hep. | ||
* See https://key4hep.github.io/key4hep-doc/ for further info. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef K4FWCORE_FUNCTIONALUTILS_H | ||
#define K4FWCORE_FUNCTIONALUTILS_H | ||
|
||
#include "GaudiAlg/GaudiAlgorithm.h" | ||
#include "GaudiKernel/DataObjectHandle.h" | ||
#include "k4FWCore/DataWrapper.h" | ||
|
||
// Base class used for the Traits template argument of the | ||
// Gaudi::Functional algorithms | ||
struct BaseClass_t { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a badly chosen name - and not even name spaced. Do you have something more prescriptive what the purpose is? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here the idea is that the Gaudi examples always use a |
||
template <typename T> using InputHandle = DataObjectReadHandle<DataWrapper<T>>; | ||
template <typename T> using OutputHandle = DataObjectWriteHandle<DataWrapper<T>>; | ||
|
||
using BaseClass = Gaudi::Algorithm; | ||
}; | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emphasize it visually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean add an example here? Or at least the structure with the class definition and template arguments and
operator()
?