Skip to content

Update SCT_ConditionsAlgorithms/testConfig.py to run both run2MC and run2Data (ATLASRECTS-2851)

Susumu Oda requested to merge oda/athena:master-ATLASRECTS-2851 into master

Update SCT_ConditionsAlgorithms/testConfig.py to run both run2MC and run2Data. Fix a wrong default key in SCT_ConfigurationCondAlg.

For easier future validation of fixes of https://its.cern.ch/jira/browse/ATLASRECTS-2851

setupATLAS
asetup Athena master latest
get_files SCT_ConditionsAlgorithms/testConfig.py
athena.py ./testConfig.py

will show

...
MyConfigTestAlg                            INFO in execute()
MyConfigTestAlg                            INFO -----------------------------------------------------------------------
MyConfigTestAlg                            INFO Number of bad modules                         = 42
MyConfigTestAlg                            INFO Number of bad link 0                          = 72
MyConfigTestAlg                            INFO Number of bad link 1                          = 84
MyConfigTestAlg                            INFO Number of bad link both                       = 0
MyConfigTestAlg                            INFO Number of bad chips                           = 93
MyConfigTestAlg                            INFO Number of bad strips                          = 27046
MyConfigTestAlg                            INFO Number of bad strips exclusive                = 15005
MyConfigTestAlg                            INFO Number of bad strips exclusive (ECC, B, ECA)  = 4337, 6437, 4231, 
MyConfigTestAlg                            INFO -----------------------------------------------------------------------
...

If you want to use /SCT/DAQ/Config/ChipSlim instead of /SCT/DAQ/Config/Chip, you need to change

  sct_ConfigurationConditionsToolSetup.setChannelFolderDb("/SCT/DAQ/Config/Chip")

in ./testConfig.py to

  sct_ConfigurationConditionsToolSetup.setChannelFolderDb("/SCT/DAQ/Config/ChipSlim")

https://gitlab.cern.ch/atlas/athena/blob/9ee0add97d37d34d095aad7a871a44ac61672117/InnerDetector/InDetConditions/SCT_ConditionsAlgorithms/share/testConfig.py#L175

Edited by Susumu Oda

Merge request reports

Loading