Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Feb 22, 2024
1 parent ff93374 commit 30a5e80
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions k4FWCore/components/Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class Writer final : public Gaudi::Functional::Consumer<void(const EventContext&

mutable std::mutex m_mutex;

ServiceHandle<IIOSvc> iosvc{this, "IOSvc", "IOSvc"};
SmartIF<IHiveWhiteBoard> m_hiveWhiteBoard;
SmartIF<IDataProviderSvc> m_dataSvc;
mutable bool m_first{true};
ServiceHandle<IIOSvc> iosvc{this, "IOSvc", "IOSvc"};
SmartIF<IHiveWhiteBoard> m_hiveWhiteBoard;
SmartIF<IDataProviderSvc> m_dataSvc;
mutable bool m_first{true};

StatusCode initialize() override {
if (!iosvc.isValid()) {
Expand All @@ -70,8 +70,9 @@ class Writer final : public Gaudi::Functional::Consumer<void(const EventContext&

m_hiveWhiteBoard = service<IHiveWhiteBoard>("EventDataSvc", true);
if (!m_hiveWhiteBoard) {
debug() << "Unable to locate IHiveWhiteBoard interface. This isn't a problem if we are not running in a multi-threaded environment"
<< endmsg;
debug() << "Unable to locate IHiveWhiteBoard interface. This isn't a problem if we are not running in a "
"multi-threaded environment"
<< endmsg;
}

return StatusCode::SUCCESS;
Expand Down Expand Up @@ -259,9 +260,10 @@ class Writer final : public Gaudi::Functional::Consumer<void(const EventContext&
}

debug() << "Writing frame, with time: "
<< std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch())
.count()
<< endmsg;
<< std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::system_clock::now().time_since_epoch())
.count()
<< endmsg;
iosvc->getWriter()->writeFrame(ptr->getData(), podio::Category::Event, m_collectionsToSave);
}
};
Expand Down

0 comments on commit 30a5e80

Please sign in to comment.