Open theHenks opened 6 months ago
Maybe something for @fhagemann and the interns?
We could have a look into this
I think all the functionality required to write this function should be there. What do want exaclty? Just one value for the exposure for a set of filekeys? Or exposure listed per detector?
It was discussed:
return the exposure for a given DetectorId
and Partition
with the lifetime extracted from either runinfo
or partitioninfo
.
Example:
using LegendDataManagement
l200 = LegendData(:l200)
runinfo(l200).phy # -> gives you list of physics runs and their livetimes
det = :V00050A
partitioninfo(l200, det, DataPartition(1)).phy # -> returns the physics run in a partition and their livetimes
Add functionality to get the exposure for a list of filekeys . The function should:
livetime_in_ns
from the runinfometadata
such as enrichment, dead layer, active volume etc.