legend-exp / LegendDataManagement.jl

LegendMetadata access in Julia
Other
5 stars 7 forks source link

Exposure calculation #33

Open theHenks opened 6 months ago

theHenks commented 6 months ago

Add functionality to get the exposure for a list of filekeys . The function should:

theHenks commented 3 months ago

Maybe something for @fhagemann and the interns?

fhagemann commented 3 months ago

We could have a look into this

fhagemann commented 2 weeks ago

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?

fhagemann commented 1 week ago

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