Skip to content

Commit

Permalink
Add const to event_num and run_num arguments
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com>
  • Loading branch information
m-fila and jmcarcell authored Feb 26, 2025
1 parent f7bc209 commit ecb511f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k4FWCore/components/UniqueIDGenSvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class UniqueIDGenSvc : public extends<Service, IUniqueIDGenSvc> {
using seed_t = uint64_t;

UniqueIDGenSvc(const std::string& name, ISvcLocator* svcLoc);
size_t getUniqueID(event_num_t evt_num, run_num_t run_num, const std::string& name) const override;
size_t getUniqueID(const event_num_t evt_num, const run_num_t run_num, const std::string& name) const override;

private:
Gaudi::Property<seed_t> m_seed{this, "Seed", {123456789}};
Expand Down
2 changes: 1 addition & 1 deletion k4Interface/include/k4Interface/IUniqueIDGenSvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct GAUDI_API IUniqueIDGenSvc : extend_interfaces<IInterface> {
using event_num_t = decltype(std::declval<edm4hep::EventHeader>().getEventNumber());
using run_num_t = decltype(std::declval<edm4hep::EventHeader>().getRunNumber());
DeclareInterfaceID(IUniqueIDGenSvc, 2, 0);
virtual size_t getUniqueID(event_num_t evt_num, run_num_t run_num, const std::string& name) const = 0;
virtual size_t getUniqueID(const event_num_t evt_num, const run_num_t run_num, const std::string& name) const = 0;
size_t getUniqueID(const edm4hep::EventHeader& evt_header, const std::string& name) const {
return getUniqueID(evt_header.getEventNumber(), evt_header.getRunNumber(), name);
}
Expand Down

0 comments on commit ecb511f

Please sign in to comment.