Ability to obtain Ptr into collections not yet in event from input source.
#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
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::TypeLabelmay be obtained by saving the (new) return type of the