Adding prodition service to CaloRecoDigiMaker#1703
Conversation
…disable use of proton bunch time
|
I just realized that the clang-format command changed so much that the PR edits are now barely recognizable |
|
☔ The build tests failed for 178fe4e.
N.B. These results were obtained from a build of this Pull Request at 178fe4e after being merged into the base branch at 30dbb4a. For more information, please check the job page here. |
rlcee
left a comment
There was a problem hiding this comment.
Please remove these since they will be deleted very soon
#include "Offline/ConditionsService/inc/CalorimeterCalibrations.hh"
#include "Offline/ConditionsService/inc/ConditionsHandle.hh"
Please remove these since they are not needed and should not be accessed in modules as part of the conditions design. (as a archive table, CosmicEnergyCalib might be accessed directly, since that access is uncontrolled, but then that shouldn't be in a production module)
#include "Offline/DbTables/inc/CalCosmicEnergyCalib.hh"
#include "Offline/DbTables/inc/CalEnergyCalib.hh"
The proditions access looks good. Thanks
|
In the CI run, the ceSimReco failure is saying you need to add your new required fcl parameter to the prolog |
Right, the last two were part of my tests, forgot to remove |
|
@FNALbuild build |
|
⌛ The following tests have been triggered for 419c0d6: build (Build queue - API unavailable) |
|
☀️ The build tests passed at 419c0d6.
N.B. These results were obtained from a build of this Pull Request at 419c0d6 after being merged into the base branch at 30dbb4a. For more information, please check the job page here. |
|
Ready to be merged. Tested db calls in reco successfully! |
|
@FNALbuild build |
|
⌛ The following tests have been triggered for de0f469: build (Build queue - API unavailable) |
|
☀️ The build tests passed at de0f469.
N.B. These results were obtained from a build of this Pull Request at de0f469 after being merged into the base branch at 0728167. For more information, please check the job page here. |
There was a problem hiding this comment.
Pull request overview
This pull request migrates the CaloRecoDigiMaker module from the legacy ConditionsService to the modern Proditions service for accessing calorimeter calibrations. Additionally, it adds a configuration flag to optionally disable the use of proton bunch time, which is useful for scenarios without beam.
Changes:
- Migrated CaloRecoDigiMaker to use Proditions service (ProditionsHandle) instead of ConditionsHandle
- Added UseProtonBunchTime fcl flag to allow optional use of proton bunch time (defaults to true)
- Fixed CalCalibMaker to use _nChannelDB constant for database loading (includes spare channels)
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| CaloReco/src/CaloRecoDigiMaker_module.cc | Migrated to Proditions service and added conditional ProtonBunchTime usage; includes code formatting improvements |
| CaloReco/src/SConscript | Added CaloConditions, DbService dependencies for Proditions support |
| CaloReco/CMakeLists.txt | Added CaloConditions, DbService, DbTables dependencies for Proditions support |
| CaloReco/fcl/prolog.fcl | Added UseProtonBunchTime flag (defaults to true for backward compatibility) |
| CaloConditions/src/CalCalibMaker.cc | Fixed to use _nChannelDB for database loading to account for spare channels |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Can we merge this? |
|
We are still waiting for reviews from @brownd1978 and @bechenard. |
Also, added fcl flag to be able to use proton bunch time or not (in case no beam is present)