Project

General

Profile

Support #25507

Using FindManyP in Gallery

Added by Jose Soto 2 months ago. Updated about 1 month ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
02/11/2021
Due date:
% Done:

0%

Estimated time:
Scope:
Internal
Experiment:
DUNE
SSI Package:
gallery
Duration:

Description

Hi,
I need some help to read this dataproduct from an Art file using Gallery:

simb::MCParticlesimb::MCTruthsim::GeneratedParticleInfoart::Assns_largeant__G4

In LArSoft I do, and it works:

art::FindManyP<simb::MCParticle> SignAssn(SignTrue,event,"largeant"); //(being SignTrue a handle of simb::MCTruth)

In Gallery I translated that into this, using a functions in FindMaker.h:

art::FindManyP<simb::MCParticle> SignAssn=gallery::FindMaker().makeFindManyP<simb::MCParticle,void, gallery::Handle< std::vector<simb::MCTruth> >>(SignTrue,event,"largeant");

The macro compiles, but it does not find the product:

terminate called after throwing an instance of 'cet::coded_exception<art::errors::ErrorCodes, &art::ExceptionDetail::translate[abi:cxx11]>'
  what():  ---- LogicError BEGIN
  Invalid FindManyP
  ---- ProductNotFound BEGIN
    Failed to find product for 
      type = 'art::Assns<simb::MCTruth,simb::MCParticle,void>'
      module = 'largeant'
      productInstance = ''
      process=''
  ---- ProductNotFound END
  Attempt to use a FindManyP where the underlying art::Assns product was not found.
---- LogicError END

I attach and a small example with a root file. I run it in larsoft_v09_15_00_e19_prof.

Any idea of what is wrong?

Best regards,
José

TestFindManyP.C (1.9 KB) TestFindManyP.C Jose Soto, 02/11/2021 06:10 AM
oldg4.root (4.54 MB) oldg4.root Jose Soto, 02/11/2021 06:10 AM

History

#1 Updated by Kyle Knoepfel 2 months ago

  • Assignee set to Kyle Knoepfel
  • Status changed from New to Assigned

#2 Updated by Kyle Knoepfel about 1 month ago

  • Status changed from Assigned to Feedback
  • Description updated (diff)

José, is this still causing problems for you?

Also available in: Atom PDF