Light Calorimetry: add sim energy deposit info and light calo info into cafs#619
Light Calorimetry: add sim energy deposit info and light calo info into cafs#619
Conversation
|
@lynnt20 could you nominate reviewers please? |
sbncode v10_14_02 for larsoft v10_14_02
|
@PetrilloAtWork would you mind taking a look at this PR? It's the last of the light calorimetry stack of PRs 😃 Thank you advance! |
sbncode v10_14_02_01 for larsoft v10_14_02_01
henrylay97
left a comment
There was a problem hiding this comment.
Looking really good. Couple of small queries before I approve :D
|
@PetrilloAtWork: when you have a moment, could you review this PR? |
PetrilloAtWork
left a comment
There was a problem hiding this comment.
The PR is generally ok.
I requested the removal of the intermediate vector of art pointers, which is a bad practice being propagated since ages that I am trying to extinguish.
In addition, there are version number changes that should be left to the release managers. I am not sure what is going on, since it appears a release branch was merged here, and then this PR is requested to be merged with develop. If this is really what is needed, the merge of the release should happen before this PR is merged. Maybe that's the plan and I don't know it.
sbncode/CAFMaker/CAFMaker_module.cc
Outdated
| // get sim energy deposits if they're there | ||
| ::art::Handle<std::vector<sim::SimEnergyDeposit>> sed_handle; | ||
| GetByLabelStrict(evt, fParams.SimEnergyDepositLabel().encode(), sed_handle); |
There was a problem hiding this comment.
I suggest that the reading of the data product be moved close to where it is used first ([CF-021]).
This reverts commit c771df6.
|
Thank you for the review @PetrilloAtWork! I've implemented your suggestions and cleaned up the dependencies as well. |
Description
Adds info from
SimEnergyDepositsand light calorimetry into cafmaker.SBND is currently keeping
SimEnergyDepositsthroughout the workflow. We can take better advantage of this information (truth level number of electrons, photons, and true energy deposits for true neutrino interactions) by adding it to the cafs in a new class calledSRTrueDeposit. Default will be empty if noSimEnergyDeposits are available in the input files. Only adds 3 floats per neutrino interaction (obtained from length ofMCTruth).Accompanying PRs: SBNSoftware/sbndcode#878, SBNSoftware/sbnanaobj#181, SBNSoftware/sbnobj#158