Skip to content

Commit 62ce3ad

Browse files
committed
Deprecate PodioInput and Output
1 parent 8d63d07 commit 62ce3ad

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

k4FWCore/components/PodioInput.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ PodioInput::PodioInput(const std::string& name, ISvcLocator* svcLoc) : Consumer(
160160
}
161161

162162
StatusCode PodioInput::initialize() {
163+
warning() << "PodioInput is deprecated and will be removed. Use the IOSvc instead" << endmsg;
163164
// If someone uses the collections property from the command line and passes
164165
// an empty string we assume they want all collections (as a simple way to
165166
// override whatever is in the options file)
@@ -173,6 +174,11 @@ StatusCode PodioInput::initialize() {
173174
return StatusCode::SUCCESS;
174175
}
175176

177+
StatusCode PodioInput::finalize() {
178+
warning() << "PodioInput is deprecated and will be removed. Use the IOSvc instead" << endmsg;
179+
return StatusCode::SUCCESS;
180+
}
181+
176182
void PodioInput::operator()() const {
177183
if (m_podioDataSvc->getEventFrame().get(edm4hep::labels::EventHeader)) {
178184
m_readers[edm4hep::EventHeaderCollection::typeName](edm4hep::labels::EventHeader);

k4FWCore/components/PodioInput.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ class PodioDataSvc;
3737

3838
using BaseClass_t = Gaudi::Functional::Traits::BaseClass_t<Gaudi::Algorithm>;
3939

40-
class PodioInput final : public Gaudi::Functional::Consumer<void(), BaseClass_t> {
40+
class [[deprecated("Use the IOSvc instead")]] PodioInput final
41+
: public Gaudi::Functional::Consumer<void(), BaseClass_t> {
4142
public:
4243
PodioInput(const std::string& name, ISvcLocator* svcLoc);
4344
void operator()() const override;
4445

4546
StatusCode initialize() final;
47+
StatusCode finalize() final;
4648

4749
private:
4850
template <typename T>

k4FWCore/components/PodioOutput.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ PodioOutput::PodioOutput(const std::string& name, ISvcLocator* svcLoc)
3131
: Gaudi::Algorithm(name, svcLoc), m_firstEvent(true) {}
3232

3333
StatusCode PodioOutput::initialize() {
34+
warning() << "PodioOutput is deprecated and will be removed. Use the IOSvc instead" << endmsg;
3435
if (Gaudi::Algorithm::initialize().isFailure())
3536
return StatusCode::FAILURE;
3637

@@ -106,6 +107,8 @@ StatusCode PodioOutput::execute(const EventContext&) const {
106107
*
107108
*/
108109
StatusCode PodioOutput::finalize() {
110+
warning() << "PodioOutput is deprecated and will be removed. Use the IOSvc instead" << endmsg;
111+
109112
if (Gaudi::Algorithm::finalize().isFailure())
110113
return StatusCode::FAILURE;
111114
//// prepare job options metadata ///////////////////////

k4FWCore/components/PodioOutput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// forward declarations
2929
class PodioDataSvc;
3030

31-
class PodioOutput : public Gaudi::Algorithm {
31+
class [[deprecated("Use the IOSvc instead")]] PodioOutput : public Gaudi::Algorithm {
3232
public:
3333
/// Constructor.
3434
PodioOutput(const std::string& name, ISvcLocator* svcLoc);

0 commit comments

Comments
 (0)