Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 15, 2024
1 parent ce23abe commit 9bd3c77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions k4FWCore/components/IIOSvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class IIOSvc : virtual public IInterface {
* @brief Read the next event from the input file
* @return A tuple containing the collections read, the collection names and the frame that owns the collections
*/
virtual std::tuple<std::vector<podio::CollectionBase*>, std::vector<std::string>, podio::Frame>
next() = 0;
virtual std::shared_ptr<std::vector<std::string>> getCollectionNames() const = 0;
virtual std::tuple<std::vector<podio::CollectionBase*>, std::vector<std::string>, podio::Frame> next() = 0;
virtual std::shared_ptr<std::vector<std::string>> getCollectionNames() const = 0;

virtual podio::Writer& getWriter() = 0;
virtual void deleteWriter() = 0;
Expand Down
2 changes: 1 addition & 1 deletion k4FWCore/include/k4FWCore/Consumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace k4FWCore {
: Gaudi::Functional::details::DataHandleMixin<std::tuple<>, std::tuple<>, Traits_> {
using Gaudi::Functional::details::DataHandleMixin<std::tuple<>, std::tuple<>, Traits_>::DataHandleMixin;

static_assert(((std::is_base_of_v<podio::CollectionBase, In> || isVectorLike_v<In>) && ...),
static_assert(((std::is_base_of_v<podio::CollectionBase, In> || isVectorLike_v<In>)&&...),
"Consumer input types must be EDM4hep collections or vectors of collection pointers");

template <typename T> using InputHandle_t = Gaudi::Functional::details::InputHandle_t<Traits_, T>;
Expand Down
2 changes: 1 addition & 1 deletion k4FWCore/include/k4FWCore/Transformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace k4FWCore {
: Gaudi::Functional::details::DataHandleMixin<std::tuple<>, std::tuple<>, Traits_> {
using Gaudi::Functional::details::DataHandleMixin<std::tuple<>, std::tuple<>, Traits_>::DataHandleMixin;

static_assert(((std::is_base_of_v<podio::CollectionBase, In> || isVectorLike_v<In>) && ...),
static_assert(((std::is_base_of_v<podio::CollectionBase, In> || isVectorLike_v<In>)&&...),
"Transformer and Producer input types must be EDM4hep collections or vectors of collections");
static_assert((std::is_base_of_v<podio::CollectionBase, Out> || isVectorLike_v<Out> ||
std::is_same_v<podio::CollectionBase*, Out>),
Expand Down

0 comments on commit 9bd3c77

Please sign in to comment.