Service to write luminosity information to TTree when reading from FSRs
Sprucing writes FSRs containing the count of lumievents per run to the output mdf files. This draft will provide a service intended for use in DaVinci. The service will read the FSR when the input file is opened, create a list of pairs (run number, n_lumievents), merge any duplicated entry by run number, and write an output tree with two branches: runNumber and sumLumievents.
The user obtaining rootfiles from DaVinci jobs will hadd these rootfiles and obtain, in addition to the data, a tree with luminosity-by-run information.
Goes with DaVinci!937 (merged).
Merge request reports
Activity
assigned to @egraveri
added RTA label
- Resolved by Elena Graverini
Hi @egraveri, it's very nice to see this (am not looking at it yet ;-)). Can you link to the relevant tasks and add labels, to "see" the work?
Note that Sprucing outputs ROOT files, not MDFs. It is probably worth amending your header above.
Advance thanks.
added DPA-WP3 DPA-operations labels
added 1 commit
- 1c076047 - Add FileSummaryRecord.read_lumi test example
added 89 commits
-
1c076047...61942fe6 - 84 commits from branch
master
- 26fefe24 - Add skeleton of service that writes the content of input FSRs to output TTree
- e118c9c7 - [LumiFSRtoTTree] The algorithm is there, now need to get it to work (and test)
- 9578a39a - [LumiFSRtoTTree] The algorithm is there, now need to get it to work (and test)
- b686e3d0 - Add FileSummaryRecord.read_lumi test example
- 85eeb866 - [LumiFSRtoTTree] Modify CMakeLists
Toggle commit list-
1c076047...61942fe6 - 84 commits from branch
added 1 commit
- d37b347c - (WIP) [FSR to TTree] Add skeleton of test. TODO: read lumiTree during test and...
added 1 commit
- 33f7c79c - [FSR to TTree] test passes! though not very clean but it passes
- Resolved by Eduardo Rodrigues
@erodrigu , I'd like to test that this works in the normal use case of someone running DaVinci code on Sprucing output. I have a sample output file from running the Sprucing test
make fast/Moore/test ARGS='-R Hlt2Conf.sprucing.test_excl_spruce_2022_data'
. I have no clue how Run3 DaVinci works though! Can you provide a sample script in which I can include the execution of this service?
- Resolved by Elena Graverini
@erodrigu awesome, I'll try this out. I assume service loading is done similarly to the way it is done in Moore, e.g. https://gitlab.cern.ch/lhcb/LHCb/-/blob/master/PyConf/python/PyConf/application.py#L1044 with a ComponentConfig, similar to what is used in this LHCb project test https://gitlab.cern.ch/lhcb/LHCb/-/blob/master/Kernel/FileSummaryRecord/tests/python/FSRTests/write_lumi.py#L57 ? Or should I simply append to
algs
(how?)?Edited by Elena Graverini
- Resolved by Elena Graverini
- Resolved by Elena Graverini
- Resolved by Elena Graverini
- Resolved by Elena Graverini
- Resolved by Elena Graverini