Project

General

Profile

Feature #15016

A method in art::Provenance to return an art::InputTag

Added by Gianluca Petrillo almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Infrastructure
Target version:
Start date:
01/05/2017
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Scope:
Internal
Experiment:
-
SSI Package:
art
Duration:

Description

I would like a convenience method to be added to the provenance, which puts together a art::InputTag for me.
I think of something like:

art::InputTag art::Provenance::inputTag() const
  { return { moduleLabel(), processName(), productInstanceName() }; }

History

#1 Updated by Kyle Knoepfel almost 4 years ago

  • Category set to Infrastructure
  • Status changed from New to Assigned
  • Assignee set to Kyle Knoepfel
  • Estimated time set to 1.00 h

This is straightforward to implement. As a reminder, the art::InputTag c'tor order should be:

art::InputTag{moduleLabel(), productInstanceName(), processName()}

#2 Updated by Gianluca Petrillo almost 4 years ago

Err... uhm...
Sure, of course! I was trying to prove that such an utility could be useful for somebody who would otherwise mess up the construction.
One can never know where that somebody could be.

(cough)

#3 Updated by Kyle Knoepfel over 3 years ago

  • Target version set to 1209

#4 Updated by Kyle Knoepfel over 3 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Implemented with commit art:fd3a03c3.

#5 Updated by Kyle Knoepfel over 3 years ago

  • Target version changed from 1209 to 2.07.01

#6 Updated by Kyle Knoepfel over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF