Skip to content
Snippets Groups Projects
Commit 1606913c authored by Julien Maurer's avatar Julien Maurer
Browse files

Merge branch 'mhodgkin_22_fixNRR' into '22.0'

Adjust checks of NRR and PRR settings

See merge request !57065
parents 18599aac 8e89a8a9
No related branches found
No related tags found
4 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!5717730.09.2022: daily merge merge of 22.0 into master,!57065Adjust checks of NRR and PRR settings
...@@ -17,7 +17,7 @@ def getAthenaStackingActionTool(name='G4UA::AthenaStackingActionTool', **kwargs) ...@@ -17,7 +17,7 @@ def getAthenaStackingActionTool(name='G4UA::AthenaStackingActionTool', **kwargs)
if hasattr(simFlags, 'ApplyNRR') and simFlags.ApplyNRR.statusOn and \ if hasattr(simFlags, 'ApplyNRR') and simFlags.ApplyNRR.statusOn and \
hasattr(simFlags, 'NRRThreshold') and simFlags.NRRThreshold.statusOn and \ hasattr(simFlags, 'NRRThreshold') and simFlags.NRRThreshold.statusOn and \
hasattr(simFlags, 'NRRWeight') and simFlags.NRRWeight.statusOn: hasattr(simFlags, 'NRRWeight') and simFlags.NRRWeight.statusOn:
if simFlags.CalibrationRun.statusOn: if simFlags.CalibrationRun.statusOn and simFlags.ApplyNRR :
raise NotImplementedError("Neutron Russian Roulette should not be used in Calibration Runs.") raise NotImplementedError("Neutron Russian Roulette should not be used in Calibration Runs.")
kwargs.setdefault('ApplyNRR', simFlags.ApplyNRR.get_Value()) kwargs.setdefault('ApplyNRR', simFlags.ApplyNRR.get_Value())
kwargs.setdefault('NRRThreshold', simFlags.NRRThreshold.get_Value()) kwargs.setdefault('NRRThreshold', simFlags.NRRThreshold.get_Value())
...@@ -26,7 +26,7 @@ def getAthenaStackingActionTool(name='G4UA::AthenaStackingActionTool', **kwargs) ...@@ -26,7 +26,7 @@ def getAthenaStackingActionTool(name='G4UA::AthenaStackingActionTool', **kwargs)
if hasattr(simFlags, 'ApplyPRR') and simFlags.ApplyPRR.statusOn and \ if hasattr(simFlags, 'ApplyPRR') and simFlags.ApplyPRR.statusOn and \
hasattr(simFlags, 'PRRThreshold') and simFlags.PRRThreshold.statusOn and \ hasattr(simFlags, 'PRRThreshold') and simFlags.PRRThreshold.statusOn and \
hasattr(simFlags, 'PRRWeight') and simFlags.PRRWeight.statusOn: hasattr(simFlags, 'PRRWeight') and simFlags.PRRWeight.statusOn:
if simFlags.CalibrationRun.statusOn: if simFlags.CalibrationRun.statusOn and simFlags.ApplyPRR:
raise NotImplementedError("Photon Russian Roulette should not be used in Calibration Runs.") raise NotImplementedError("Photon Russian Roulette should not be used in Calibration Runs.")
kwargs.setdefault('ApplyPRR', simFlags.ApplyPRR.get_Value()) kwargs.setdefault('ApplyPRR', simFlags.ApplyPRR.get_Value())
kwargs.setdefault('PRRThreshold', simFlags.PRRThreshold.get_Value()) kwargs.setdefault('PRRThreshold', simFlags.PRRThreshold.get_Value())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment