Project

General

Profile

Feature #22147

would like art::Event::getManyLabelsByType

Added by Thomas Junk 4 days ago. Updated 1 day ago.

Status:
Accepted
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/15/2019
Due date:
% Done:

0%

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

Description

I see an example of calling art::Event::getManyByType in larsim/LArG4/LArG4_module.cc, and would like to use it to read in many instances of artdaq::Fragments. I might know all their labels, but want to be prepared for a case where I want to read all of them in, even with new labels I haven't seen before (the daq group might throw us some curveballs).

I'd like to do some selection on the labels as I am not interested in reading in all fragments, and I would like to even call removeCachedProduct in between processing each of these fragments in order to save memory. I'd therefore rather not have all of the products read in by getManyByType in memory all at once.

A proposed solution: a new function (or some way to call existing functions) that gets all the labels of branches containing a specified data product that we can use as input to GetValidHandle or GetByLabel. The function should not read the contents of the data products into memory, just give us the labels. We still have to give it an example handle so it knows what data product to look for.

History

#1 Updated by Kyle Knoepfel 4 days ago

  • Description updated (diff)

#2 Updated by Thomas Junk 4 days ago

I should mention that the instances should be returned as well, either separately or as part of the label strings with colons in a way that GetByLabel or GetValidHandle can use.

#3 Updated by Kyle Knoepfel 1 day ago

  • Status changed from New to Accepted

The request sounds reasonable. We will meet with you to learn more about the required behavior and constraints.



Also available in: Atom PDF