Project

General

Profile

Feature #6418

Ability to obtain Ptr into collections not yet in event from input source.

Added by Christopher Green over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Navigation
Target version:
Start date:
06/06/2014
Due date:
% Done:

100%

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

History

#1 Updated by Christopher Green over 6 years ago

  • Status changed from New to Resolved

Implemented (with test) with b563175.

This is a breaking change, since the interface of art::Source detail object constructors has changed, and including art/Framework/Core/PrincipalMaker.h now causes a #error. To retro-fit code:

ack --cpp -l PrincipalMaker | xargs perl -wapi\~ \
-e 's&art/Framework/Core/PrincipalMaker&art/Framework/IO/Sources/SourceHelper&; s&PrincipalMaker&SourceHelper&g'
in order to use the replacement class art::SourceHelper.

After applying the above change, you may need to change the names of any private data members storing an art::SourceHelper in order for the member names to remain relevant and useful.

The relevant new function for creating an art::Ptr from an input source detail object is:

template <typename T>
art::Ptr<T>
art::SourceHelper::
make_Ptr(TypeLabel const & tl,
         EventPrincipal const & ep,
         typename Ptr<T>::key_type key)
The srt::TypeLabel may be obtained by saving the (new) return type of the art::ProductRegistryHelper::reconstitutes(...) function template.

#2 Updated by Christopher Green over 6 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF